Connect Sanity Studio
Create a Studio connection so members of a Sanity project can read your Sites' Inboxes in Sanity Studio, and revoke it when you no longer need it.
A Studio connection links one Workspace to one Sanity project. Once it is enabled and the plugin is installed, the people who work in that project's Sanity Studio can read the chosen Sites' Submissions there. This page covers the app side. Only Developers and Owners can create and change Studio connections. A Maintainer sees a no-access message on the page.
Create a Studio connection
You need the Sanity project ID and the hostname your Studio runs on.
- Open the Workspace's settings. In the Sanity Studio section, select Studio connections.
- Select Add connection.
- Enter the Sanity project ID. Find it in your Sanity project's settings. It has lowercase letters and numbers only. You cannot change it later.
- Under Sites, tick the Sites whose Inboxes should show up in Studio. You must pick at least one. Only the Forms of those Sites appear.
- Under Studio hostnames, enter one hostname per line, without
https://, for examplemy-studio.sanity.studio. Only Studios on these hostnames can connect. You must enter at least one. - Decide whether to let project members read without signing in. The switch is on by default. See Choose who can read.
- Select Add connection.
A connection created in the app is enabled at once. The page lists it with the status Enabled.
A Workspace can have one connection for each Sanity project. To show several Sites, add them all to the same connection. Several Workspaces can connect the same Sanity project, and each has its own connection with its own Sites, hostnames and settings.
After you create the connection, the same page shows the two steps that add the plugin to a Studio, npm i sanity-plugin-insane-forms and the insaneForms() entry for sanity.config.ts. They are also in the plugin page. Install the plugin in every Studio that should show an Inbox.
Choose who can read
The switch Let project members read without signing in decides how people get in. The table lists it as Reading without signing in, set to Allowed or Off.
Allowed: anyone who is a member of the Sanity project can read the chosen Sites' Submissions and download their Files in Studio without an Insane Forms account. Insane Forms confirms the membership with Sanity each time a Studio reader starts a session.
Off: everyone signs in to Insane Forms from inside Studio before they see anything, and then their own role in the Workspace applies.
What Studio readers can and cannot do
A Studio reader can:
- Read the Inbox of each Form in the connection's Sites.
- Open a Submission. Opening it marks it read.
- Download a File. The link works for 60 seconds and Files download as files, never as previews.
A Studio reader cannot:
- See Spam or Trash.
- Mark a Submission unread, or move it to Spam or Trash, without signing in to Insane Forms.
- Delete Submissions for good, or export them. Both stay in the app.
- Change Sites, Forms, Destinations or any setting.
- See Sites outside the connection.
To move a Submission to Spam or Trash, a person signs in to Insane Forms from inside Studio. Then their own role applies, limited to the connection's Sites. See People and roles and Sanity Studio plugin.
A Studio reader's session lasts about 15 minutes. Someone you remove from the Sanity project can keep reading until their session ends. Any member of the project can also call the Studio reader API with their own Sanity token, so choose Off when the project includes people who should not read these Submissions.
The Workspace's Activity log records each start of a Studio reader session and each Submission a Studio reader marks read, under the reader's Sanity name and email.
Edit a connection
Open the menu at the end of a row and select Edit. You can change the Sites, the Studio hostnames and the reading switch. The Sanity project ID is fixed: to use another project, remove the connection and add a new one. Changes apply right away.
Switch off or remove a connection
The row menu has two ways to stop access.
Switch off keeps the connection and its settings. Studio stops showing this Workspace's Inboxes to the project right away. Select Enable on the row's menu to turn it back on.
Remove connection deletes it. The Sanity project loses access right away. Nothing in Sanity and none of your Submissions is deleted. To connect again later, add a new connection.
Connections made outside the app
A connection created through an MCP client or an API key starts switched off. It appears under Waiting for approval, with where it came from and what it would expose: the Sites, the Studio hostnames and the reading switch. Nothing shows in Studio until you select Enable. Select Remove to discard it.
If an MCP client or API key edits an enabled connection so that it exposes more (more Sites, more hostnames, or reading without signing in turned on), the connection switches off again and waits for approval. Enabling a connection is possible only in the app. If you change a connection while the Enable dialog is open, the dialog refuses and asks you to review it again.
Status labels
| Label | Meaning |
|---|---|
| Enabled | Studio can show the Inboxes of the connection's Sites to the Studio hostnames listed. |
| Waiting for approval | Created outside the app. Nothing shows until you enable it. |
| Switched off | The connection exists, and Studio shows nothing. |
A connection with no Sites left, for example after you delete the Sites it covered, shows nothing even when enabled.
Troubleshoot
When a Studio shows Cannot reach Insane Forms or You cannot read this Inbox, check these in order:
- The connection is Enabled.
- The Studio's hostname is in Studio hostnames, spelled exactly as it appears in the browser's address bar.
- The Site that holds the Form is ticked on the connection.
- If Reading without signing in is Off, the person signs in with an Insane Forms account that has access to the Site.
- The person is a member of the Sanity project.
For the messages the plugin shows, see Troubleshooting in the plugin page.