younifyd
Menu

Export Dataset

Export documents in a dataset

GET/data/export/{dataset}

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Export Dataset action (under Export).
  3. Fill in the fields below, then reference the result from later steps as {{exportDataset.response.data}}.

Request

Path parameters

datasetstringrequired

The name of the dataset to export.

Query parameters

typesstring

A comma-separated list of document types to include in the export. Each value must match a document's `_type` exactly; wildcards aren't supported. To include asset documents, add `sanity.imageAsset` or `sanity.fileAsset`. An empty value (`types=`) exports all document types.

nextCursorstring

The cursor to continue the export from. Set to an empty string to start a new export in "cursor mode". Cursor mode inserts a `{"nextCursor": "..."}` object into the stream.

tagstring

A tag to identify the request in request logs.

Response

Returns 200 with a string (binary). Read it in later steps with {{exportDataset.response.data.<field>}}.

Need more? See the Sanity guide for connection setup and behaviour shared by every action.