Skip to content

List SMTP credentials

Request

Retrieve all SMTP credentials for your account.

Each credential has its own username and password. You can create multiple credentials for different teams, integrations, or sending domains. Restrict a credential to a specific verified sending domain so emails sent through it can only use that domain.

The is_master credential is the primary credential and cannot be deleted.

Security
ApiKeyAuth
curl -i -X GET \
  https://api.mailerlogic.net/api/v1/smtp-credentials \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

Credentials retrieved successfully

Bodyapplication/json
credentialsArray of objects(SMTPCredential)
smtp_hoststring
Example:"smtp.mailerlogic.net"
smtp_portsArray of integers
Example:
[ 587, 465 ]
recommended_portinteger
Example:587
Response
{ "credentials": [ {} ], "smtp_host": "smtp.mailerlogic.net", "smtp_ports": [ 587, 465 ], "recommended_port": 587 }