Skip to content

Setup tracking domain

POST
/api/domains/{domain}/setup-tracklink

Configure a tracking domain for click and open tracking

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.

object
tracking_domain
required

Tracking domain for click and open tracking

string
Example
track.example.com

Tracking domain setup successfully

object
data

Tracking domain configuration

object
tracking_domain

The tracking domain that was successfully configured for click and open tracking

string
Example
track.example.com

Unauthorized

object
error

Error type indicating authentication failure

string
Example
Unauthorized
message

Human-readable error message explaining the authentication issue

string
Example
Authorization header is required

Domain not found

object
success
boolean
message
string
Example
Domain not found

Validation Error

object
success

Indicates the request failed due to validation errors

boolean
message

Human-readable error message

string
Example
Validation failed.
errors

Field-specific validation error messages organized by field name

object

Too Many Requests - Rate limit exceeded. Retry after the specified time.

object
success
boolean
message
string
Example
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

object
success

Indicates the request failed due to a server error

boolean
message

Human-readable error message describing the server error

string
Example
An error occurred while processing the request.