Update domain configuration
const url = 'https://smtp-app.kirim.email/api/domains/example.com';const options = { method: 'PUT', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"open_track":true,"click_track":true,"unsub_track":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://smtp-app.kirim.email/api/domains/example.com \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "open_track": true, "click_track": true, "unsub_track": true }'Update tracking settings 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
Section titled “Request Body”Domain tracking configuration updates
object
Enable open tracking
Example
trueEnable click tracking
Example
trueEnable unsubscribe tracking
Example
trueobject
Enable open tracking
Example
trueEnable click tracking
Example
trueEnable unsubscribe tracking
Example
trueResponses
Section titled “Responses”Domain updated successfully
object
Updated domain tracking configuration
object
Whether open tracking is enabled for emails sent from this domain
Whether click tracking is enabled for emails sent from this domain
Whether unsubscribe tracking is enabled for emails sent from this domain
Example
{ "data": { "open_track": true, "click_track": true, "unsub_track": 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"}Validation Error
object
Indicates the request failed due to validation errors
Human-readable error message
Field-specific validation error messages organized by field name
object
Example
{ "success": false, "message": "Validation failed."}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."}