Avycenna

Revoke an API key

Deactivates an API key immediately. Requests using it will be rejected from then on.

DELETE
/api/v1/api-keys/{key_id}

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

key_id*Key Id
Formatuuid

Header Parameters

x-api-key?string|null

Response Body

application/json

application/json

curl -X DELETE "https://example.com/api/v1/api-keys/497f6eca-6276-4993-bfeb-53cbbbba6f08"
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}