Sign in
Docs
API referenceCoordinator

API reference

Get a turn's pack

Have a token? Manage tokens in the console
GET
/v1/coordinator/leases/{lease_id}/pack

The pack of an accepted lease: system prompt, prompt, model, caps, tools, its hash, whose seat, and the session it may resume. Only the lease's own runner, with its current token.

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.

Path Parameters

lease_id*string

The lease's id, lse_ and a ULID, from Runner heartbeat.

Query Parameters

fencing_token?string

The lease's current fencing token.

Formatint64
account_id?string

Response Body

iohr.coordinator.v1.GetTurnPackResponse

application/json
  1. response

iohr.coordinator.v1.GetTurnPackResponse

pack?

iohr.coordinator.v1.TurnPack

import { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try {  const { value } = await api.coordinator.getTurnPack("<lease_id>");  console.log(value);} 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
{  "pack": {    "allowed_tools": [      "string"    ],    "attempt": 0,    "checkout_path": "string",    "context_ceiling": 0,    "fencing_token": "string",    "job_id": "string",    "kind": "string",    "lease_id": "string",    "max_turns": 0,    "model": "string",    "pack_sha256": "string",    "prompt": "string",    "reply_shape": "string",    "resume_runner_id": "string",    "resume_session": "string",    "system_prompt": "string",    "thread_id": "string",    "token_budget": 0,    "turn_id": "string",    "user": "string",    "wall_clock_secs": 0  }}