Sign in
Docs
API referenceAgents

API reference

List engineering work

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

The account's engineering work, newest first: changes opened and merged, checks that passed or failed, deployments, decisions moved, each with who did it (person, ai, agent or automation), when and a link. Filter by kind or from (RFC 3339); paged with page_size (0 means 50, at most 200) and next_page_token.

Needs scope agents:read.

Authorization

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

Path Parameters

org_id*string

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

Query Parameters

kind?string
from?string
page_size?integer
Formatint32
page_token?string

Response Body

iohr.agents.v1.ListWorkResponse

application/json
  1. response

iohr.agents.v1.ListWorkResponse

items*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 agentsWorkItem of api.agents.allListWork("<org_id>")) {    console.log(agentsWorkItem);  }} 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
{  "items": [    {      "action": "string",      "actor": "string",      "actor_kind": "string",      "at": "string",      "id": "string",      "kind": "string",      "outcome": "string",      "recorded_by": "string",      "subject": "string",      "title": "string",      "url": "string"    }  ],  "next_page_token": "string"}