> This page is for Tools.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.moveworks.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.moveworks.com/_mcp/server.

# How PurpleSuite works

> Learn how PurpleSuite instances, credentials, expiry, the shared employee roster, APIs, MCP and paints work across every PurpleSuite app.

PurpleSuite is a set of mock enterprise SaaS apps that behave like real business systems: they hold data, they remember changes, and every native app follows the same rules for credentials, expiry, users and APIs. This page explains those shared rules so you can build plugins and agents on any PurpleSuite app.

## Why PurpleSuite exists

Many employee requests aren't questions. "Mark my VPN ticket as in progress" succeeds only if the right record changes in the right way. To build and test agents that act, you need systems where those actions land. The usual options fall short:

* **Production systems** change real records, and repeated test runs don't start from the same state.
* **Static mocks** return canned responses, so nothing an agent does changes what it reads next.
* **Vendor sandboxes** differ by vendor, and not all of them can be reset to a known state between tests.

PurpleSuite fills that gap with simulated business systems that keep what an agent did, in sandboxes you can create, fill, inspect and reset. Builders use it to develop and debug plugins, and teams use it to demo agents working across business apps.

## What is a PurpleSuite instance?

An instance is an isolated business environment that holds data for every PurpleSuite app at once, so one scenario can span HR, IT, calendars and expenses. Each instance has its own data and its own credentials, and nothing you do in one instance affects another.

PurpleSuite is stateful. When you create or update a record, every later read, by an agent, a person or a test, sees the change.

An instance can start empty or with generated sample data. Sample data is useful for exploring and demos, but it can differ between instances. If a test depends on specific records, create those records yourself instead of relying on sample data.

## How PurpleSuite credentials work

Each instance has two values for REST requests, shown under **Credentials** in the instance's menu:

| Credential          | What it's for                                                                                               |
| ------------------- | ----------------------------------------------------------------------------------------------------------- |
| **Instance ID**     | Identifies the instance. Send it in the `X-Instance-ID` header on REST requests.                            |
| **API Token (PAT)** | An instance API key that starts with `ps_`. Send it as `Authorization: Bearer <YOUR_PAT>` on REST requests. |

Credentials belong to the instance, not to a person: anyone with both values can read and change that instance's data. Treat the instance ID and the API token like passwords, and don't paste them into plugin descriptions, request examples or shared docs. The instance ID also appears in the MCP server URL, which is enough for an MCP client to connect.

A native REST request needs both headers. If either is missing, the request returns `401`. A request for an instance that doesn't exist returns `404`, never an empty result, so a misconfigured connector fails loudly. After 10 failed attempts with a wrong API token, the instance locks for 15 minutes and returns `429`.

