Menu
Get Documents
Get one or more documents
GET
/data/doc/{dataset}/{documentId}Use it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Get Documents action (under Documents).
- Fill in the fields below, then reference the result from later steps as
{{getDocuments.response.data}}.
Request
Path parameters
Query parameters
Response
Returns 200 with an object. Read it in later steps with {{getDocuments.response.data.<field>}}.
{
"documents": null,
"omitted": [
{
"id": "string",
"reason": "existence"
}
]
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?