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

Remove a member (owner/admin)

Removes a member from the organization so they lose access to it. With permissions enabled, their personal keys are revoked and the response lists them. Without permissions enabled the response is 204.

Required permission

Checked against the member.manage 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 delete <user-id>
DELETE
/v1/orgs/{orgId}/members/{userId}

Authorization

apiKey
headerAuthorizationBearer <token>

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

Path Parameters

orgId*string
userId*string

Response Body

Removed

application/json
  1. response
revokedKeyIds*array<string>

The member's personal keys, revoked with the removal.

Example Request
curl -X DELETE 'https://api.openrelay.inc/v1/orgs/string/members/string'
Example Response
{  "revokedKeyIds": [    "string"  ]}