Delete API Key
DELETE /api/v1/gateway/keys/{key_id}
Deletes a key. Takes effect immediately and cannot be undone. 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 DELETE https://portal.aiin1.ai/api/v1/gateway/keys/KEY_ID \
-H "Authorization: Bearer $ACCESS_TOKEN"Response
Returns 204 No Content on success — no response body.