Skip to Content

Sanity API Key

To complete the Sanity integration, you’ll need an API key. Follow these steps to create one:

  1. Go to the API tab in your Sanity project and navigate to Tokens.
  2. Click Add API Token
  3. Give your token a descriptive Name
  4. Select Editor from the Permissions list.
  5. Click Save

Once the token is generated, copy it and add it to your .env file:

NEXT_PUBLIC_SANITY_API_TOKEN=YOUR_API_KEY
Last updated on