Bandwise docs
API reference

Definition Studio

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 Studio sessions.

GET/api/v1/studio/sessions

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

Query Parameters

goalId?string
Formatuuid
setId?string
Formatuuid
status?string
Length1 <= length
limit?integer
Range1 <= value <= 200
Default50
cursor?string
Length1 <= length

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/studio/sessions"
{  "data": [    null  ],  "nextCursor": "string"}

Start a Studio session.

POST/api/v1/studio/sessions

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

Header Parameters

Idempotency-Key?string

Required for app and agent tokens on mutations. A replay within 24 hours returns the stored response.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/studio/sessions" \  -H "Content-Type: application/json" \  -d '{    "property1": null,    "property2": null  }'
null
GET/api/v1/studio/sessions/{id}

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

id*string
Formatuuid

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/studio/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08"
null
POST/api/v1/studio/sessions/{id}/examples

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

id*string
Formatuuid

Header Parameters

Idempotency-Key?string

Required for app and agent tokens on mutations. A replay within 24 hours returns the stored response.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/studio/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/examples" \  -H "Content-Type: application/json" \  -d '{    "property1": null,    "property2": null  }'
null
POST/api/v1/studio/sessions/{id}/draft-definition

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

id*string
Formatuuid

Header Parameters

Idempotency-Key?string

Required for app and agent tokens on mutations. A replay within 24 hours returns the stored response.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/studio/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/draft-definition" \  -H "Content-Type: application/json" \  -d '{    "property1": null,    "property2": null  }'
null
POST/api/v1/studio/sessions/{id}/decompose

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

id*string
Formatuuid

Header Parameters

Idempotency-Key?string

Required for app and agent tokens on mutations. A replay within 24 hours returns the stored response.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/studio/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/decompose" \  -H "Content-Type: application/json" \  -d '{    "property1": null,    "property2": null  }'
null
POST/api/v1/studio/sessions/{id}/calibrate

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

id*string
Formatuuid

Header Parameters

Idempotency-Key?string

Required for app and agent tokens on mutations. A replay within 24 hours returns the stored response.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/studio/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/calibrate" \  -H "Content-Type: application/json" \  -d '{    "property1": null,    "property2": null  }'
{  "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39",  "evalRunId": "48c66916-3a2f-4912-aef2-bb48b65d9a07"}
POST/api/v1/studio/sessions/{id}/request-labels

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

id*string
Formatuuid

Header Parameters

Idempotency-Key?string

Required for app and agent tokens on mutations. A replay within 24 hours returns the stored response.

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/studio/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/request-labels" \  -H "Content-Type: application/json" \  -d '{    "property1": null,    "property2": null  }'
null
POST/api/v1/studio/sessions/{id}/promote

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

id*string
Formatuuid

Header Parameters

Idempotency-Key?string

Required for app and agent tokens on mutations. A replay within 24 hours returns the stored response.

Length1 <= length
If-Match?string

The draft ETag (its spec_hash).

Length1 <= length

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/studio/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/promote" \  -H "Content-Type: application/json" \  -d '{    "property1": null,    "property2": null  }'
null

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.