The account's plan and the features and extensions it includes, with the reason: the plan, or every feature for InOrbit's own accounts and platform admins. Members, the account's keys and tokens with account:read may read it; anyone else gets not found.
Needs scope account:read.
bearerAuthorizationBearer <token>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (docs.inorbit.hr). The gateway verifies it; the audience is iohr-api.
org_id*stringThe account's id: org in GET /v1/me.
iohr.accounts.v1.GetEntitlementsResponse
application/json- response
iohr.accounts.v1.GetEntitlementsResponse
account_id*stringextensions*array<string>features*array<string>granted_by*stringplan*stringimport { 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.accounts.getEntitlements("<org_id>"); console.log(value);} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`);}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.
{ "account_id": "string", "extensions": [ "string" ], "features": [ "string" ], "granted_by": "string", "plan": "string"}Get the account GET
The account the call counts against, with its plan; for a key, also the key's name and when it was last used. Needs scope `account:read`.
List audit log entries GET
The account's audit log: who changed its members, roles, invitations, keys, tokens, name, plan, policy or deletion, and when, with the changed fields before and after. Newest first; with `after`, only newer entries, oldest first, which is how an `audit.event` webhook receiver fetches what it was told about. Needs a token given `account:audit`, and reads its own account. Needs scope `account:audit`.