Docs
Have a token? Manage tokens in the console
GET
/v1/accounts/orgs/{org_id}/audit

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.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

org_id*string

The account's id: org in GET /v1/me.

Query Parameters

action?string

One action (member.role), or a prefix ending in a dot (member.).

actor?string

Only the changes this subject made.

from?string

First day, YYYY-MM-DD (UTC).

to?string

Last day, YYYY-MM-DD (UTC).

query?string

Matched against the actor's name, the subject and the action.

page_token?string

From the previous page's next_page_token.

limit?integerDeprecated

At most this many; 0 or empty means the default.

Formatint32
after?string

An entry's id, from an audit.event: only entries newer than it, oldest first.

page_size?integer
Formatint32

Response Body

iohr.accounts.v1.ListTeamEventsResponse

application/json
  1. response

iohr.accounts.v1.ListTeamEventsResponse

events*array<>
next_page_token*string
import { 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"}