Verify mandatory DNS records
const url = 'https://smtp-app.kirim.email/api/domains/example.com/verify-mandatory';const options = {method: 'POST', 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 POST \ --url https://smtp-app.kirim.email/api/domains/example.com/verify-mandatory \ --header 'Authorization: Basic <credentials>'Verify DKIM and SPF DNS records for a domain. MX record validation is optional.
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.
Responses
Section titled “Responses”DNS verification completed
object
DNS record validation results
object
Whether DKIM record is valid and properly configured
Whether SPF record is valid and properly configured
Whether MX record is valid and properly configured
Example
{ "records": { "dkim": true, "spf": true, "mx": true }}Unauthorized
object
Error type indicating authentication failure
Human-readable error message explaining the authentication issue
Example
{ "error": "Unauthorized", "message": "Authorization header is required"}Domain not found
object
Example
{ "success": false, "message": "Domain 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
object
Indicates the request failed due to a server error
Human-readable error message describing the server error
Example
{ "success": false, "message": "An error occurred while processing the request."}