API reference · Organizations
Preview or accept a one time crew invite link
POST/api/account/invite-linksSigned in session
The code travels in the body, never in a URL. Accept joins the signed in account once; the link is spent by the join.
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| coderequired | string | |
| actionrequired | string | One of "preview", "accept". |
Example
{
"code": "string",
"action": "preview"
}Answer 200
What the link offers, or the crew joined.
| Field | Type | What it is |
|---|---|---|
| orgId | integer | |
| orgName | string | |
| role | string | |
| expiresAt | integer | |
| member | boolean |
Errors
- 401OpenAI shaped error.
- 404OpenAI shaped error.
- 409OpenAI shaped error.
- 429OpenAI 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.