Connect Tool Studio to PurpleSuite
To build Tool Studio plugins on PurpleSuite’s mock enterprise APIs, create a PurpleSuite instance and a Tool Studio connector that authenticates to it. Every Quickstart Guide and the plugin-building masterclass use this setup, and one instance and connector work for all of them.
Before you begin
- You need access to Tool Studio to create a connector.
- PurpleSuite instances expire 7 days after you create them, and expired instances are deleted with all their data. You can extend an instance before it expires. See When do PurpleSuite instances expire?
Create a PurpleSuite instance
- Open PurpleSuite and select New Instance.
- In Create instance, enter an Instance name, such as your name or team.
- Leave Include sample data (recommended for demos) selected. This adds sample records to the apps, which the quickstarts use.
- Select Create.

Copy the instance credentials
-
On your instance’s card, open the ⋮ menu and select Credentials.

Open Credentials from the instance's menu. -
Copy these two values:
- Instance ID: a UUID such as
6e30fcb1-8752-4a34-a4fb-959a5be215e1. - API Token (PAT): a key that starts with
ps_.
The page also shows the MCP Server URL, which you need only to connect an MCP client. See How the PurpleSuite MCP server works.

The Credentials page shows the instance ID, the API token and the MCP server URL. - Instance ID: a UUID such as
Treat the instance ID, the API token and the MCP server URL as secrets. Anyone with the instance ID and API token can read and change your instance’s data, and an MCP client with the MCP server URL can connect to it.
Create the connector in Tool Studio
-
In Tool Studio, go to Connectors and select Create.
-
Enter these values:
-
Under Common headers (Optional), add a header for your instance ID. Common headers are sent on every request the connector makes. Use Credential so the instance ID is stored as a secret:

Add X-Instance-ID as a common header so every action inherits it. -
Select Save.
The connector now sends both Authorization: Bearer <YOUR_PAT> and X-Instance-ID on every request, so the HTTP actions that use it don’t need either header. If either header is missing, PurpleSuite returns 401. For more on API key connectors, see API key authentication.
Some quickstarts and the plugin-building masterclass add X-Instance-ID to each action instead. That works too. With the common header on the connector, you can skip that step.
Confirm it works
Test the connector with an HTTP action that reads CRM accounts. The action gets both headers from the connector, so the request you import has none.
-
In Tool Studio, create a new HTTP action.
-
Select the Import icon next to TEST, paste this request, and select Import.
-
On the Connector tab, select Inherit from existing connector, then choose the connector you created, such as
firstname_lastname_moveworks_purple. -
Select TEST. A working setup returns a JSON response with CRM account data in a
datalist.
Leave the API token and instance ID out of requests you import into PurpleSuite actions. The connector supplies both, so when you move to a new instance you update them in one place.
Troubleshoot the connection
401response: check that the connector’s API key is your current API token and that itsX-Instance-IDcommon header has your current instance ID. A401with the message “Instance token has expired” means the instance has expired.404response: the instance ID doesn’t match an instance, often because an expired instance has been deleted.429response: too many requests used a wrong API token, and the instance is locked for 15 minutes. Fix the token, then try again after the lockout.
After an instance expires, create a new one, then update the API key and the X-Instance-ID common header in the connector.
Next steps
- Build your first plugin: build a plugin that retrieves PTO balance data.
- PurpleSuite apps and API references: find the app and endpoints your plugin needs.
- How PurpleSuite works: credentials, expiry, shared users, MCP and paints.