Sanity insufficient permissions error: "create" permission required

21 replies
Last updated: Nov 29, 2025
Hi, I want to create a document but I get a error that says 'Client Error: Insufficient permissions; permission "create" required'. Anybody can help?
AI Update

This error means you don't have the necessary permissions to create documents in your Sanity project. Here's how to fix it:

Check your role and permissions:

The most common cause is that your user account or API token doesn't have the "create" permission. In Sanity, permissions are controlled through roles and access control.

If you're working in Sanity Studio:

  1. Go to your project's Manage page (access it from the Studio menu or run npx sanity@latest manage)
  2. Navigate to the Members section
  3. Check what role you're assigned - you need at least Editor or Administrator role to create documents
  4. If you're not an admin, ask a project administrator to grant you the appropriate permissions

If you're using an API token:

When making programmatic requests to Sanity's API, you need an API token with sufficient permissions:

  1. Go to ManageAPI tab
  2. Check your existing tokens or create a new one
  3. Make sure the token is assigned a role with "create" permissions (typically Editor or a custom role with create permissions)
  4. If you created a new token, update it in your environment variables:
    SANITY_API_TOKEN="your-new-token-here"

Custom roles:

If your project uses custom roles (available on Enterprise plans), the role assigned to you or your token might have restricted permissions. An administrator needs to update the role definition to include create permissions for the specific document types or content resources you need to work with.

Quick test:

If you're an administrator and need to quickly verify this is a permissions issue, try temporarily assigning yourself or your token the Administrator role, which has full permissions. If document creation works, then you know it's a role/permission configuration issue that needs to be adjusted.

Remember that roles in Sanity are additive - if you have multiple roles, you get the combined permissions of all of them.

Show original thread
21 replies

Sanity – Build the way you think, not the way your CMS thinks

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.

Was this answer helpful?