Content Lake (Datastore)

Common Sanity document types

Reference documentation for common Sanity document shapes.

The example document shapes in this article are presented in JSON as reference. Keep in mind that you can adjust the shape of query responses using GROQ projections.

Project datasets

The following document types are found when querying a project's dataset.

Schema-based Sanity documents

Your documents differ based on your schema. In addition to the schema you define, the basic Sanity document has the following shape.

{
  "_createdAt": "2022-11-23T20:00:13Z",
  "_id": "004fecc4-d324-49b5-b78c-7216f539b3d5",
  "_originalId": "004fecc4-d324-49b5-b78c-7216f539b3d5",
  "_rev": "O2LflXWjWDt48mytHz2LFT",
  "_type": "your-document-type",
  "_updatedAt": "2025-05-15T14:31:46Z",
  // ...rest of schema
}

Assets

Learn more about assets in Content Lake, or how to query them in your front end. Asset type is detected at upload and will be either sanity.imageAsset or sanity.fileAsset.

Content release system document

The system.release document type is used for Content Releases and scheduled drafts. This contains information about the release itself. After publishing, the document also contains the _ids of affected documents.

Media Library

The following document types are found when querying your organization's Media Library.

Assets

  • sanity.asset: The container for Media Library assets, this contains details about the asset, versions, and aspects.
  • sanity.imageAsset: The document for an individual image asset version. It contains metadata from the image file as well as the URL.
  • sanity.fileAsset: The document for an individual file asset version.

Aspects

The following is the shape of an aspect document (sanity.asset.aspect), along with the aspect schema used to create it.

Was this page helpful?