Skip to content

API Keys

An API key lets a program call Partite: the configuration API and the APIs that run meshes. Scripts, servers, CI pipelines, Terraform, the CLI and a self-hosted Partite Mesh with cloud config all use API keys.

To let people or other systems sign in with their own tokens instead, use an access point.

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.

TokenThe credential

Shown once, when the key is created. Copy it then. Send it as a bearer token, for example curl -H "Authorization: Bearer <token>" ....

Scopes & Permissions

FieldPurposeGuidance
Read configurationRead config objects

Read meshes, agents, model sets, connections and every other configuration object. Needed by Terraform and the CLI, and by a self-hosted Partite Mesh with cloud config.

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, AG-UI under /agui, meshes as MCP servers under /mcp, and notification channels.

Trace meshesUpload traces

Lets a self-hosted Partite Mesh with cloud config upload its traces to the hosted service, so they show in the trace viewer. Also needed to call POST /traces/upload on that server.

Use credentialsRun with stored credentials

Lets a self-hosted Partite Mesh with cloud config read the credentials its meshes run with, such as model provider keys and MCP connection secrets, and get their access tokens. Give it only to keys that self-hosted servers use.

The token

When you create a key, Partite shows its token once. It has the form prt_ak_<key ID>_<secret>. Only a hash of the secret is stored, so a lost token can’t be shown again: create a new key.

Send the token as a bearer token:

curl -H "Authorization: Bearer <API_KEY_TOKEN>" https://api.partite.ai/conversations/<CONVERSATION_ID>

Keep the token secret. The key ID alone is not secret.

The key ID and secret can also be sent with HTTP Basic authentication, the key ID as the username and the secret as the password. This is deprecated. Use the bearer token.

Choosing scopes

Give a key only the scopes it needs:

Used byScopes
An app that calls meshesConverse with meshes
Terraform or the CLI, to read and change configurationRead configuration, Write configuration
A self-hosted Partite Mesh with cloud configRead configuration, Use credentials, and Trace meshes to upload traces

Tunnel relays do not use API keys

Relays authenticate with tunnel keys. You create tunnel keys on the subscription of an MCP connection. See MCP Connections.

Related