Authentication
Use an API key for a REST integration, or connect your agent through MCP. You do not need to create a key manually for MCP.
Make your first REST request
- Sign in to Torre and create a key at API keys.
- Save it in your server's secret store as
TORRE_API_KEY. You can only copy the full key when it is created. - Check which account the key belongs to:
curl https://api.torre.ai/v1/account \
-H "Authorization: Bearer $TORRE_API_KEY"
A 200 response returns the account's identity. This request does not change the account or spend credits.
Send the key as a bearer credential.
Authorization: Bearer <api-key>
Current opaque Torre API keys grant access to both Recruiting and Partners.
For an MCP client, use Connect to Torre instead: it opens normal Torre sign-in and consent without manually copying a key. Its OAuth credentials work only with MCP and are not REST API keys.
If access fails
Current requests use this order:
- Missing, malformed, expired, or invalid credentials return
401. - A missing Recruiting grant returns
403 insufficient_scope. - A missing Partners grant returns
403 insufficient-scope. - A blocked rate-limit request returns
429. - A missing Recruiting actor can return
401 account_not_provisioned. - Input checks then return the operation-specific
400,404, or422.
For Partners profile and metrics, 403 no-partner means the key's owner is not an active partner. It is not an invalid-key error. Metrics can also return 403 agreement-required; accept the partner agreement in Partners.
The exact validation order varies by operation. Use the error code to decide what to fix.
Read the operation description in the API Reference.
API key safety
Store API keys in a secret manager or protected environment variable. Do not put a key in source control, logs, URLs, or client-side code.
Use TLS for every request.
Keys provide broad API access for their owner; they are not read-only credentials. Do not ask users to share their personal keys with an institutional integration. MCP authorization currently does not provide delegated REST access.
The production base URL is https://api.torre.ai/v1.