Workspace API keys
After creating a key, store it in your server environment and send it as a Bearer token in theAuthorization header:
Obtain an API key
- Log in to the Trellis Dashboard.
- Open the workspace where the integration should operate.
- Go to Settings > Developer and open the Developer / API section.
- In API Keys, click Create Key.
- Give the key a clear name, such as “Operations MCP” or “Reporting worker”.
- Choose the integration type and only the operation permissions it needs. The key belongs to the workspace you opened.
- Copy the key immediately and store it in your server-side secret manager.
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 inapp.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.- Go to Settings > Developer and open the Developer / API section.
- Find the key you want to revoke.
- Click Revoke.
- Confirm the action.
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.