Sign in
Docs
API referenceCoordinator

API reference

List coordinator jobs

Have a token? Manage tokens in the console
GET
/v1/coordinator/jobs

The account's jobs, newest change first, with where each stands in the state machine.

Needs scope coordinator: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.

Query Parameters

state?string

A stage (intake ... done, stopped) or a mode (held, retry, awaiting); empty for all.

mine?boolean

Only the caller's own jobs.

page_size?integer

At most this many; 0 means 50, above 200 means 200.

Formatint32
account_id?string
parent_id?string
page_token?string

From the previous page's next_page_token.

compact?boolean

Response Body

iohr.coordinator.v1.ListJobsResponse

application/json
  1. response

iohr.coordinator.v1.ListJobsResponse

jobs*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 job of api.coordinator.allListJobs()) {    console.log(job);  }} 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
{  "jobs": [    {      "account_id": "string",      "await_deadline": "string",      "await_escalation": "string",      "await_kind": "string",      "brief": "string",      "brief_sha256": "string",      "compliance": {        "evidence_id": "string",        "needed": "string",        "paths_observed": true,        "pull_request": "string",        "pull_request_state": "string",        "reasons": [          "string"        ],        "repository": "string",        "required": true,        "verified": true      },      "created_at": "string",      "created_by": "string",      "document_id": "string",      "hold_ask": "string",      "hold_reason": "string",      "job_id": "string",      "kind": "string",      "lease_id": "string",      "mode": "string",      "model": "string",      "model_override_reason": "string",      "parent_job_id": "string",      "paused_from": "string",      "priority": 0,      "repository": "string",      "retried": true,      "retry_at": "string",      "runner_labels": [        "string"      ],      "stage": "string",      "state": "string",      "supersedes": "string",      "tags": [        "string"      ],      "thread_id": "string",      "token_budget": 0,      "trust_tier": "string",      "updated_at": "string",      "usage": {        "cache_read_tokens": "string",        "cache_write_tokens": "string",        "done_job_tokens": "string",        "reports": 0,        "tokens_in": "string",        "tokens_out": "string",        "total_tokens": "string"      },      "user": "string"    }  ],  "next_page_token": "string"}