Hosted gateway

Disconnect a hosted gateway by revoking its key (workspace admin)

POST
/v1/hosted-gateway/keys/{key_id}/revoke

From the page itself (same-origin, a JSON body such as {}, as approve). An ADMIN or above of the session's workspace revokes a key that a hosted gateway sign-on issued there (it appears in the workspace key list as agentsafe-hosted-<tenant_label> with scopes ["decision:shadow"]), including one that lapsed undelivered; the gateway records nothing more. Any other key answers 404.

Authorization

AccountSessionCookie
decionis_account_session<token>

The signed HttpOnly account session the web app holds after sign-in (also accepted as a Bearer acct_ token).

In: cookie

Path Parameters

key_id*string
Formatuuid

Request Body

application/json

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/hosted-gateway/keys/497f6eca-6276-4993-bfeb-53cbbbba6f08/revoke" \  -H "Content-Type: application/json" \  -d '{}'
{  "key_id": "1e779c8a-6786-4c89-b7c3-a6666f5fd6b5",  "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",  "tenant_label": "string",  "revoked_at": "2019-08-24T14:15:22Z",  "revoked_reason": "self_revoked"}