Disable API Key
PUT /api/v1/gateway/keys/{key_id}/disable
Temporarily disables a key (can be re-enabled). Requires an admin-or-above role (admin / ops / super).
Auth: this endpoint belongs to the console backend API (base URL
https://portal.aiin1.ai— note, notapi.portal.aiin1.ai). It requires anaccess_tokenobtained by logging in with a console account (valid 15 minutes); thesk-nex-API token does not work here. See Billing Reconciliation & Automated Usage Sync for the login flow.
Request parameters
| Param | In | Type | Required | Description |
|---|---|---|---|---|
key_id |
path | string(uuid) | yes | Key ID |
Example
curl -X PUT https://portal.aiin1.ai/api/v1/gateway/keys/KEY_ID/disable \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
Returns 204 No Content on success — no response body.