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.
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.
action?stringOne action (member.role), or a prefix ending in a dot (member.).
actor?stringOnly the changes this subject made.
from?stringFirst day, YYYY-MM-DD (UTC).
to?stringLast day, YYYY-MM-DD (UTC).
query?stringMatched against the actor's name, the subject and the action.
page_token?stringFrom the previous page's next_page_token.
limit?integerDeprecatedAt most this many; 0 or empty means the default.
int32after?stringAn entry's id, from an audit.event: only entries newer than it, oldest first.
page_size?integerint32iohr.accounts.v1.ListTeamEventsResponse
application/json- response
iohr.accounts.v1.ListTeamEventsResponse
events*array<>next_page_token*stringimport { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { for await (const teamEvent of api.accounts.allListTeamEvents("<org_id>")) { console.log(teamEvent); }} 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.
{ "events": [ { "action": "string", "actor_name": "string", "actor_sub": "string", "after": "string", "at": "string", "before": "string", "id": "string", "subject": "string" } ], "next_page_token": "string"}Get what the account may use GET
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`.
Get this month's units GET
The account's units this month: the plan, the allowance, what was used by category, operation and key, and what remains. A key reads its own account. Needs scope `usage:read`.