Skip to content
Hexel StudioDocs

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.

Who calls which API

APIPathsCallerCredential
Platform/titan/management/..., /titan/registry/..., /titan/tools/..., /titan/admin/...Your back end, the console, the CLI, administratorsAn 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/exchangeThe agent processA runtime identity token from the identity exchange; from an enrolled device also a Titan-Device-Proof
Person/titan/user/...A person's own appThe person's user-route token

Each operation's page names the permission it needs, for example titan:approval:decide.

Base URLs

WhereBase URL
Titan Cloud and managementhttps://api.hexelstudio.com/v1
A Titan Dedicated deploymenthttps://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