Revoke an inference key

​

The system-created default Key is protected and cannot be deleted. Other keys retain the existing cooldown before their names can be reused.

Required permission: api_keys:delete. Authenticate with an OpenAPI Key bound to the target workspace using Authorization: Bearer <OpenAPI Key>.

Path Parameters
  • id
    Type: string
    required

    External ID of the target resource. Resources in another workspace are inaccessible.

Headers
  • Idempotency-Key
    Type: string
    min length:  
    1
    max length:  
    200
    required

    Use a unique request ID for each operation with the same machine Key. A duplicate with identical parameters reuses the original result; changed parameters return 409. Maximum 200 bytes.

Responses
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for delete/v1/api-keys/{id}
curl https://openapi.apigo.ai/v1/api-keys/REPLACE_WITH_RESOURCE_ID \
  --request DELETE \
  --header 'Idempotency-Key: request-REPLACE-WITH-UNIQUE-ID' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "code": 0,
  "message": "string",
  "data": {
    "deleted": true,
    "name_reusable_at": "2026-10-19T02:14:25.583Z"
  }
}