
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeGreat question! The attribute limit is based on unique paths across your entire dataset, not per document type. So to answer your question directly:
The body field would count as 2 attributes because they exist at different paths in your content structure:
page.body (a string)post.body (a string)Even though both fields have the same name and are the same type (string), they're at different locations in your content hierarchy, so Sanity counts them as separate unique paths.
According to the attribute limit documentation, an attribute is defined as a unique combination of path and datatype. Think of it as all the different routes through your content structure.
For example, if you have:
page {
body: string
title: string
}
post {
body: string
author: string
}This creates 4 attributes:
page.body → stringpage.title → stringpost.body → stringpost.author → stringPaths only count when they hold actual content. Just defining fields in your schema doesn't increase the count - you need to actually create documents with content in those fields.
Each unique path counts once, no matter how many documents use it. So if you have 100 page documents, page.body still only counts as 1 attribute.
The limits vary by plan:
You can check your current attribute count by visiting: https://<projectId>.api.sanity.io/v1/data/stats/<datasetName> - look for fields.count.value.
If you're concerned about hitting the limit, the docs recommend focusing on semantic content structure rather than presentation, avoiding excessive nesting, and being mindful of localization approaches that can multiply your attribute count.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store