API reference · Organizations
Accept or decline an invitation
POST/api/account/invitesSigned in session
An invitation is not a bearer token: the address on it has to be the address that signed in, so knowing an id is worth nothing.
Request body
application/json, required
| Field | Type | What it is |
|---|---|---|
| inviteIdrequired | integer | |
| actionrequired | string | One of "accept", "decline". |
Example
{
"inviteId": 0,
"action": "accept"
}Answer 200
Settled.
| Field | Type | What it is |
|---|---|---|
| ok | boolean | |
| orgId | integer | |
| role | string |
Errors
- 400OpenAI shaped error.
- 401OpenAI 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.