The MCP server uses a different sign-in; see [How the PurpleSuite MCP server works](#how-the-purplesuite-mcp-server-works).

## When do PurpleSuite instances expire?

Instances are temporary. A new instance expires 7 days after you create it. When an instance expires, PurpleSuite deletes it and all of its data, and its API token stops working. There are no permanent instances.

To keep an instance longer, extend it before it expires: in the instance's settings, open **Expiry** and select **Extend 7 days**, or pick a date with **or until** and select **Apply**. You can also extend through the instance API. Each extension sets the expiry to at most 7 days from the time you extend.

![The Expiry settings for a PurpleSuite instance. Current expiry shows Expires in 6 days with the date. Under Extend, the Extend 7 days button is highlighted, next to an or until date field and an Apply button. Text below reads Up to 7 days from now, in your local timezone.](/_fern-files/_img/058338ae87e90ef3bf6effd7606d0c034e7b7fdace44136806442f52bd333940.webp)

Because instances expire, treat PurpleSuite connectors as development assets. When an instance expires, create a new one and update the API token and instance ID in your connector. If your actions set `X-Instance-ID` themselves, update them too.

## How the same people appear in every PurpleSuite app

Every app draws its employees from one shared roster. The same person, with the same name and email, appears in the directory, HR records, calendar events, tickets and expense reports, so an agent can follow one person across systems. External people, such as sales contacts, bank customers and job candidates, are kept separate from employees.

Requests about "me", such as "my tickets" or "my time off", resolve to the caller. You can set the caller with the `X-PS-Impersonate-User` header, or rely on the instance's default user. An email in a person field, such as an assignee or approver, that doesn't match anyone on the roster is mapped to the caller, so "my" requests work for any person without preparing records for them first.

The Purple Identity app also has endpoints shaped like the Moveworks Identity Gateway.

## How the PurpleSuite APIs are shaped

Every native app follows the same conventions, so once you've called one app you can call the others. Painted APIs follow the product they emulate instead.

| Convention           | What it is                                                                                                                                                               |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Base URL             | `https://marketplace.moveworks.com/api/purple-suite/<app>`, for example `/api/purple-suite/crm/accounts`                                                                 |
| Authentication       | `Authorization: Bearer <YOUR_PAT>` and `X-Instance-ID: <YOUR_INSTANCE_ID>` on every request                                                                              |
| API reference        | Each app publishes an OpenAPI description at `/api/purple-suite/<app>/openapi.json` and an HTML reference at `/purple-suite/<app>/api-docs/`                             |
| List responses       | `{ data, nextCursor, total }`                                                                                                                                            |
| Filtering and paging | A subset of OData: `$filter`, `$select`, `$orderby`, `$search`, `$top`, `$skip` and `$count`. Unsupported syntax returns `400` with a message that explains the problem. |
| Large lists          | A query reads at most 5,000 records. When results may be partial, the response includes `@odata.truncated: true`.                                                        |

A few apps keep the response shape of the system they emulate. Purple Calendar's events, calendars and rooms endpoints return Microsoft Graph-shaped lists (`{ value, @odata.nextLink }`), while its other lists use the standard shape. The Identity Gateway endpoints in Purple Identity return `{ results, next_page_token }`. Each app's API reference shows its exact shape.

To find an app and its reference, see [PurpleSuite apps and API references](/tool-studio/purplesuite/purplesuite-apps).

## How the PurpleSuite MCP server works

Each instance has its own MCP (Model Context Protocol) server, which exposes the instance's apps as tools that MCP clients can discover and call. The server URL is shown as **MCP Server URL** under **Credentials** and has this form:

```text
https://marketplace.moveworks.com/api/purple-suite/<YOUR_INSTANCE_ID>/mcp
```

* **Transport:** streamable HTTP.
* **Sign-in:** OAuth 2.1 with PKCE. MCP clients discover the authorization server and register themselves, so there's no client ID to create. The API token doesn't work on the MCP server.
* **Scope:** one token covers one instance. Access tokens last 1 hour, and refresh tokens last 30 days.
* **Tools:** one tool per API operation, named `<app>__<verb>__<resource>`, for example `expense__list__trips`.

The MCP server approves any client that registers against the instance, without asking for the API token. Anyone with the MCP server URL can connect to the instance, so share the URL only with people and clients that should have full access to its data.

## What are PurpleSuite paints?

A paint styles a PurpleSuite app after a widely used product and gives it an API in that product's request and response shape, for the operations PurpleSuite implements. PurpleSuite labels each paint as a likeness, such as **ServiceNow-like** for Purple ITSM, **Jira-like** for Purple Planner or **SAP Concur-like** for Purple Expense. A painted app is still a PurpleSuite simulation, not the vendor's product, and it covers only part of that product.

If a painted API covers the operations you need, you may be able to reuse the actions from a plugin built for the real product. You'll still need a connector with the painted API's base URL and authentication.

You choose a paint for each app, and the choice is stored on the instance. An app you don't paint keeps its native PurpleSuite look and API. To paint an app in PurpleSuite:

1. With your instance selected, open the app, such as **Purple ITSM**.
2. Select the palette button at the top of the app, then choose a paint under **Vibe**, such as **ServiceNow-like**. Choose **PurpleSuite** to go back to the native app.

![The palette button at the top of Purple ITSM, open, with numbered callouts: 1, the palette button; 2, ServiceNow-like. The Vibe list also shows PurpleSuite, selected, PagerDuty-like and Tines-like.](/_fern-files/_img/c39a412d66afbbd0fa01a2b2a190d02676b150618232c7ff5910e5315b15e77c.webp)

The app then takes on the paint's styling, and its name shows the paint, such as **Purple ITSM (ServiceNow)**. A painted app can keep its records separately from the native app, so it may show different records. You can also choose paints through the instance API when you create the instance, or later.

![Purple ITSM with the ServiceNow-like paint. The highlighted title reads Purple ITSM (ServiceNow), and the app shows a Now Platform navigator and an Incidents list with 24 records, state counts and incident numbers such as INC0010023.](/_fern-files/_img/d807ab17dd5c70db65b59af11f4eed0661c1cccedbeb3dc9b3a025396bf156e6.webp)

A painted API has its own base URL, authentication and supported operations, which can differ from the native API. For example, a painted API may not use `Authorization: Bearer` or `X-Instance-ID`. Always read the painted API's own reference in the [PurpleSuite API catalog](https://marketplace.moveworks.com/api/purple-suite/docs) before you connect to it.

## Limits and trade-offs

* **PurpleSuite isn't the real product.** Each app, painted or not, implements a defined set of records and operations, and depth varies by app. Check that the operations you need exist in the app's API reference before you build on them.
* **Test against the real system.** A plugin that works against PurpleSuite may still behave differently with the vendor's system, or need changes to work with it. Before you use a plugin in production, test it thoroughly against the real system it will connect to, such as your organization's own instance.
* **Instances are temporary.** Instances and their data are deleted when they expire, so don't store anything in PurpleSuite you need to keep.
* **Sample data varies.** Generated sample data can differ between instances. Create the records a test depends on.

## Related tasks

* [Connect Tool Studio to PurpleSuite](/tool-studio/purplesuite/connect-tool-studio-to-purplesuite)
* [PurpleSuite apps and API references](/tool-studio/purplesuite/purplesuite-apps)
* [Quickstart Guides](/tool-studio/quickstart-guide)