API reference

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

Request body fields
FieldTypeWhat it is
inviteIdrequiredinteger
actionrequiredstringOne of "accept", "decline".

Example

{
  "inviteId": 0,
  "action": "accept"
}

Answer 200

Settled.

Fields of the 200 answer
FieldTypeWhat it is
okboolean
orgIdinteger
rolestring

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.

Antimatter