Instructions

Every version of the workspace-wide instructions, newest first

GET
/v1/instructions/versions

Authorization

bearerAuth
AuthorizationBearer <token>

A personal API key (psk_…) or an OAuth access token (plan_at_…). Scopes: read, write.

In: header

Query Parameters

limit?integer

Versions per page, 1–200. Defaults to 50; values outside the range clamp.

before?integer

A seq from a previous page’s nextBefore. Returns versions older than it, so a client can walk the whole ledger without repeats.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/instructions/versions"
{  "scope": "company",  "versions": [    {      "seq": 0,      "version": 0,      "actor": "string",      "message": "string",      "op": "string",      "createdAt": "2019-08-24T14:15:22Z",      "characters": 0    }  ],  "nextBefore": 0}