Grants and history
Revoke a grant
Have a token? Manage tokens in the console
DELETE
The next call the grant covered is refused.
Needs scope connections:write.
bearerheader
AuthorizationBearer <JWT>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.
org_id*stringThe account's id: org in GET /v1/me.
connection_id*stringThe connection's id, con_ and a ULID, from List connections.
grant_id*stringThe grant's id, gnt_ and a ULID.
iohr.connections.v1.RevokeGrantResponse
application/json- response
iohr.connections.v1.RevokeGrantResponse
grant?iohr.connections.v1.Grant
SDK
HTTP
import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { const { value } = await api.connections.revokeGrant("<org_id>", "<connection_id>", "<grant_id>"); console.log(value);} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`); process.exitCode = 1;}npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.
Example Response
{ "grant": { "actions": [ "string" ], "connection_id": "string", "consumer": { "id": "string", "kind": "string" }, "created_at": "string", "created_by": "string", "expires_at": "string", "id": "string", "revoked_at": "string", "status": "string" }}