Skip to content

Update domain configuration

PUT
/api/domains/{domain}
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

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.

Domain tracking configuration updates

object
open_track

Enable open tracking

boolean
Example
true
click_track

Enable click tracking

boolean
Example
true
unsub_track

Enable unsubscribe tracking

boolean
Example
true

Domain updated successfully

Media typeapplication/json
object
data

Updated domain tracking configuration

object
open_track

Whether open tracking is enabled for emails sent from this domain

boolean
click_track

Whether click tracking is enabled for emails sent from this domain

boolean
unsub_track

Whether unsubscribe tracking is enabled for emails sent from this domain

boolean
Example
{
"data": {
"open_track": true,
"click_track": true,
"unsub_track": true
}
}

Unauthorized

Media typeapplication/json
object
error

Error type indicating authentication failure

string
message

Human-readable error message explaining the authentication issue

string
Example
{
"error": "Unauthorized",
"message": "Authorization header is required"
}

Domain not found

Media typeapplication/json
object
success
boolean
message
string
Example
{
"success": false,
"message": "Domain not found"
}

Validation Error

Media typeapplication/json
object
success

Indicates the request failed due to validation errors

boolean
message

Human-readable error message

string
errors

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.

Media typeapplication/json
object
success
boolean
message
string
Example
{
"success": false,
"message": "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

Media typeapplication/json
object
success

Indicates the request failed due to a server error

boolean
message

Human-readable error message describing the server error

string
Example
{
"success": false,
"message": "An error occurred while processing the request."
}