Sign in
Docs
API referenceSchedules

API reference

List schedules

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

An account's schedules, newest first.

Needs scope schedules: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

account_id?string

A team you belong to; empty for your own account.

page_size?integer

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

Formatint32
page_token?string

From the previous page's next_page_token.

Response Body

iohr.schedules.v1.ListResponse

application/json
  1. response

iohr.schedules.v1.ListResponse

next_page_token*string
schedules*array<>
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 schedule of api.schedules.allList()) {    console.log(schedule);  }} 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
{  "next_page_token": "string",  "schedules": [    {      "account_id": "string",      "created_at": "string",      "created_by": "string",      "default_responder": {        "id": "string",        "kind": "string"      },      "description": "string",      "layers": [        {          "intervals": [            {              "days": "string",              "end": "string",              "start": "string"            }          ],          "layer_id": "string",          "name": "string",          "responders": [            {              "id": "string",              "kind": "string"            }          ],          "rotation": {            "anchor": "string",            "cadence": "string",            "every": 0,            "handover": "string",            "handover_day": "string"          },          "scope": [            "string"          ]        }      ],      "name": "string",      "overrides": [        {          "created_at": "string",          "created_by": "string",          "end": "string",          "note": "string",          "override_id": "string",          "responder": {            "id": "string",            "kind": "string"          },          "scope": [            "string"          ],          "start": "string"        }      ],      "schedule_id": "string",      "timezone": "string",      "updated_at": "string",      "updated_by": "string",      "version": 0    }  ]}