Releasesv0.1.0
Api referenceEndpointsTenant

Revoke an API key

DELETE
/v1/keys/{key_id}

Every call with the key is refused from now on. A key cannot revoke itself (409): revoke it with another key of the tenant. Revoking a revoked key changes nothing. Recorded in the audit log as key.revoke.

Authorization

tenantKey
headerAuthorizationBearer <token>

Tenant API key, ohs_sk_ + 43 base62 characters.

Path Parameters

key_id*string
Formatuuid

Header Parameters

Authorization*string

The tenant API key, as a bearer secret.

Response Body

Revoked.

curl -X DELETE 'http://localhost:8080/v1/keys/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Authorization: Bearer ohs_sk_...'
Empty
Edit on GitHub