Get domain credentials
const url = 'https://smtp-app.kirim.email/api/domains/example.com/credentials?limit=15&page=1';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://smtp-app.kirim.email/api/domains/example.com/credentials?limit=15&page=1' \ --header 'Authorization: Basic <credentials>'Retrieve a paginated list of SMTP credentials 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.
Query Parameters
Section titled “Query Parameters”Number of credentials per page
Page number
Responses
Section titled “Responses”Success
object
Indicates if the request was successful
Array of credential objects with pagination metadata
SMTP credential object containing authentication details for email sending
object
Database auto-increment ID (internal use only)
Unique credential GUID used for API operations
SMTP username for authentication. Must be unique within the domain
Unix timestamp when the credential was created
Unix timestamp when the credential was last modified
Domain name for which credentials are listed
Example
{ "success": true, "data": [ { "id": 1, "user_smtp_guid": "92703823-f3a4-48e2-8e87-7adf25454800", "username": "myuser", "created_at": 1640995200, "modified_at": 1640995200 } ], "domain": "example.com"}Unauthorized - Invalid or missing authentication credentials
object
Example
{ "success": false, "message": "Unauthorized"}Credential not found
object
Example
{ "success": false, "message": "Credential not found"}Too Many Requests - Rate limit exceeded. Retry after the specified time.
object
Example
{ "success": false, "message": "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
{ "success": false, "message": "An error occurred while processing the request."}