Skip to main content
DELETE
Revoke project API key
This endpoint requires an Admin Key with the org:write scope, and the key owner must still be an organization admin at call time (otherwise 403 owner_not_admin).Use this for leak response and offboarding revocation.

Authorizations

Authorization
string
header
required

Send the Admin API secret as a Bearer token in the Authorization header (Bearer sk-admin-***). Create Admin Keys under Console → Organization → Admin API Keys.

Path Parameters

pid
string
required

Project ID.

key
string
required

Business API key ID.

Response

API key revoked.

key
string
required

ID of the revoked inference API key.

deleted
boolean
required

Whether the key was revoked.