Skip to content

Create an email provider

POST
/api/v1/email/providers
curl --request POST \
--url http://127.0.0.1:58259/api/v1/email/providers \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "host": "example", "port": 1, "username": "example", "password": "example", "fromAddress": "example", "auth": true, "startTls": true, "shared": true }'

Create a new email provider configuration.

Media type application/json

Email provider creation request

object
name
string
host
string
port
integer format: int32
username
string
password
string
fromAddress
string
auth
boolean
startTls
boolean
shared
boolean
Example generated
{
"name": "example",
"host": "example",
"port": 1,
"username": "example",
"password": "example",
"fromAddress": "example",
"auth": true,
"startTls": true,
"shared": true
}

Email provider created successfully

Media type */*
object
id
integer format: int64
userId
integer format: int64
name
string
host
string
port
integer format: int32
username
string
fromAddress
string
auth
boolean
startTls
boolean
defaultProvider
boolean
shared
boolean