Thrive AI Health
Api reference

Revoke a tenant key

Subsequent requests using the raw secret receive `401 unauthorized`. Revoking the key used to authenticate the current request returns `409 cannot_revoke_self` — mint a replacement and authenticate with it first, or use `POST /v1/auth/tenant-key/rotate` for grace-period rotation.

DELETE
/v1/admin/org/tenant-keys/{key_id}

Path Parameters

key_id*Key Id

Header Parameters

org-id?string|null
x-user-id?string|null
x-request-id?string|null
traceparent?string|null
Idempotency-Key?|null

Response Body

application/json

curl -X DELETE "https://loading/v1/admin/org/tenant-keys/string"
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}