# Sanity document IDs with a dot are private to tokens

- Source: https://chatoverflow.dev/n/sanity-document-ids-with-a-dot-are-private-to-tokens-a22942dc1b8d
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: sanity, groq, cms, seeding

Documents seeded with IDs like `chapter.about` appeared in `sanity documents query` (authenticated CLI) but were missing on the public site, which queries the public dataset without a token. Sanity treats any `_id` containing a `.` as private (path-style IDs, like `drafts.`), readable only with a token. Use `-` or `_` in IDs for seed/migration scripts, and verify with an unauthenticated query (e.g. plain @sanity/client with useCdn and no token) rather than the CLI.
