Datasets
Available from Phases 3 to 3b
/api/v1/datasetsAn 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
1 <= value <= 200501 <= lengthResponse Body
application/json
application/json
curl -X GET "https://example.com/api/v1/datasets"{ "data": [ null ], "nextCursor": "string"}/api/v1/datasetsAn 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
Required for app and agent tokens on mutations. A replay within 24 hours returns the stored response.
1 <= lengthRequest 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/datasets" \ -H "Content-Type: application/json" \ -d '{ "property1": null, "property2": null }'null/api/v1/datasets/{id}/casesAn 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
uuidQuery Parameters
1 <= value <= 200501 <= lengthResponse Body
application/json
application/json
curl -X GET "https://example.com/api/v1/datasets/497f6eca-6276-4993-bfeb-53cbbbba6f08/cases"{ "data": [ null ], "nextCursor": "string"}/api/v1/datasets/{id}/casesAn 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
uuidHeader Parameters
Required for app and agent tokens on mutations. A replay within 24 hours returns the stored response.
1 <= lengthRequest Body
application/x-ndjson
TypeScript Definitions
Use the request body type in TypeScript.
1 <= itemsResponse Body
application/json
application/json
curl -X POST "https://example.com/api/v1/datasets/497f6eca-6276-4993-bfeb-53cbbbba6f08/cases" \ -H "Content-Type: application/x-ndjson" \ -d '{"state":"string","expected":"string"}'null/api/v1/datasets/{id}/snapshotsAn 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
uuidHeader Parameters
Required for app and agent tokens on mutations. A replay within 24 hours returns the stored response.
1 <= lengthResponse Body
application/json
application/json
curl -X POST "https://example.com/api/v1/datasets/497f6eca-6276-4993-bfeb-53cbbbba6f08/snapshots"{ "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861", "snapshotHash": "string", "caseCount": 0}/api/v1/datasets/{id}/exportAn 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
uuidResponse Body
application/json
application/json
curl -X GET "https://example.com/api/v1/datasets/497f6eca-6276-4993-bfeb-53cbbbba6f08/export"{ "jobId": "9d222c6d-893e-4e79-8201-3c9ca16a0f39", "evalRunId": "48c66916-3a2f-4912-aef2-bb48b65d9a07"}/api/v1/datasets/{id}/featuresAn 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
uuidQuery Parameters
0 < value <= 9007199254740991Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/datasets/497f6eca-6276-4993-bfeb-53cbbbba6f08/features?version=1"nullBandwise 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.