API reference · Organizations
Prove a domain, or switch auto approve
PATCH/api/orgs/{id}/domainsSigned in session
members.manage. action check_dns looks up the TXT record now; send_email sends a one time link to admin, administrator, hostmaster, postmaster, webmaster at the domain (503 email_off unless email is configured; a mailbox takes 2 links a day and a domain 5, whoever asks); auto_approve lets a proven address at the domain join as a member without a review. An email proof lapses after 30 days; a DNS proof does not, and it takes a domain back from a team that proved it by email.
Parameters
| Field | Type | What it is |
|---|---|---|
| id (path)required | integer | The crew's id. |
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| idrequired | integer | |
| actionrequired | string | One of "check_dns", "send_email", "auto_approve". |
| mailbox | string | One of "admin", "administrator", "hostmaster", "postmaster", "webmaster". |
| autoApprove | boolean |
Example
{
"id": 0,
"action": "check_dns",
"mailbox": "admin",
"autoApprove": false
}Answer 200
The domain.
| 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.
- 429OpenAI shaped error.
- 503OpenAI 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.