from addresses used in transactional emails, templates, and campaigns must belong to a verified domain.
Domain endpoints require user authentication and a verified email address. They are scoped to a specific project by
projectId.Get domains for a project
GET /domains/project/:projectId
Returns all domains linked to a project.
Path parameters
The project ID.
Response
Array of domain objects.Domain record ID.
Domain name (e.g.
myapp.com).ID of the project this domain belongs to.
Whether the domain has passed DNS verification.
ISO 8601 timestamp when the domain was added.
Example
200
Add domain
POST /domains
Adds a new domain to a project. After adding, DNS records must be configured before the domain passes verification.
You must be an admin of the target project to add a domain. A domain can only be linked to one project at a time — attempting to add a domain that is already linked to another project will return an error.
Body parameters
The project to link the domain to.
The domain name to add, e.g.
myapp.com. Do not include a protocol or path.Response
Returns the newly created domain object with HTTP201.
Domain record ID.
Domain name.
Linked project ID.
false until DNS verification passes.ISO 8601 creation timestamp.
Example
Check domain verification
GET /domains/:id/verify
Triggers a fresh DNS verification check for the domain and returns the updated verification status.
Path parameters
The domain record ID.
Response
Returns the verification status object.true when all required DNS records are correctly configured.Example
200
Remove domain
DELETE /domains/:id
Removes a domain from its linked project.
You must be an admin of the project the domain belongs to.
Path parameters
The domain record ID.
Response
true on successful removal.Example
200