HTTP API Reference

Export API reference

Reference documentation for the export HTTP endpoint.

The Export API allows you to export all the non-deleted documents in a dataset, including drafts and asset documents.

Authentication

Base API server URL

Sanity project base URL

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

Variables

  • projectIdstringdefault: "your-project-id"

    Sanity project ID

  • apiVersionstringdefault: "v2021-03-25"

    API version