Revoke Scoped Api Key
DELETE/v1/api-keys/scoped/{key_id}Revoke a scoped API key created by the caller.
Requires a Bearer token with the create_scoped_keys capability. Can only revoke keys that were created by the calling key.
Authentication required — include an
Authorization: Bearer hsk_...header. See Authentication for details.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
key_id | string | Yes |
Example Request
bash
curl -X DELETE 'https://api.hindsight.vectorize.io/v1/api-keys/scoped/your-key-id' \
-H 'Authorization: Bearer hsk_your_api_key'Responses
200 — Successful Response
json
{
"id": "Id",
"revoked_at": "Revoked At",
"message": "Message"
}422 — Validation Error
json
{
"detail": [
{
"loc": [
null
],
"msg": "Message",
"type": "Error Type",
"input": null,
"ctx": {},
"url": "URL"
}
]
}Source: /v1/api-keys/scoped/{key_id}