The Email Servers API allows you to configure a custom external email provider to send email notifications. By default, notifications such as the welcome email or an account recovery email are sent through an Okta-managed SMTP server. Adding a custom email provider gives you more control over your email delivery.
okta.emailServers.read
Lists all the enrolled custom SMTP server configurations
OK
Forbidden
Too Many Requests
{- "email-servers": [
- {
- "alias": "CustomServer1",
- "enabled": true,
- "host": "192.168.160.1",
- "port": 587,
- "username": "aUser",
- "id": "string"
}
]
}
okta.emailServers.manage
Creates a custom email SMTP server configuration for your org
Successfully enrolled server credentials
Bad Request
Forbidden
Too Many Requests
{- "alias": "CustomServer1",
- "enabled": true,
- "host": "192.168.160.1",
- "port": 587,
- "username": "aUser",
- "password": "string"
}
{- "alias": "CustomServer1",
- "enabled": true,
- "host": "192.168.160.1",
- "port": 587,
- "username": "aUser",
- "id": "string"
}
okta.emailServers.read
Retrieves the specified custom SMTP server configuration
OK
Forbidden
Not Found
Too Many Requests
{- "email-servers": [
- {
- "alias": "CustomServer1",
- "enabled": true,
- "host": "192.168.160.1",
- "port": 587,
- "username": "aUser",
- "id": "string"
}
]
}
okta.emailServers.manage
Updates the specified custom SMTP server configuration
OK
Bad Request
Forbidden
Not Found
Too Many Requests
{- "alias": "CustomServer1",
- "enabled": true,
- "host": "192.168.160.1",
- "port": 587,
- "username": "aUser",
- "password": "string"
}
{- "alias": "CustomServer1",
- "enabled": true,
- "host": "192.168.160.1",
- "port": 587,
- "username": "aUser",
- "id": "string"
}
okta.emailServers.manage
Deletes the specified custom SMTP server configuration
No content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}
okta.emailServers.manage
Tests the specified custom SMTP Server configuration
No content
Bad Request
Forbidden
Not Found
Too Many Requests
{- "from": "sender@host.com",
- "to": "receiver@host.com"
}
{- "errorCode": "E0000001",
- "errorSummary": "Api validation failed: {0}",
- "errorLink": "E0000001",
- "errorId": "sampleiCF-8D5rLW6myqiPItW",
- "errorCauses": [ ]
}