---
title: Titan API reference
description: The three Titan APIs, who calls each one, their base URLs and
  authentication, and where every endpoint is documented.
url: https://hexelstudio.com/docs/titan/api-reference
---

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](https://hexelstudio.com/docs/titan/sdk) has a typed function for every one of them.

<CardGroup cols={3}>
  <Card title="Titan platform API" icon="server" href="https://hexelstudio.com/docs/api/titan/management">
    For your applications and administrators: deployments and policy, the agent registry, connections and tools, approvals, sessions, the kill switch and the Agent Ledger.
  </Card>
  <Card title="Titan agent API" icon="bot" href="https://hexelstudio.com/docs/api/titan-agent/agent">
    For agent processes: the identity exchange, capabilities, governed calls and their approvals, durable sessions and the control channel.
  </Card>
  <Card title="Titan person API" icon="user-shield" href="https://hexelstudio.com/docs/api/titan-user/person">
    For a person's own app: the approvals they decide, the sessions that act for them and their phones. On request.
  </Card>
</CardGroup>

## 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](https://hexelstudio.com/docs/identity/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](https://hexelstudio.com/docs/api/errors) explains the common ones and when to retry.

## Guides

- [Connections](https://hexelstudio.com/docs/titan/connections): connect the accounts tools act with.
- [Policies and approvals](https://hexelstudio.com/docs/titan/policies-and-approvals): decide what agents may do.
- [Durable sessions](https://hexelstudio.com/docs/titan/durable-sessions): tasks that outlive one process.
- [Budgets](https://hexelstudio.com/docs/titan/budgets) and [Sandbox egress](https://hexelstudio.com/docs/titan/egress): spend and network limits.
