APIDatasets
Create a dataset
POST
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.
api_keyheader
AuthorizationBearer <token>An API key from Settings (ts_...).
application/json- 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*stringquestions?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).
application/json- response
id*stringFormat
uuiduploads*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" } ]}