Payezydevelopers
Sandbox

API reference / Identity and access

Revoke an API key

POST/v1/orgs/{orgId}/api-keys/{keyId}/revoke

Revoke a key immediately (api_keys:manage, AAL2).

Before you call it

  • Permissionapi_keys:manage
  • Second factorRequired for browser sessions. An API key with the scope replaces it.

Parameters

ParameterWhat it does
orgIdpath, uuidrequiredThe organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list.
keyIdpath, uuidrequiredAn API key id from the key list.

Response 204

Revoked

No body.