Skip to content
All guides

API overview

Trakkwise's public API is for sending data to Trakkwise from your own systems and tools. Every endpoint is on your organization's ingest address, https://ingest.trakkwise.com, over HTTPS (TLS 1.2 or later). Each one has its own kind of credential, made in the console, so a key for one job can't be used for another.

What Endpoint Credential Guide
LLM gateway: Anthropic Messages POST /gateway/anthropic/v1/messages Gateway key (tkg_…) in x-api-key or Authorization: Bearer LLM gateway
LLM gateway: OpenAI Chat Completions POST /gateway/openai/v1/chat/completions Gateway key, Authorization: Bearer LLM gateway
LLM gateway: OpenAI Responses POST /gateway/openai/v1/responses Gateway key, Authorization: Bearer LLM gateway
Claude Code and Codex usage (OpenTelemetry) POST /v1/otlp/v1/logs, POST /v1/otlp/v1/metrics Telemetry token, Authorization: Bearer Claude Code and Codex
Usage webhook POST /v1/webhooks/{id} Signed with the webhook's secret (x-trakkwise-timestamp, x-trakkwise-signature) Usage webhook
SCIM 2.0 provisioning /v1/scim/v2/Users, /v1/scim/v2/Groups SCIM token, Authorization: Bearer SCIM

Trakkwise also sends data out to your systems: see SIEM export for its signed deliveries.

Credentials

Each credential is made by an admin in the console and shown once. Store it in your secret manager.

Credential Where to make it Revoke it
Gateway key Settings → Gateway, one per person or service Same page; the key stops working at once
Telemetry token Settings → Integrations → Claude Code and Codex Same card
Webhook secret Settings → Integrations → Usage webhook Disconnect the webhook
SCIM token Settings → Single Sign-On → Provisioning (SCIM) Same section; make a new one to rotate

Errors and limits

Errors come back with the usual HTTP status. The LLM gateway answers in the vendor's own error format (Anthropic's or OpenAI's), so the SDKs report them as they would any other error; a call the gateway's policy stops gets 403 with type permission_error and the reason in the message. The other endpoints answer with JSON that has an error field.

Status Meaning
400 The request body or a parameter is invalid; error says which
401 The credential is missing, wrong or revoked
403 The gateway's policy stopped the call: a model that isn't allowed, a budget that's over, or a policy rule
404 The address is wrong, for example a webhook that doesn't exist or was disconnected
413 The body is too large
429 Too many requests. Wait for the number of seconds in the Retry-After header, then retry
5xx A problem on our side. Retry with backoff

Requests are rate-limited, well above normal use. If a busy integration hits a limit, the 429 response says when to retry, and nothing is lost if you do.

Devices

The agent and the browser extension use other /v1 endpoints to enroll, send events and fetch policy. They're private to Trakkwise's own software: deploy the agent and extension from Settings → Deploy rather than calling them.

The console's API

The console's own API (/admin/v1) isn't public: the console reaches it over a private network. If you need to automate something in the console, tell us what at sales@trakkwise.com.