Titan API reference
The three Titan APIs, who calls each one, their base URLs and authentication, and where every endpoint is documented.
On this page
Titan has three HTTP APIs. Each endpoint has its own page in the API reference, with its parameters, response fields, error codes and a request in cURL, TypeScript and Python. The TypeScript SDK has a typed function for every one of them.
For your applications and administrators: deployments and policy, the agent registry, connections and tools, approvals, sessions, the kill switch and the Agent Ledger.
For agent processes: the identity exchange, capabilities, governed calls and their approvals, durable sessions and the control channel.
For a person's own app: the approvals they decide, the sessions that act for them and their phones. On request.
Who calls which API
| API | Paths | Caller | Credential |
|---|---|---|---|
| Platform | /titan/management/..., /titan/registry/..., /titan/tools/..., /titan/admin/... | Your back end, the console, the CLI, administrators | An access token for a member or a service user, or a service user's API key as X-API-Key (Authenticate) |
| Agent | /titan/agent/..., /titan/broker/runtime-identities/exchange | The agent process | A runtime identity token from the identity exchange; from an enrolled device also a Titan-Device-Proof |
| Person | /titan/user/... | A person's own app | The person's user-route token |
Each operation's page names the permission it needs, for example titan:approval:decide.
Base URLs
| Where | Base URL |
|---|---|
| Titan Cloud and management | https://api.hexelstudio.com/v1 |
| A Titan Dedicated deployment | https://api.hexelstudio.com/v1/cells/<enforcement deployment id> |
| A deployment's own hostname (everything except management) | https://<enforcement deployment id>.titan.hexelstudio.com |
Every administration call (/titan/admin/...) on https://api.hexelstudio.com/v1 also sends Titan-Enforcement-Deployment: td-..., naming the deployment it acts on. On a deployment's own hostname the hostname names it.
Errors
Every Titan error body has the shape {"error": {"code": "...", "message": "..."}}; agent API errors also carry retryable and request_id. Branch on the status and error.code. Each endpoint page lists the codes it can answer; Errors explains the common ones and when to retry.
Guides
- Connections: connect the accounts tools act with.
- Policies and approvals: decide what agents may do.
- Durable sessions: tasks that outlive one process.
- Budgets and Sandbox egress: spend and network limits.