Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

Domains — API reference

Custom domains (ownership and mail DNS records) and the account's data region (docs/domains.md, docs/regions.md).

← All groups
GET /api/v1/account/region

The account's data region

Scope: account · domains.region

Responses 200 · 401 · 403 · 429

200 Success

region * DataRegion
fields

DataRegion

blocked_reason string | null
can_change boolean
code "eu" | "us" | "me" | "ap"
location string
name string
regions [object]
fields
code string
location string
name string

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

PUT /api/v1/account/region

Move the account to another data region

The superadmin only, and only while the account holds no stored data.

Scope: account · domains.update_region

Request body application/json
data_region * "eu" | "us" | "me" | "ap"
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

region * DataRegion
fields

DataRegion

blocked_reason string | null
can_change boolean
code "eu" | "us" | "me" | "ap"
location string
name string
regions [object]
fields
code string
location string
name string

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 The account already holds data (region locked)

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/domains

The account's custom domains

Scope: account · paginated · domains.index

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

domains * [CustomDomain]
fields

CustomDomain

domain string
id * string (uuid)
last_checked_at string | null
last_error string | null
next_check_at string | null
records [object]
fields
name string
purpose string
status string
type string
value string
status string pending | verified | failed …
verified_at string | null
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/domains

Add a custom domain

Added as pending with the DNS records to publish; it is verified once they are found. Needs `domain:manage`.

Scope: account · Idempotency-Key · domains.create

Request body application/json
domain * string e.g. example.com
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

domain * CustomDomain
fields

CustomDomain

domain string
id * string (uuid)
last_checked_at string | null
last_error string | null
next_check_at string | null
records [object]
fields
name string
purpose string
status string
type string
value string
status string pending | verified | failed …
verified_at string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 The domain is already added or taken by another account

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/domains/{id}

Remove a custom domain

Scope: account · domains.delete

ParameterInTypeDescription
id *pathstring (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 409 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 The domain is still in use

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/domains/{id}/check

Check a domain's DNS records now

Scope: account · Idempotency-Key · domains.check

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429 · 502

200 Success

domain * CustomDomain
fields

CustomDomain

domain string
id * string (uuid)
last_checked_at string | null
last_error string | null
next_check_at string | null
records [object]
fields
name string
purpose string
status string
type string
value string
status string pending | verified | failed …
verified_at string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

502 DNS lookup failed

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)