Skip to content

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

FieldPurposeGuidance
NameIdentifies the key

Name it for the system that holds it, for example "ci-terraform" or "support-app".

DescriptionNotes

Optional. Record who owns the key and where it is stored.

Key ID and secretThe 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 curl -u "<API_KEY_ID>:<API_KEY_SECRET>" ....

Scopes & Permissions

FieldPurposeGuidance
Read configurationRead config objects

Read meshes, agents, model sets, connections and every other configuration object. Needed by Terraform.

Write configurationChange config objects

Create, edit and delete configuration objects. Needed by Terraform and by the Terraform state backend.

Converse with meshesRun meshes

Needed for the Conversation API under /conversations, the AG-UI endpoint under /agui, notification channels, and POST /evals/run.

Trace meshesRead traces

Fetch trace data for analytics or replay tooling.

Components

An API Key consists of two parts:

ComponentDescription
Key IDA stable identifier for the key. This is shown in the UI and returned by configuration APIs.
Key SecretA 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.