{
  "info": {
    "_postman_id": "95a06ed6-16e7-4d55-b04e-b3e781d45b0e",
    "name": "Sanity HTTP Assets Query API",
    "description": "The Sanity HTTP API provides access to the Sanity Content Lake platform, enabling querying, mutating, and managing structured content. The API supports GROQ queries, real-time event streaming, asset management, project management, webhooks, scheduling, and AI-powered content agents. Authentication uses Bearer tokens generated from Sanity project settings.\n\nContact Support:\n Name: Sanity Support",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T02:50:53.000Z",
    "updatedAt": "2026-07-28T02:50:54.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-95a06ed6-16e7-4d55-b04e-b3e781d45b0e"
  },
  "item": [
    {
      "name": "data",
      "item": [
        {
          "name": "query",
          "item": [
            {
              "name": "{dataset}",
              "item": [
                {
                  "name": "Query Documents",
                  "id": "2dcc78a4-e7bd-4dcd-87e9-19ed9ad41ad3",
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/data/query/:dataset?query=<string>&perspective=published&explain=<boolean>&resultSourceMap=<boolean>",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "data",
                        "query",
                        ":dataset"
                      ],
                      "query": [
                        {
                          "description": "(Required) GROQ query string",
                          "key": "query",
                          "value": "<string>"
                        },
                        {
                          "description": "Content perspective to query",
                          "key": "perspective",
                          "value": "published"
                        },
                        {
                          "description": "Include query execution plan in response",
                          "key": "explain",
                          "value": "<boolean>"
                        },
                        {
                          "description": "Include content source map metadata",
                          "key": "resultSourceMap",
                          "value": "<boolean>"
                        }
                      ],
                      "variable": [
                        {
                          "id": "43179366-614f-4780-9551-b9ac1c949acf",
                          "key": "dataset",
                          "value": "<string>",
                          "description": "(Required) Dataset name (e.g., production)"
                        }
                      ]
                    },
                    "description": "Query Content Lake using GROQ syntax. For queries under 11 KB, submit the query as a URL parameter. Use the CDN endpoint ({projectId}.apicdn.sanity.io) for edge-cached results."
                  },
                  "response": [
                    {
                      "id": "e6ad58dd-ce77-4b91-85c5-0fdd62f52bfc",
                      "name": "Query results",
                      "originalRequest": {
                        "method": "GET",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/data/query/:dataset?query=<string>&perspective=published&explain=<boolean>&resultSourceMap=<boolean>",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "data",
                            "query",
                            ":dataset"
                          ],
                          "query": [
                            {
                              "description": "(Required) GROQ query string",
                              "key": "query",
                              "value": "<string>"
                            },
                            {
                              "description": "Content perspective to query",
                              "key": "perspective",
                              "value": "published"
                            },
                            {
                              "description": "Include query execution plan in response",
                              "key": "explain",
                              "value": "<boolean>"
                            },
                            {
                              "description": "Include content source map metadata",
                              "key": "resultSourceMap",
                              "value": "<boolean>"
                            }
                          ],
                          "variable": [
                            {
                              "key": "dataset"
                            }
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"ms\": \"<integer>\",\n  \"query\": \"<string>\",\n  \"result\": {\n    \"description\": \"Query result (object, array, number, or null)\"\n  },\n  \"syncTags\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}",
                      "createdAt": "2026-07-28T02:50:54.000Z",
                      "updatedAt": "2026-07-28T02:50:54.000Z",
                      "uid": "35240-e6ad58dd-ce77-4b91-85c5-0fdd62f52bfc"
                    },
                    {
                      "id": "ac1bbbf2-8368-41e4-bb08-93f73e2f9a05",
                      "name": "Invalid GROQ query",
                      "originalRequest": {
                        "method": "GET",
                        "header": [
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/data/query/:dataset?query=<string>&perspective=published&explain=<boolean>&resultSourceMap=<boolean>",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "data",
                            "query",
                            ":dataset"
                          ],
                          "query": [
                            {
                              "description": "(Required) GROQ query string",
                              "key": "query",
                              "value": "<string>"
                            },
                            {
                              "description": "Content perspective to query",
                              "key": "perspective",
                              "value": "published"
                            },
                            {
                              "description": "Include query execution plan in response",
                              "key": "explain",
                              "value": "<boolean>"
                            },
                            {
                              "description": "Include content source map metadata",
                              "key": "resultSourceMap",
                              "value": "<boolean>"
                            }
                          ],
                          "variable": [
                            {
                              "key": "dataset"
                            }
                          ]
                        }
                      },
                      "status": "Bad Request",
                      "code": 400,
                      "_postman_previewlanguage": "text",
                      "header": [],
                      "cookie": [],
                      "responseTime": null,
                      "body": null,
                      "createdAt": "2026-07-28T02:50:54.000Z",
                      "updatedAt": "2026-07-28T02:50:54.000Z",
                      "uid": "35240-ac1bbbf2-8368-41e4-bb08-93f73e2f9a05"
                    },
                    {
                      "id": "b10e0dfe-a3e7-4eb1-b7b6-d6ad86ae5eee",
                      "name": "Unauthorized",
                      "originalRequest": {
                        "method": "GET",
                        "header": [
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/data/query/:dataset?query=<string>&perspective=published&explain=<boolean>&resultSourceMap=<boolean>",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "data",
                            "query",
                            ":dataset"
                          ],
                          "query": [
                            {
                              "description": "(Required) GROQ query string",
                              "key": "query",
                              "value": "<string>"
                            },
                            {
                              "description": "Content perspective to query",
                              "key": "perspective",
                              "value": "published"
                            },
                            {
                              "description": "Include query execution plan in response",
                              "key": "explain",
                              "value": "<boolean>"
                            },
                            {
                              "description": "Include content source map metadata",
                              "key": "resultSourceMap",
                              "value": "<boolean>"
                            }
                          ],
                          "variable": [
                            {
                              "key": "dataset"
                            }
                          ]
                        }
                      },
                      "status": "Unauthorized",
                      "code": 401,
                      "_postman_previewlanguage": "text",
                      "header": [],
                      "cookie": [],
                      "responseTime": null,
                      "body": null,
                      "createdAt": "2026-07-28T02:50:54.000Z",
                      "updatedAt": "2026-07-28T02:50:54.000Z",
                      "uid": "35240-b10e0dfe-a3e7-4eb1-b7b6-d6ad86ae5eee"
                    }
                  ],
                  "createdAt": "2026-07-28T02:50:54.000Z",
                  "updatedAt": "2026-07-28T02:50:54.000Z",
                  "uid": "35240-2dcc78a4-e7bd-4dcd-87e9-19ed9ad41ad3"
                },
                {
                  "name": "Query Documents (POST)",
                  "id": "b3f93957-5ae1-424b-a35d-407b5f9d5764",
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"query\": \"<string>\",\n  \"params\": {},\n  \"perspective\": \"raw\"\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/data/query/:dataset",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "data",
                        "query",
                        ":dataset"
                      ],
                      "variable": [
                        {
                          "id": "ba18e3ac-17d2-41d1-9100-482b405cdacc",
                          "key": "dataset",
                          "value": "<string>",
                          "description": "(Required) Dataset name"
                        }
                      ]
                    },
                    "description": "Query Content Lake using GROQ syntax via POST for queries exceeding 11 KB or when query parameters need to be passed in the body."
                  },
                  "response": [
                    {
                      "id": "e228ddc7-aef5-47fc-8405-409fab1c1996",
                      "name": "Query results",
                      "originalRequest": {
                        "method": "POST",
                        "header": [
                          {
                            "key": "Content-Type",
                            "value": "application/json"
                          },
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: bearer",
                            "key": "Authorization",
                            "value": "Bearer <token>"
                          }
                        ],
                        "body": {
                          "mode": "raw",
                          "raw": "{\n  \"query\": \"<string>\",\n  \"params\": {},\n  \"perspective\": \"raw\"\n}",
                          "options": {
                            "raw": {
                              "headerFamily": "json",
                              "language": "json"
                            }
                          }
                        },
                        "url": {
                          "raw": "{{baseUrl}}/data/query/:dataset",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "data",
                            "query",
                            ":dataset"
                          ],
                          "variable": [
                            {
                              "key": "dataset"
                            }
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"ms\": \"<integer>\",\n  \"query\": \"<string>\",\n  \"result\": {\n    \"description\": \"Query result (object, array, number, or null)\"\n  },\n  \"syncTags\": [\n    \"<string>\",\n    \"<string>\"\n  ]\n}",
                      "createdAt": "2026-07-28T02:50:54.000Z",
                      "updatedAt": "2026-07-28T02:50:54.000Z",
                      "uid": "35240-e228ddc7-aef5-47fc-8405-409fab1c1996"
                    }
                  ],
                  "createdAt": "2026-07-28T02:50:54.000Z",
                  "updatedAt": "2026-07-28T02:50:54.000Z",
                  "uid": "35240-b3f93957-5ae1-424b-a35d-407b5f9d5764"
                }
              ],
              "id": "8f1a3992-0ae9-4437-bb9c-f83123bd63e8",
              "createdAt": "2026-07-28T02:50:54.000Z",
              "updatedAt": "2026-07-28T02:50:54.000Z",
              "uid": "35240-8f1a3992-0ae9-4437-bb9c-f83123bd63e8"
            }
          ],
          "id": "6eb21378-9041-44fb-9518-c3e5d40efdb8",
          "createdAt": "2026-07-28T02:50:54.000Z",
          "updatedAt": "2026-07-28T02:50:54.000Z",
          "uid": "35240-6eb21378-9041-44fb-9518-c3e5d40efdb8"
        }
      ],
      "id": "a137a2a1-c677-4653-88fd-2c917f73549f",
      "createdAt": "2026-07-28T02:50:54.000Z",
      "updatedAt": "2026-07-28T02:50:54.000Z",
      "uid": "35240-a137a2a1-c677-4653-88fd-2c917f73549f"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "projectId",
      "value": "your-project-id"
    },
    {
      "key": "apiVersion",
      "value": "2024-01-01"
    },
    {
      "key": "baseUrl",
      "value": "https://{{projectId}}.api.sanity.io/v{{apiVersion}}"
    }
  ]
}