API Keys
API Keys allow programmatic access to the Partite Mesh configuration and runtime APIs. They are the primary authentication mechanism for scripts, servers, CI pipelines, Terraform and chat clients.
Quick Reference
API Key
| Field | Purpose | Guidance |
|---|---|---|
| Name | Identifies the key | Name it for the system that holds it, for example "ci-terraform" or "support-app". |
| Description | Notes | Optional. Record who owns the key and where it is stored. |
| Key ID and secret | The credential | The API key created dialog shows the Key ID and the secret once. The secret is stored only as a hash afterwards. Send them with HTTP Basic authentication, the Key ID as the username and the secret as the password, for example |
Scopes & Permissions
| Field | Purpose | Guidance |
|---|---|---|
| Read configuration | Read config objects | Read meshes, agents, model sets, connections and every other configuration object. Needed by Terraform. |
| Write configuration | Change config objects | Create, edit and delete configuration objects. Needed by Terraform and by the Terraform state backend. |
| Converse with meshes | Run meshes | Needed for the Conversation API under |
| Trace meshes | Read traces | Fetch trace data for analytics or replay tooling. |
Components
An API Key consists of two parts:
| Component | Description |
|---|---|
| Key ID | A stable identifier for the key. This is shown in the UI and returned by configuration APIs. |
| Key Secret | A randomly generated secret value. The raw secret is shown ONLY at creation time; thereafter only a hash is stored. |
When you create a key, Partite shows its token, prt_ak_<key ID>_<secret>, once. Clients send the token as a bearer token: Authorization: Bearer <token>. Treat the Key Secret values as sensitive credentials. Key ID is not sensitive.
Tunnel relays do not use API keys
The Access MCP Connection scope no longer exists; a key that had it loses it the next time the key is saved.
Relays authenticate with tunnel keys. You create tunnel keys on the subscription of the MCP Connection. See MCP Connections.
Related
- MCP Connections – tunnel relays use tunnel keys.
- Meshes – runtime inference targets.
- Agents – permissions influence which agents can be invoked.