Skip to main content
POST
Create an SMTP sending account

Authorizations

Authorization
string
header
required

Sendmux API key. Use a root API key for Management API routes, or a mailbox credential for Mailbox API routes. Obtain keys from the dashboard under API Keys.

Headers

Idempotency-Key
string

Client-chosen unique key to safely retry the request. Cached for 24h per (team, endpoint, key). Different body with same key returns 409 idempotency_conflict.

Maximum string length: 255
Example:

"providers-create-20260525-001"

Body

application/json
name
string
required
Required string length: 1 - 255
Example:

"Transactional SMTP"

smtp_host
string
required
Required string length: 1 - 255
Example:

"smtp.example.com"

smtp_password
string
required
Required string length: 1 - 500
Example:

"smtp-password"

smtp_port
integer
required
Required range: 1 <= x <= 65535
Example:

587

smtp_protocol
enum<string>
required
Available options:
tls,
ssl,
none,
starttls
Example:

"starttls"

smtp_username
string
required
Required string length: 1 - 255
Example:

"api-user"

from_email
string<email> | null
Maximum string length: 255
Example:

"sender@example.com"

from_name
string | null
Maximum string length: 255
Example:

"Acme"

percentage
integer
Required range: 0 <= x <= 100
Example:

100

quotas
object
reply_to_email
string<email> | null
Maximum string length: 255
Example:

"support@example.com"

reply_to_name
string | null
Maximum string length: 255
Example:

"Support"

tracking_domain
string | null
Maximum string length: 255
Example:

"click.example.com"

Response

Sending account created

meta
object
required
ok
enum<boolean>
required
Available options:
true
data
object
required