Decline a pending org invite (session only)
Deletes the pending invite to the given organization addressed to the session's email, without joining. Returns 204 whether or not an invite existed.
Required permission
Requires the self.update permission. See Permissions for the roles and API key permissions that include it.
Command line
The orl CLI wraps this endpoint:
orl account invite declineapiKeyAuthorizationBearer <token>OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).
orgId*stringDeclined (idempotent)
curl -X POST 'https://api.openrelay.inc/v1/me/invites/string/decline'Accept a pending org invite (session only) POST
Creates the membership for the invite addressed to the session's email in the given org, then consumes the invite. Returns the org id and the role granted. This is the only way an invite becomes a membership: the invitee must be authenticated with the invited email and act explicitly.
The current principal and the org it acts in GET
Returns the calling principal (API key or user session) and the organization the request acts in, with the org's name and, for a key, its id, name and budget. For an API key that org is fixed by the key; for a session it is the active org, and availableOrgs lists every org the user belongs to. Unlike /v1/me this works for API keys and does not onboard.