Menu
Get Revision
Get a document revision
GET
/data/history/{dataset}/documents/{documentId}Use it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Get Revision action (under History).
- Fill in the fields below, then reference the result from later steps as
{{getRevision.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getRevision.response.data.<field>}}.
{
"documents": [
{
"_id": "123456",
"_createdAt": "2021-01-01T00:00:00Z",
"_updatedAt": "2021-01-01T00:00:00Z",
"_rev": "123456",
"_type": "article",
"additionalProperties": null
}
]
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?