Create a new credential
POST /api/domains/{domain}/credentials
Create a new SMTP credential for a domain
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Example
example.comDomain name that must be owned by the authenticated user. The domain must be verified and properly configured for email sending.
Request Body required
Section titled “Request Body required ”SMTP credential creation details
object
SMTP username
Example
myuserobject
SMTP username
Example
myuserResponses
Section titled “ Responses ”Credential created successfully
object
Indicates if the request was successful
Example
trueHuman-readable success message
Example
Credential created successfully.Created credential data and metadata
object
SMTP credential object containing authentication details for email sending
object
Database auto-increment ID (internal use only)
Example
1Unique credential GUID used for API operations
Example
92703823-f3a4-48e2-8e87-7adf25454800SMTP username for authentication. Must be unique within the domain
Example
myuserUnix timestamp when the credential was created
Example
1640995200Unix timestamp when the credential was last modified
Example
1640995200Generated password for the credential. Store this securely as it cannot be retrieved later
Example
generated-passwordWhether the credential was successfully synchronized with the remote SMTP server
Example
trueUnauthorized - Invalid or missing authentication credentials
object
Example
UnauthorizedCredential not found
object
Example
Credential not foundValidation Error - Invalid input data
object
Example
Validation failed.Field-specific validation errors
object
Too Many Requests - Rate limit exceeded. Retry after the specified time.
object
Example
Too many attempts. Please try again later.Headers
Section titled “Headers ”Seconds until rate limit resets
Maximum requests per minute
Remaining requests in current window
Server Error - Unexpected error occurred
object
Example
An error occurred while processing the request.