Skip to main content
Use a workspace API key to connect a server integration, a partner app, or an MCP client. Each key is limited to its workspace and to the access it was given.

Workspace API keys

After creating a key, store it in your server environment and send it as a Bearer token in the Authorization header:

Obtain an API key

  1. Log in to the Trellis Dashboard.
  2. Open the workspace where the integration should operate.
  3. Go to Settings > Developer and open the Developer / API section.
  4. In API Keys, click Create Key.
  5. Give the key a clear name, such as “Operations MCP” or “Reporting worker”.
  6. Choose the integration type and only the operation permissions it needs. The key belongs to the workspace you opened.
  7. Copy the key immediately and store it in your server-side secret manager.
API keys are only displayed once. If you lose a key, revoke it and create a new one.
Only an active Trellis workspace administrator can create, update, or revoke keys. A key is automatically bound to the current workspace. There is no workspace selector, and an external integration cannot mint keys or grant itself access to another workspace.

Key scope

Each API key has exactly one owner workspace where administrators manage it. Trellis rejects requests when the workspace in the URL is not that owner workspace. The workspace ID is the first part of the path when you open the workspace in Trellis, as in app.trellistech.com/{workspaceId}/settings/developer. Call GET /me with the key to confirm who it acts as and which areas it can use. To change an existing server integration key, open its Permissions action in Settings > Developer. You can update its scopes without replacing or revealing the key. Its workspace cannot be changed. The same key works for the Trellis API and the Trellis MCP Server. A partner app’s key is issued with the access Trellis approved for that app; see Partner API.

Revoking a key

Revoke a key when a connection is no longer needed or a credential has been exposed. For a planned replacement, create a new key, update the client, and verify a read request before revoking the old one.
  1. Go to Settings > Developer and open the Developer / API section.
  2. Find the key you want to revoke.
  3. Click Revoke.
  4. Confirm the action.
Any client using the revoked key will receive 401 Unauthorized.

Security best practices

  • Store keys and tokens in environment variables or a secret manager.
  • Never commit a key to source control.
  • Rotate keys periodically.
  • Create separate keys for separate systems so you can revoke one integration without disrupting others.
  • Use explicit user confirmation before any connected client creates tasks, updates records, or sends messages.