Sign in
Docs

API reference

List jobs

Have a token? Manage tokens in the console
GET
/v1/decisions/spaces/{space_id}/documents/{document_id}/jobs

The coordinator jobs linked to a document now, newest link first, with their role, who linked them and when. Unlinked jobs are left out.

Needs scope decisions: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 (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.

Path Parameters

space_id*string

The space.

document_id*string

The document's id, or what people call it (RFC 0120, prd-39).

Query Parameters

page_size?integer
Formatint32
page_token?string

Response Body

iohr.decisions.v1.ListJobsResponse

application/json
  1. response

iohr.decisions.v1.ListJobsResponse

links*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 jobLink of api.decisions.allListJobs("<space_id>", "<document_id>")) {    console.log(jobLink);  }} 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.

{  "links": [    {      "document_id": "string",      "job_id": "string",      "linked_at": "string",      "linked_by": "string",      "role": "string",      "via": "string"    }  ],  "next_page_token": "string"}