Skip to content

API reference

Domains API

Add sending domains, read their DNS records and verify them.

Paths are relative to https://isent.dev/api/v1. Every request needs an API key; see API overview for errors, rate limits and pagination.

List domains

GET/domains

Responses

List domains: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).
cURL
curl -X GET https://isent.dev/api/v1/domains \
  -H "Authorization: Bearer $ISENT_API_KEY"

Add a domain

POST/domains

Returns the DNS records to publish. Counts toward the plan's domains.

Body

A JSON object.

Add a domain: body
NameTypeDescription
nameRequiredstringNone
regionstringOne of us-east-1. Default us-east-1.
return_pathstringMAIL FROM subdomain, default send. Matches ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$.
open_trackingbooleanNone
click_trackingbooleanNone
tracking_subdomainstringSubdomain for branded open and click tracking links, e.g. links. Matches ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$.
receivingbooleanNone

Responses

Add a domain: responses
StatusMeaning
201Created.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
409Conflict with the current state, or an idempotency key reused.
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).

Retrieve a domain

GET/domains/{id}

With its DNS records and their status.

Parameters

Retrieve a domain: parameters
NameInTypeDescription
idRequiredpathstringNone

Responses

Retrieve a domain: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
404Not found.
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).
cURL
curl -X GET https://isent.dev/api/v1/domains/{id} \
  -H "Authorization: Bearer $ISENT_API_KEY"

Update a domain

PATCH/domains/{id}

Parameters

Update a domain: parameters
NameInTypeDescription
idRequiredpathstringNone

Body

A JSON object.

Update a domain: body
NameTypeDescription
open_trackingbooleanNone
click_trackingbooleanNone
tls"opportunistic" | "enforced"None
tracking_subdomainstringSubdomain for branded open and click tracking links, e.g. links. Matches ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$.
sendingbooleanNone
receivingbooleanNone
ip_pool"shared" | "dedicated"Send from the shared pool or the team's dedicated IP in the domain's region.
dedicated_ip_idstring | nullA dedicated IP of this team in the domain's region.

Responses

Update a domain: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
404Not found.
409Conflict with the current state, or an idempotency key reused.
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).

Delete a domain

DELETE/domains/{id}

Parameters

Delete a domain: parameters
NameInTypeDescription
idRequiredpathstringNone

Responses

Delete a domain: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
404Not found.
409Conflict with the current state, or an idempotency key reused.
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).
cURL
curl -X DELETE https://isent.dev/api/v1/domains/{id} \
  -H "Authorization: Bearer $ISENT_API_KEY"

Verify a domain

POST/domains/{id}/verify

Checks every record now and returns the result.

Parameters

Verify a domain: parameters
NameInTypeDescription
idRequiredpathstringNone

Responses

Verify a domain: responses
StatusMeaning
200OK.
400The body is not valid JSON.
401Missing, invalid or restricted API key.
403Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted).
404Not found.
409Conflict with the current state, or an idempotency key reused.
422Validation failed.
429Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached).
cURL
curl -X POST https://isent.dev/api/v1/domains/{id}/verify \
  -H "Authorization: Bearer $ISENT_API_KEY"