HTTP API Reference

History API reference

Reference documentation for the History HTTP endpoint.

The History API lets you request document revisions by a timestamp or a revision ID.

Authentication

  • All requests must be authenticated.
  • To read transactions for a document, you must have read access to the document's current version.
  • If your document is in a private dataset you must be authenticated.

Base API server URL

Sanity API base URL

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

Variables

  • projectIdstringdefault: "projectId"

    Project ID

  • apiVersionstringdefault: "v2025-02-19"

    API version