Get credential details
const url = 'https://smtp-app.kirim.email/api/domains/example.com/credentials/92703823-f3a4-48e2-8e87-7adf25454800';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/92703823-f3a4-48e2-8e87-7adf25454800 \ --header 'Authorization: Basic <credentials>'Retrieve details of a specific SMTP credential
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.
Example
92703823-f3a4-48e2-8e87-7adf25454800Credential GUID (user_smtp_guid)
Responses
Section titled “Responses”Success
object
Indicates if the request was successful
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
Example
{ "success": true, "data": { "id": 1, "user_smtp_guid": "92703823-f3a4-48e2-8e87-7adf25454800", "username": "myuser", "created_at": 1640995200, "modified_at": 1640995200 }}Unauthorized - Invalid or missing authentication credentials
object
Example
{ "success": false, "message": "Unauthorized"}Forbidden - Credential does not belong to the specified domain
object
Example
{ "success": false, "message": "Credential does not belong to the specified domain"}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."}