typestrict.aidocs
APIDatasets

Create a dataset

POST
/v1/datasets

Creates a dataset from files (one upload URL each, valid for 15 minutes), public sources, or both. Upload each file with a PUT to its URL, then confirm it with /files/{file_id}/complete.

Authorization

api_key
headerAuthorizationBearer <token>

An API key from Settings (ts_...).

Request Body

application/json
  1. body
anonymize?|

false = the owner declares the files hold no personal data: nothing is masked. Default true.

files?array<>
goal?|

"What decision should the model make?" in the customer's words.

locale?|

UI locale (en, pt-BR, es): the language of the agent's proposal.

name*string
questions?array<string>

Decisions to build, when the customer already knows them (several allowed).

remotes?array<|>

Public Hugging Face datasets and GitHub repositories (licenses are checked again here).

Response Body

application/json
  1. response
id*string
Formatuuid
uploads*array<>
curl -X POST "https://example.com/v1/datasets" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "uploads": [    {      "file_id": "8a0cfb4f-ddc9-436d-91bb-75133c583767",      "filename": "string",      "url": "string"    }  ]}