API reference · Organizations
Claim an email domain
POST/api/orgs/{id}/domainsSigned in session
members.manage. Public mail providers are refused, and a domain another crew proved is refused. At most 10 per crew. Prove it by publishing antimatter-verify=<token> as a TXT record at _antimatter.<domain> (or the domain itself).
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | integer | The crew's id. |
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| domainrequired | string |
Example
{
"domain": "string"
}Answer 201
Claimed.
| Field | Type | What it is |
|---|---|---|
| domain | object | |
| domain. | integer | |
| domain. | string | |
| domain. | integer or null | |
| domain. | string or null | One of "dns", "email", null. |
| domain. | boolean | |
| domain. | integer | |
| domain. | integer or null | |
| domain. | object | |
| domain. | string | |
| domain. | "TXT" | |
| domain. | string | |
| domain. | string or null | |
| domain. | integer or null | When an email proof lapses (it lasts 30 days); null for DNS, which does not. |
Errors
- 400OpenAI shaped error.
- 401OpenAI shaped error.
- 403OpenAI shaped error.
- 404OpenAI shaped error.
- 409OpenAI shaped error.
Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.