younifyd
Menu

Get Datasets Datasetname Backups Backupid

Get a backup

GET/datasets/{datasetName}/backups/{backupId}

Use it in a workflow

  1. Add a step and choose the Sanity connector.
  2. Pick the Get Datasets Datasetname Backups Backupid action (under Backups).
  3. Fill in the fields below, then reference the result from later steps as {{getDatasetsDatasetnameBackupsBackupid.response.data}}.

Request

Path parameters

datasetNamestringrequired

Name of the dataset

backupIdstringrequired

ID of the backup

Query parameters

nextCursorstring

The `nextCursor` value from the previous page's response. Omit it to fetch the first page.

limitinteger

Max number of files returned per page

Default 1000

Response

Returns 200 with an object. Read it in later steps with {{getDatasetsDatasetnameBackupsBackupid.response.data.<field>}}.

createdAtstring (date-time)
totalFilesinteger

Total number of files in the backup, across all pages.

filesarray<object>
namestring
urlstring

Signed download URL. It expires 24 hours after the request.

typestring

One ofdocumentimagefile

nextCursorstring

Cursor for the next page of files. Pass it as the `nextCursor` query parameter. An empty string means there are no more pages.

json
{
  "createdAt": "2025-01-01T00:00:00Z",
  "totalFiles": 0,
  "files": [
    {
      "name": "string",
      "url": "string",
      "type": "document"
    }
  ],
  "nextCursor": "string"
}

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