Skip to content

API: API keys

Revoke the key used by this request

The row is kept for the audit trail, marked revoked.

DELETE/api/v1/tokens/current

Authentication#

Send your API key as Authorization: Bearer <key>. The X-API-Key header works too, and Authorization wins when both are present. Any valid key works: no ability is needed.

Responses#

204 No Content#

No body.

401 Unauthorized#

Content type application/problem+json. Error (RFC 9457 problem details). Schema: Problem.

The error follows RFC 9457. See Errors.

Any other status#

Content type application/problem+json. Error (RFC 9457 problem details). Schema: Problem.

The error follows RFC 9457. See Errors.

curl -X DELETE "http://localhost:3000/api/v1/tokens/current" \
  -H "Authorization: Bearer $VUKEM_TOOLS_API_KEY"

Response examples

{
  "detail": "This action requires authentication.",
  "instance": "/api/v1/me",
  "request_id": "01JQZ8R4T6WQ2N9K3V5Y7B0C1D",
  "status": 401,
  "title": "Unauthorized",
  "type": "about:blank"
}

The examples are built from the schemas, so every value is a placeholder of its type. The tables above hold the fields that carry the real values.