HTTP API Reference

Doc API

Retrieve one or more documents by ID and bypass the caching layer.

Base API server URL

Parameterized base URL

https://{projectId}.api.sanity.io/{apiVersion}

Variables

  • projectIdstringdefault: "your-project-id"

    Sanity project ID

  • apiVersionstringdefault: "v2025-02-19"

    API version