Docs

API reference · AI gateway

Revoke a gateway key

POST/v1/orgs/{org}/ai/keys/{key}/revoke

Revoke a gateway key. Edge nodes refuse it once they have the change

Permission
ai.keys.manage
Audit log
ai.key.revoke
Operation
ai.keys.revoke

Parameters

NameInTypeRequiredNotes
orgpathstringyesfor example "org_01h455vb4pex5vsknk084sn02q"
keypathstringyesfor example "gwk_01h455vb4pex5vsknk084sn02q"
Idempotency-KeyheaderstringnoOne key per intended mutation. A retry with the key replays the recorded response instead of executing again; the key with another request answers 422 idempotency_key_reused. For example "01h455vb4pex5vsknk084sn02q"
x-obhut-management-assignmentheaderstringnoSelect one staff assignment. Direct membership remains the default. Bound API tokens use their stored source and ignore this selector. For example "masg_01h455vb4pex5vsknk084sn02q"

Response 200

FieldTypeRequiredNotes
idstringyesfor example "gwk_01h455vb4pex5vsknk084sn02q"
orgIdstringyesfor example "org_01h455vb4pex5vsknk084sn02q"
namestringyes
aliasesarray of stringyes
allAliasesbooleanyes
requestsPerMinuteintegeryes0 to 1000000000
tokensPerMinuteintegeryes0 to 1000000000000
allowOutsideEubooleanyes
budgetstring or nullyes
budgetNamestring or nullyes
createdAtstring (date-time)yesUTC, ISO 8601.
revokedAtstring (date-time) or nullyes