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

Leave an organization

Removes the signed-in user from the organization and revokes their playground keys. Organization keys are not affected. The organization must retain at least one owner.

Required permission

Checked against the member.leave permission for the resource it acts on. See Permissions for the roles and API key permissions that include it.

Command line

The orl CLI wraps this endpoint:

orl organizations member leave
POST
/v1/orgs/{orgId}/members/me/leave

Authorization

apiKey
headerAuthorizationBearer <token>

OpenRelay API key. Send it as Authorization: Bearer or_… (legacy vl_… keys still work).

Path Parameters

orgId*string

Response Body

Left the organization

Example Request
curl -X POST 'https://api.openrelay.inc/v1/orgs/string/members/me/leave'
Example Response
Empty