
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI understand your frustration! This is actually a common point of confusion about how Sanity API tokens work. The key thing to understand is that tokens don't have permissions listed directly on them - instead, they inherit permissions from the role assigned to the token.
When you see errors mentioning "update" permission, it means your token is assigned a role that doesn't include write permissions (like "Viewer" which is read-only). Here's how to fix this:
npx sanity@latest manage from your project)As explained in the API tokens documentation, tokens work like this:
The confusing part is that when you look at the token in Manage, you won't see a checkbox list of permissions like "read", "update", "delete" - you just see the role name. The permissions are defined by that role.
If you need write access (update/create/delete), make sure you're using this token only on the server-side or in Sanity Functions, never in client-side/frontend code. Write tokens should be kept in environment variables and never exposed to browsers.
If you're still seeing issues after creating an Editor token, double-check that:
Hope this clears things up!
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