Skip to main content
POST
Create a dataset

Authorizations

Authorization
string
header
required

A Recursion API key, created in the console under API keys.

Headers

Idempotency-Key
string
required

Replay-protection key scoped to the verified tenant, organization, principal and this operation: the same key from another caller, or for another operation, is a new request. It must contain 1 to 256 visible ASCII characters and be sent as exactly one header value. Request identity is the exact HTTP method, escaped path, raw query, and raw body bytes. The same request replays the original successful response; any different request returns 409 idempotency_conflict, and an active matching request returns 409 idempotency_in_progress. Completed receipts are retained for approximately 24 hours, pending claims may be reclaimed after approximately 1 hour, and no deduplication is guaranteed after expiry.

Required string length: 1 - 256
Pattern: ^[!-~]+$
x-tenant-id
string

Optional tenant consistency check. When present, it must name the tenant bound to the API key, including when x-organization-id is default.

Minimum string length: 1
x-organization-id
string

Organization in which to act. Required for a tenant-scoped API key. Optional for an organization-scoped key, where it must name that same organization. The value may be an organization id or default.

Minimum string length: 1

Body

application/json
name
string
required

The dataset's display name, trimmed, 1 to 256 characters.

Required string length: 1 - 256

Response

Created

datasetId
string<uuid>
required
read-only

Dataset id.

latestReadyVersion
integer<int64>
required
read-only

The newest ready version; 0 while the dataset has none.

Required range: 0 <= x <= 9007199254740991
name
string
required

The dataset's display name.