Menu
Post Embeddings Index Dataset
Create an embeddings index
POST
/embeddings-index/{dataset}Use it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Post Embeddings Index Dataset action (under Embeddings Index).
- Fill in the fields below, then reference the result from later steps as
{{postEmbeddingsIndexDataset.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"indexName": "string",
"projection": "string",
"filter": "string"
}
Response
Returns 200 with an object. Read it in later steps with {{postEmbeddingsIndexDataset.response.data.<field>}}.
{
"status": "ok",
"message": "string",
"index": {
"status": "pending",
"indexName": "string",
"projectId": "string",
"dataset": "string",
"projection": "string",
"filter": "string",
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-01T00:00:00Z",
"failedDocumentCount": 0,
"startDocumentCount": 0,
"remainingDocumentCount": 0,
"webhookId": "string"
}
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?