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

Revoke an API key

Revokes an API key in the organization, after which requests made with it no longer authenticate. With permissions enabled an unknown key id returns 404.

Required permission

Checked against the apikey.revoke 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 api-keys delete <id>
DELETE
/v1/orgs/{orgId}/api-keys/{id}

Authorization

apiKey
headerAuthorizationBearer <token>

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

Path Parameters

orgId*string
id*string

Response Body

Revoked

Example Request
curl -X DELETE 'https://api.openrelay.inc/v1/orgs/string/api-keys/string'
Example Response
Empty