Doc API reference
Retrieve one or more documents by ID and bypass the caching layer.
Use the Doc API with caution as it bypasses caching and can lead to unexpected usage. Prefer the Query API for traditional fetching.
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