Remotehost Docs

Revoke an API key

DELETE
/orgs/{orgId}/api-keys/{keyId}

Requires a user session with api_keys.manage. API keys cannot call this operation. A sandbox's own Claims key (rh_sb_) cannot be revoked by hand: it answers 409 with code: "sandbox_key_managed". To stop a sandbox using Claims, delete the sandbox or revoke the key it was issued from.

Authorization

bearerAuth
AuthorizationBearer <token>

A RemoteHost API key (rh_sk_...) or a user session token.

In: header

Path Parameters

orgId*string
keyId*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/orgs/string/api-keys/string"
{  "ok": true}