Skip to content

Get SMTP Settings

GET /api/smtp/{namespace}

This endpoint returns the SMTP settings for a specific namespace.

Request

sh
curl --request GET \
     --url https://api.mailisk.com/api/smtp/{namespace}/settings \
     --header 'Accept: application/json' \
     --header 'X-Api-Key: {Api Key}'

Response

json
{
  "data": {
    "host": "smtp.mailisk.net",
    "port": 587,
    "username": "mynamespace@mailisk.net",
    "password": "password"
  }
}

Request

Path Params

NameDescription
namespaceThe namespace to get SMTP settings for.

Response

Typescript type

typescript
interface SmtpSettings {
  data: {
    host: string;
    port: number;
    username: string;
    password: string;
  };
}