Docs
Have a token? Manage tokens in the console
GET
/v1/events/events

Your account's events as they happen, as server-sent events. The same events a webhook receives, carrying ids and never content.

Needs scope events:read.

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.

Query Parameters

types?string

Comma-separated event types; empty for all.

account_id?string

A team you belong to, to act on its events; empty for your own account.

Response Body

A stream of iohr.events.v1.StreamEventsResponse events, one JSON object per data:; a failure is an error event carrying Problem

text/event-stream
  1. response

iohr.events.v1.StreamEventsResponse

account_id*string
data*
id*string
occurred_at*string
type*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 event of api.events.streamEvents()) {    console.log(event);  }} 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",  "data": {    "property1": "string",    "property2": "string"  },  "id": "string",  "occurred_at": "string",  "type": "string"}