Connecting with an API key
Manual — AI agents · chapter 3 of 7
Use this path for agents built by your team, automations and command-line tools.- Under System › API Keys, click New key.
- Give it a name that identifies the agent, for example “On-call agent”.
- Under Scopes, tick mcp and read. Also tick write only if the agent will open tickets or record follow-ups.
- Set the Limit/hour and, if you wish, the Expires.
- Click Create key and copy the key: it is shown only once.
The key acts as the user who created it. For a read-only agent, the best practice is to create the key with a user that has only the read rights it needs.
Giving the key to the agent
Section titled “Giving the key to the agent”The agent sends the key in the Authorization header, as Bearer followed by the key. In Claude Code, for example:
claude mcp add --transport http h2o https://SERVER-ADDRESS/api/v1/mcp --header "Authorization: Bearer YOUR_KEY"In tools that ask for the authentication type, choose API key in a header, with the Authorization header and the value Bearer followed by the key. A direct call to the server looks like this:
POST /api/v1/mcpAuthorization: Bearer YOUR_KEYAccept: application/json, text/event-streamContent-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}Was this page helpful?
Thanks for the feedback!
Got it — we will improve this page.