Skip to content
OpenRelay is in early access, and the /v1 API is stable. New capabilities ship in the changelog.
Account

Accept a pending org invite (session only)

Creates the membership for the invite addressed to the session's email in the given org, then consumes the invite. This is the only way an invite becomes a membership: the invitee must be authenticated with the invited email and act explicitly.

POST
/v1/me/invites/{orgId}/accept
AuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer vl_….

In: header

Path Parameters

orgId*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/me/invites/string/accept"
{
  "organizationId": "string",
  "role": "string"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}
{
  "error": "string",
  "code": "string"
}