Skip to content

Get domain credentials

GET
/api/domains/{domain}/credentials

Retrieve a paginated list of SMTP credentials for a domain

domain
required
string
Example
example.com

Domain name that must be owned by the authenticated user. The domain must be verified and properly configured for email sending.

limit
integer
default: 15 >= 1 <= 100

Number of credentials per page

page
integer
default: 1 >= 1

Page number

Success

object
success

Indicates if the request was successful

boolean
Example
true
data

Array of credential objects with pagination metadata

Array<object>

SMTP credential object containing authentication details for email sending

object
id

Database auto-increment ID (internal use only)

integer
Example
1
user_smtp_guid

Unique credential GUID used for API operations

string
Example
92703823-f3a4-48e2-8e87-7adf25454800
username

SMTP username for authentication. Must be unique within the domain

string
Example
myuser
created_at

Unix timestamp when the credential was created

integer
Example
1640995200
modified_at

Unix timestamp when the credential was last modified

integer
Example
1640995200
domain

Domain name for which credentials are listed

string
Example
example.com

Unauthorized - Invalid or missing authentication credentials

object
success
boolean
message
string
Example
Unauthorized

Credential not found

object
success
boolean
message
string
Example
Credential not found

Too Many Requests - Rate limit exceeded. Retry after the specified time.

object
success
boolean
message
string
Example
Too many attempts. Please try again later.
Retry-After
integer

Seconds until rate limit resets

X-RateLimit-Limit
integer

Maximum requests per minute

X-RateLimit-Remaining
integer

Remaining requests in current window

Server Error - Unexpected error occurred

object
success
boolean
message
string
Example
An error occurred while processing the request.