Accept an invitation. Signed out, with a name and a password: makes the account for the invited address, confirmed, and answers 201 with a session for the organization. Signed in as the invited address, with no body: joins the organization and moves the session there (200). An address that already has an account must sign in to accept; its password is never set here

post/v1/invitations/{token}/accept

Request

  • Base URL: https://api.evictionsapi.com
  • URL: https://api.evictionsapi.com/v1/invitations/{token}/accept
  • Auth: one of:
    • none
    • HTTP bearer

Path parameters

tokenstring required

Request body

namestring required
passwordstring required

Response

A new session for a new account (token, shown here only), with the account view; 200 with the account view alone for a signed-in person. An Idempotency-Key header is ignored.

tokenstring required

A session token (ess_...), shown here only. Send it as Authorization: Bearer.

roleunknown required
permissionsstring[] required

What the person may change in that organization. Reading needs no permission. Empty without an organization.

Changes

No recorded changes to this operation across all 1 revision of this API.