Domains — K8 HQ Setup API
Domains operations for K8 HQ Setup API. Requests, permissions and responses.
Version 1OpenAPI description (JSON)
Before making requests, read the authentication and request requirements.
Add a domain, prove it's yours with DNS records (or one-click DNS setup), and manage its fee and addresses.
Base URL
| Base URL | For |
https://api.k8hq.com/setup | The K8 HQ web app, and programs acting with a person's session |
Endpoints
Domains
Check a domain
POST/v1/domains/check
Looks up the domain's DNS and moves it on as far as it can: with the TXT record found it's proven, and the answer lists three DKIM CNAMEs to add; with those found too (Amazon SES checks them, which can take a while after they're added) it's verified, and inboxes can have addresses there. Call again after adding records; missing says what's still not found. Once proven, the organization's invite links may sign up people without a K8 HQ account.
For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused. The session needs a recent passkey: if its last passkey confirmation is more than 5 minutes old, the answer is 401 step_up_required.
Parameters
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail). |
Request body (JSON)
| Field | Type | Description |
domain required | string | |
orgId required | string | The organization (org_...). Pattern: ^org_. |
{"domain":"example.com","orgId":"org_01J..."}
Response body (JSON)
| Field | Type | Description |
domain required | Domain | |
Responses
| Status | Body | Meaning |
| 200 | JSON | Where the domain stands now. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No session or it expired, or isn't a person's own (unauthenticated); or its passkey confirmation is more than 5 minutes old (step_up_required). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so this can't be changed until an owner adds credit. |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 409 | application/problem+json | Another organization proved it first (domain_taken), or it's being removed (domain_removing). |
| 410 | application/problem+json | Its TXT record wasn't found within 7 days, and it was released (domain_expired). |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |
One-click DNS setup: a signed link for one step
POST/v1/domains/connect
Makes a link, signed by K8 HQ, that asks the domain's DNS host to add one step's records; open it in the same window. The DNS host shows its own page to approve, then sends the person back to https://app.k8hq.com/setup/connect?attempt=..., where the web app calls connectReturn. Everything in the link comes from K8 HQ's own records (the proof token, the DKIM tokens, the return address); nothing from the request but the step. For mail-dmarc the domain's _dmarc record is looked up now, and the link is refused if one exists; dmarc@ the domain is routed to the organization's DMARC reports first. A link works with its attempt for an hour. At most 20 links an hour per organization and 5 per domain, and mail-verify links at most 10 a day per organization (3 on sending probation). Only for DNS hosts K8 HQ has enabled (connect_unsupported otherwise). Needs domains.manage.
Needs a passkey confirmation of this change (x-k8hq-confirm: domain.change). Until confirmations are enforced, a passkey sign-in in the last five minutes also works.
For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused.
Parameters
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail). |
Request body (JSON)
| Field | Type | Description |
domain required | string | |
orgId required | string | The organization (org_...). Pattern: ^org_. |
service required | mail-verify | mail-setup | mail-dmarc | mail-from | mail-verify: the TXT record that proves the organization controls the domain (a pending domain). mail-setup: the three DKIM CNAMEs and K8 HQ's sender merged into the SPF record (a proven or verified domain). mail-dmarc: a DMARC record in monitoring mode (p=none) with reports to dmarc@ the domain (a verified domain with no DMARC record). mail-from: the MX and SPF records of the domain's MAIL FROM name (a verified domain whose MAIL FROM name has no other records). Moving mail (MX) isn't offered yet. |
{"domain":"example.com","orgId":"org_01J...","service":"mail-verify"}
Response body (JSON)
| Field | Type | Description |
attempt required | string | The attempt (dca_...). |
expiresAt required | string | |
url required | string | The DNS host's apply URL, signed. |
Responses
| Status | Body | Meaning |
| 200 | JSON | The link to open. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No session or it expired, or isn't a person's own (unauthenticated); or its passkey confirmation is more than 5 minutes old (step_up_required). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so this can't be changed until an owner adds credit. |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 404 | application/problem+json | The organization has no such domain, or one-click setup is off (not_found). |
| 409 | application/problem+json | The DNS host doesn't offer this step (connect_unsupported), the step doesn't fit the domain now (connect_not_now), the domain already has a DMARC record (dmarc_exists), or it's being removed (domain_removing). |
| 429 | application/problem+json | Too many links in the last hour (rate_limited). |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |
One-click DNS setup: check after coming back
POST/v1/domains/connect/return
Checks the domain's DNS for an attempt, as checkDomain does, without a new passkey confirmation: the attempt (made with one in the last hour) and the person's domains.manage in its organization authorize it; otherwise not_found. The attempt is used up once its check finds what the step adds (done); until then (DKIM can take a while to be seen) it may be checked again, up to 30 times.
For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused.
Parameters
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail). |
Request body (JSON)
| Field | Type | Description |
attempt required | string | The attempt from the return address (dca_...). |
{"attempt":"dca_..."}
Response body (JSON)
| Field | Type | Description |
domain required | Domain | |
done required | boolean | The check found what the step adds. |
orgId required | string | |
service required | mail-verify | mail-setup | mail-dmarc | mail-from | mail-verify: the TXT record that proves the organization controls the domain (a pending domain). mail-setup: the three DKIM CNAMEs and K8 HQ's sender merged into the SPF record (a proven or verified domain). mail-dmarc: a DMARC record in monitoring mode (p=none) with reports to dmarc@ the domain (a verified domain with no DMARC record). mail-from: the MX and SPF records of the domain's MAIL FROM name (a verified domain whose MAIL FROM name has no other records). Moving mail (MX) isn't offered yet. |
Responses
| Status | Body | Meaning |
| 200 | JSON | Where the domain stands now. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No session, it expired, or it isn't a person's own session (unauthenticated). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so this can't be changed until an owner adds credit. |
| 404 | application/problem+json | No such attempt for this person, used up or expired (not_found). |
| 409 | application/problem+json | Another organization proved the domain first (domain_taken), or it's being removed (domain_removing). |
| 410 | application/problem+json | The domain's TXT record wasn't found within 7 days, and it was released (domain_expired). |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |
A proof notice's release link: release the claim
POST/v1/domains/release
Acts on the claim the link names, once, if that organization still holds the same domain record. An organization on sending probation with no addresses of its own there loses the domain (it's removed, with K8 HQ's DMARC reports route). Otherwise the domain is disputed: every record and address stays, nothing is sent from it, and K8 HQ looks into it; the organization's owners are told either way. Links expire after 14 days. No session (see releaseInfo).
No sign-in needed.
Parameters
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail). |
Request body (JSON)
| Field | Type | Description |
token required | string | The token from the release link (t). |
{"token":"..."}
Response body (JSON)
| Field | Type | Description |
domain required | string | |
expiresAt required | string | |
orgId required | string | The organization that claimed the domain (org_...). |
disputed | boolean | The release didn't remove the domain (the organization is past probation, or has addresses of its own there): its sending is stopped and K8 HQ looks into it. |
orgName | string | Its display name, as its people chose it. |
released | boolean | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The claim is being released. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 404 | application/problem+json | Not a valid release link, used already, or the claim it names is gone (release_invalid). |
| 410 | application/problem+json | The link has expired (release_expired). |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |
A proof notice's release link: which domain
POST/v1/domains/release/info
When a domain is proven after a one-click link was made for it, K8 HQ mails postmaster@ and admin@ the domain once, with a link to release the claim, for the domain's owner, who may have no K8 HQ account: no session. This shows the domain the link names before anything is done.
No sign-in needed.
Parameters
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail). |
Request body (JSON)
| Field | Type | Description |
token required | string | The token from the release link (t). |
{"token":"..."}
Response body (JSON)
| Field | Type | Description |
domain required | string | |
expiresAt required | string | |
orgId required | string | The organization that claimed the domain (org_...). |
disputed | boolean | The release didn't remove the domain (the organization is past probation, or has addresses of its own there): its sending is stopped and K8 HQ looks into it. |
orgName | string | Its display name, as its people chose it. |
released | boolean | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The domain the link names; released once it was used. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 404 | application/problem+json | Not a valid release link (release_invalid). |
| 410 | application/problem+json | The link has expired (release_expired). |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |
List domains
GET/v1/organizations/{orgId}/domains
The organization's domains and the DNS records each needs, for members with domains.manage (owners and admins).
For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused.
Parameters
| Name | Type | Description |
orgId (path) required | string | Organization ID. |
Response body (JSON)
| Field | Type | Description |
domains required | Domain[] | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The domains. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No session, it expired, or it isn't a person's own session (unauthenticated). |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |
Add a domain
POST/v1/organizations/{orgId}/domains
Adds a domain to the organization and returns the TXT record that proves the organization controls it. Add the record at the domain's DNS host, then Check it within 7 days, or the domain is released. A person may have one domain waiting for its TXT record at a time, across all their organizations. Adding a domain the organization already has returns it as it stands (with a new TXT value and another 7 days, if its time had run out).
Needs a passkey confirmation of this change (x-k8hq-confirm: domain.add). Until confirmations are enforced, a passkey sign-in in the last five minutes also works.
For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused. The session needs a recent passkey: if its last passkey confirmation is more than 5 minutes old, the answer is 401 step_up_required.
Parameters
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail). |
orgId (path) required | string | Organization ID. |
Request body (JSON)
| Field | Type | Description |
domain required | string | A domain name, such as example.com. |
{"domain":"example.com"}
Response body (JSON)
| Field | Type | Description |
domain required | Domain | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The domain, pending, with its TXT record. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No session or it expired (unauthenticated), or confirm this change with your passkey (confirmation_required; until confirmations are enforced, step_up_required with action, which a passkey use in the last 5 minutes also satisfies): the answer carries the action to confirm (see the sign-in API's confirmations). |
| 402 | application/problem+json | The organization has been out of credit for more than a week (no_credit, design note 0024): domains and inboxes can't be added until an owner adds credit. Removing them still works. From 60 days it's read-only (read_only). |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | Another domain of theirs is waiting (unproven_domain), another organization has it (domain_taken), or the organization has 50 (domain_limit), or it's being removed (domain_removing). |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |
Change how a domain's fee is paid
PATCH/v1/organizations/{orgId}/domains/{domain}
Sets the domain's fee plan. The fee covers the domain's setup and monitoring and a share of running the service. monthly: $12 a year (about $1 a month), charged a day at a time at each day's report (about 00:00 UTC) for the domains verified and not being removed at that moment. yearly: $10 a year, charged from the organization's credit at verification and on each anniversary, and not refunded if the domain is removed or moves to another organization before the year ends; if the credit is under $10 then, the domain stays monthly until its next anniversary and the owners are told. A change takes effect at the next anniversary (moving to monthly: once no paid year covers the day). Needs domains.manage and billing.pay, and a passkey used in the last few minutes.
Needs a passkey confirmation of this change (x-k8hq-confirm: domain.change). Until confirmations are enforced, a passkey sign-in in the last five minutes also works.
For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused.
Parameters
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail). |
orgId (path) required | string | orgId resource identifier. |
domain (path) required | string | domain resource identifier. |
Request body (JSON)
| Field | Type | Description |
plan required | monthly | yearly | How the domain's fee is paid. |
{"plan":"yearly"}
Response body (JSON)
| Field | Type | Description |
domain required | Domain | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The domain, with its plan. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No session or it expired, or isn't a person's own (unauthenticated); or its passkey confirmation is more than 5 minutes old (step_up_required). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so this can't be changed until an owner adds credit. |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | The domain is being removed (domain_removing). |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |
Remove a domain
DELETE/v1/organizations/{orgId}/domains/{domain}
Removes a domain from the organization, for members with domains.manage, typing the domain to confirm. Refused while the organization has addresses there (addresses_left; List a domain's addresses shows them) unless removeAddresses is true, which also needs inbox.addresses.manage across the organization: they're removed first. From the request on the domain takes no new addresses. Then a job, within minutes: the addresses stop receiving (mail to them is refused like mail to an unknown address), its sending setup goes (its SES identity is deleted, or only unlinked when another organization also lists the domain), its claim is released so another organization may add it, its fee stops, and the owners are told, with the DNS records they can delete. Removing its last proven or verified domain means the organization's invitations can't make accounts until it has one again. An organization removes at most 10 inboxes and domains a day (removal_limit). K8 HQ's own domains are never removed (platform_domain). Bound to the action by per-action confirmation (domain.remove) once that exists; a recent passkey until then.
Needs a passkey confirmation of this change (x-k8hq-confirm: domain.remove). Until confirmations are enforced, a passkey sign-in in the last five minutes also works.
For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused.
Parameters
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail). |
orgId (path) required | string | orgId resource identifier. |
domain (path) required | string | domain resource identifier. |
x-k8hq-delete-confirm (header) | string | Exact typed confirmation, UTF-8 percent-encoded (encodeURIComponent), decoded once; maximum 4096 encoded bytes. Use a bodyless DELETE. Input metadata, not authorization. Do not combine deletion headers with any body. JSON bodies remain supported for direct requests. |
x-k8hq-remove-addresses (header) | true | false | Domain only: strict true or false. Requires x-k8hq-delete-confirm and no body. Omitted means false. |
Request body (JSON)
| Field | Type | Description |
confirm required | string | The domain, typed. |
removeAddresses | boolean | Remove the organization's addresses at the domain with it (default false: refused while there are any). |
{"confirm":"example.com","removeAddresses":false}
Response body (JSON)
| Field | Type | Description |
domain required | string | The domain, lowercase. |
jobId required | string | The job removing it (job_...); asking again while it runs returns the same one. Pattern: ^job_. |
Responses
| Status | Body | Meaning |
| 200 | JSON | Its removal started. |
| 400 | application/problem+json | The typed domain doesn't match (confirm_name), or invalid input (invalid). |
| 401 | application/problem+json | No session or it expired, or isn't a person's own (unauthenticated); or its passkey confirmation is more than 5 minutes old (step_up_required). |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 404 | application/problem+json | The organization doesn't list the domain (not_found). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | It still has addresses (addresses_left), it's one of K8 HQ's own domains (platform_domain), or it's being removed already (domain_removing). |
| 410 | application/problem+json | The organization is being deleted (org_closed). |
| 429 | application/problem+json | The organization removed 10 inboxes and domains today (removal_limit). |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |
List a domain's addresses
GET/v1/organizations/{orgId}/domains/{domain}/addresses
The organization's addresses at a domain, in any of its inboxes, for members with domains.manage: removing the domain needs them gone first, or removed with it. Deleted addresses aren't listed.
For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused.
Parameters
| Name | Type | Description |
orgId (path) required | string | orgId resource identifier. |
domain (path) required | string | domain resource identifier. |
Response body (JSON)
| Field | Type | Description |
addresses required | object[] | |
domain required | string | The domain, lowercase. |
Responses
| Status | Body | Meaning |
| 200 | JSON | Its addresses. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No session, it expired, or it isn't a person's own session (unauthenticated). |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 404 | application/problem+json | The organization doesn't list the domain (not_found). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |
One-click DNS setup: what the domain's DNS host offers
GET/v1/organizations/{orgId}/domains/{domain}/connect-info
Looks up whether the domain's DNS host supports Domain Connect (its _domainconnect TXT record and settings) and has K8 HQ's templates, and which of them fit the domain now (available). Unsupported hosts answer supported: false: add the records yourself. Answers are kept for a few minutes. Needs domains.manage.
For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused.
Parameters
| Name | Type | Description |
orgId (path) required | string | orgId resource identifier. |
domain (path) required | string | domain resource identifier. |
Response body (JSON)
| Field | Type | Description |
available required | mail-verify | mail-setup | mail-dmarc | mail-from[] | The steps that fit the domain now. |
services required | object | Each step the DNS host has K8 HQ's template for. |
supported required | boolean | |
providerId | string | The DNS host's Domain Connect provider ID. Links are made only for hosts K8 HQ has enabled; others list nothing in available. |
providerName | string | The DNS host's name, e.g. GoDaddy. |
Responses
| Status | Body | Meaning |
| 200 | JSON | What one-click setup the domain's DNS host offers. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No session, it expired, or it isn't a person's own session (unauthenticated). |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 404 | application/problem+json | The organization has no such domain, or one-click setup is off (not_found). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | The domain is being removed (domain_removing). |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |
Get a domain's MAIL FROM
GET/v1/organizations/{orgId}/domains/{domain}/mail-from
The domain's custom MAIL FROM: the subdomain its mail is sent from in SMTP (where bounces return), the MX and SPF records it needs, Amazon SES's verdict, and the names that could be chosen instead, each checked in the domain's DNS now. A name is free when it has no CNAME, MX, TXT or address records, or only the ones MAIL FROM needs. Needs domains.manage.
For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused.
Parameters
| Name | Type | Description |
orgId (path) required | string | orgId resource identifier. |
domain (path) required | string | domain resource identifier. |
Response body (JSON)
| Field | Type | Description |
mailFrom required | MailFrom | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The domain's MAIL FROM and the names it could use. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No session, it expired, or it isn't a person's own session (unauthenticated). |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | The domain is being removed (domain_removing). |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |
Choose a domain's MAIL FROM
PUT/v1/organizations/{orgId}/domains/{domain}/mail-from
Chooses the name the domain's MAIL FROM uses. Another name than the current one must be free in the domain's DNS now (409 mail_from_in_use otherwise); it's checked again here. A verified domain sends with it once Amazon SES finds its records (see the domain's mailFrom.records); until then mail goes with SES's own MAIL FROM, as before. Needs domains.manage and a passkey used in the last few minutes.
Needs a passkey confirmation of this change (x-k8hq-confirm: domain.change). Until confirmations are enforced, a passkey sign-in in the last five minutes also works.
For a person's own session (x-k8hq-token) only: assistants' delegated tokens and API tokens are refused.
Parameters
| Name | Type | Description |
x-amz-content-sha256 (header) required | string | The body's SHA-256, lowercase hex. CloudFront signs requests to this service and refuses a POST without it (403, not a problem detail). |
orgId (path) required | string | orgId resource identifier. |
domain (path) required | string | domain resource identifier. |
Request body (JSON)
| Field | Type | Description |
mailFrom required | string | The subdomain label, e.g. bounce. Pattern: ^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$. |
{"mailFrom":"bounce"}
Response body (JSON)
| Field | Type | Description |
domain required | Domain | |
Responses
| Status | Body | Meaning |
| 200 | JSON | The domain, with its MAIL FROM. |
| 400 | application/problem+json | Malformed or invalid input (invalid). |
| 401 | application/problem+json | No session or it expired, or isn't a person's own (unauthenticated); or its passkey confirmation is more than 5 minutes old (step_up_required). |
| 402 | application/problem+json | The organization is read-only (read_only, design note 0024): it has been out of credit for 60 days, so this can't be changed until an owner adds credit. |
| 403 | application/problem+json | They may not do this in the organization, or a browser origin other than the web app's (forbidden). |
| 405 | application/problem+json | Method not allowed. The Allow header lists supported methods. |
| 409 | application/problem+json | The name is in use in the domain's DNS (mail_from_in_use), or the domain is being removed (domain_removing). |
| 503 | application/problem+json | A temporary problem (unavailable); retry. |