discovery

Accept an invitation (session only)

Session only. The signed-in user's email must match the invitation's invited email exactly (403 invitation_email_mismatch otherwise). On success the organization becomes this session's active organization.

post/v1/invitations/{id}/accept

Request

  • Base URL: https://postbag.dev
  • URL: https://postbag.dev/v1/invitations/{id}/accept
  • Auth: HTTP bearer

Path parameters

idstring required

Response

ok

role'owner' | 'admin' | 'member' required

Example response

{
  "organization": {
    "id": "fm_8f3kq2"
  }
}

Changes

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