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
/domains
Responses
| Status | Meaning |
|---|---|
| 200 | OK. |
| 400 | The body is not valid JSON. |
| 401 | Missing, invalid or restricted API key. |
| 403 | Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted). |
| 422 | Validation failed. |
| 429 | Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached). |
curl -X GET https://isent.dev/api/v1/domains \
-H "Authorization: Bearer $ISENT_API_KEY"Add a domain
/domains
Returns the DNS records to publish. Counts toward the plan's domains.
Body
A JSON object.
| Name | Type | Description |
|---|---|---|
name | string | None |
region | string | One of us-east-1. Default us-east-1. |
return_path | string | MAIL FROM subdomain, default send. Matches ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$. |
open_tracking | boolean | None |
click_tracking | boolean | None |
tracking_subdomain | string | Subdomain for branded open and click tracking links, e.g. links. Matches ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$. |
receiving | boolean | None |
Responses
| Status | Meaning |
|---|---|
| 201 | Created. |
| 400 | The body is not valid JSON. |
| 401 | Missing, invalid or restricted API key. |
| 403 | Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted). |
| 409 | Conflict with the current state, or an idempotency key reused. |
| 422 | Validation failed. |
| 429 | Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached). |
Retrieve a domain
/domains/{id}
With its DNS records and their status.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | string | None |
Responses
| Status | Meaning |
|---|---|
| 200 | OK. |
| 400 | The body is not valid JSON. |
| 401 | Missing, invalid or restricted API key. |
| 403 | Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted). |
| 404 | Not found. |
| 422 | Validation failed. |
| 429 | Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached). |
curl -X GET https://isent.dev/api/v1/domains/{id} \
-H "Authorization: Bearer $ISENT_API_KEY"Update a domain
/domains/{id}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | string | None |
Body
A JSON object.
| Name | Type | Description |
|---|---|---|
open_tracking | boolean | None |
click_tracking | boolean | None |
tls | "opportunistic" | "enforced" | None |
tracking_subdomain | string | Subdomain for branded open and click tracking links, e.g. links. Matches ^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$. |
sending | boolean | None |
receiving | boolean | None |
ip_pool | "shared" | "dedicated" | Send from the shared pool or the team's dedicated IP in the domain's region. |
dedicated_ip_id | string | null | A dedicated IP of this team in the domain's region. |
Responses
| Status | Meaning |
|---|---|
| 200 | OK. |
| 400 | The body is not valid JSON. |
| 401 | Missing, invalid or restricted API key. |
| 403 | Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted). |
| 404 | Not found. |
| 409 | Conflict with the current state, or an idempotency key reused. |
| 422 | Validation failed. |
| 429 | Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached). |
Delete a domain
/domains/{id}
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | string | None |
Responses
| Status | Meaning |
|---|---|
| 200 | OK. |
| 400 | The body is not valid JSON. |
| 401 | Missing, invalid or restricted API key. |
| 403 | Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted). |
| 404 | Not found. |
| 409 | Conflict with the current state, or an idempotency key reused. |
| 422 | Validation failed. |
| 429 | Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached). |
curl -X DELETE https://isent.dev/api/v1/domains/{id} \
-H "Authorization: Bearer $ISENT_API_KEY"Verify a domain
/domains/{id}/verify
Checks every record now and returns the result.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | path | string | None |
Responses
| Status | Meaning |
|---|---|
| 200 | OK. |
| 400 | The body is not valid JSON. |
| 401 | Missing, invalid or restricted API key. |
| 403 | Not allowed: role, key scope, unverified domain, plan limit (plan_limit_reached) or a new team's members-only sending (sending_restricted). |
| 404 | Not found. |
| 409 | Conflict with the current state, or an idempotency key reused. |
| 422 | Validation failed. |
| 429 | Rate limit (rate_limit_exceeded), monthly quota (monthly_quota_exceeded) or a new team's daily limit (daily_limit_reached). |
curl -X POST https://isent.dev/api/v1/domains/{id}/verify \
-H "Authorization: Bearer $ISENT_API_KEY"