Bandwise docs
API reference

Versions

Available from Phase 3

The HTTP API is not live yet. These endpoints are the planned contract, generated from the same schema the server will use. Paths and fields can still change before they ship.

List a set's versions.

GET/api/v1/sets/{ref}/versions

Authorization

AuthorizationBearer <token>

An app token (sk_live_, sk_test_, pk_live_), a browser token (a 5-minute ES256 JWT) or an agent token (sa_live_).

In: header

Path Parameters

ref*string
Length1 <= length

Query Parameters

limit?integer
Range1 <= value <= 200
Default50
cursor?string
Length1 <= length

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/sets/string/versions"
{  "data": [    null  ],  "nextCursor": "string"}
GET/api/v1/sets/{ref}/versions/{n}

Authorization

AuthorizationBearer <token>

An app token (sk_live_, sk_test_, pk_live_), a browser token (a 5-minute ES256 JWT) or an agent token (sa_live_).

In: header

Path Parameters

ref*string
Length1 <= length
n*integer
Range0 < value <= 9007199254740991

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/sets/string/versions/1"
null
GET/api/v1/sets/{ref}/diff

Authorization

AuthorizationBearer <token>

An app token (sk_live_, sk_test_, pk_live_), a browser token (a 5-minute ES256 JWT) or an agent token (sa_live_).

In: header

Path Parameters

ref*string
Length1 <= length

Query Parameters

from*string||
to*string||

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/sets/string/diff?from=draft&to=draft"
{  "from": "string",  "to": "string",  "changes": [    {      "path": "string",      "op": "add",      "before": "string",      "after": "string"    }  ],  "interface": {    "breaking": [      "string"    ],    "additive": [      "string"    ]  }}

Bandwise is an independent product built on TypeSafe's System One models. It is not TypeSafe's documentation. For the System One models themselves, see docs.typesafe.ai.