Skip to main content
Most Kairos APIs require credentials, but you can start exploring immediately without them. The Market Data API is completely open — no account or key required. The Data API and Execution API require either an API key triple (three headers) for programmatic access or a session JWT for first-party apps. This page covers both.

Which APIs require authentication?

In the API reference, an endpoint whose page asks for no authorization works without a key, even when it belongs to an otherwise-authenticated API. The entire Market Data API is free; a key there only raises your rate limits.

Get your API key

You need an account at app.kairos.trade to create an API key. In the app, a key is called an API token.
1

Create an account

Go to app.kairos.trade and sign up with your email address.
2

Open API token settings

After logging in, open Settings → API tokens.
3

Create a new token

Create a token, enter a descriptive name (e.g. my-trading-bot), and choose its access level: Read-only or Trading. Optionally restrict it to a list of IP addresses. Then confirm the creation step.
4

Copy your key

Your key is displayed once. Copy it and save it somewhere safe — a password manager, secrets manager, or environment variable. You cannot retrieve it again after closing the dialog.
Never embed your API key in client-side code, commit it to a public repository, or share it in logs. If a key is compromised, revoke it immediately from Settings → API tokens and create a new one.

Pass your key in every request

For programmatic access, send all three credential headers together on every authenticated request:
All three belong to the same key — a partial set fails with 401. Here is how that looks in practice:

The session JWT (first-party apps only)

The web app authenticates with a short-lived session JWT instead of the triple:
JWTs are minted by the Kairos login flow and are not issued to API consumers. Use the header triple for integrations; the JWT exists so the app can call the same APIs. For a full comparison, see API Key Auth.

API key scopes

Scopes control which operations a key can perform. In the app you pick an access level, and each level carries a fixed set of scopes: Choose Read-only unless the key must trade: it limits the blast radius if the key is ever leaked. The RFQ network uses its own rfq:* scopes.
For a read-only analytics integration, create a Read-only token. For a trading bot, create a Trading token. The same key works for the Krisis conditional-order engine, as long as it has no IP allowlist.

Rate limits

Every API enforces rate limits. When you exceed one, the API returns 429 Too Many Requests. The Data API buckets an API key by its client id, and reports its limits in X-RateLimit-* headers plus Retry-After on a 429. The Execution API limits order submissions per user and does not send X-RateLimit-* headers. See Rate limits for the values.
Apply exponential backoff with jitter when you receive a 429:
The Market Data API rate-limits anonymous callers per source IP, and gives API-key callers a higher budget. See Market Data authentication.

Common authentication errors

Each service words its errors differently, so match on the status code first. The Data API answers {"detail": "<message>"}; the Execution API answers {"error": "<message>"}. The full tables are in Scopes, JWTs and auth errors.
Cause: The request carries no credentials, or only part of the API-key triple.Response body:
The Execution API answers { "error": "Missing authorization" } when nothing is sent, and { "error": "Invalid API credentials" } for a partial triple.Fix: Send all three headers on every request to an authenticated endpoint:
Double-check there are no extra spaces or accidental newlines in the header values.
Cause: The client id is unknown, the key or secret doesn’t match, or the key was revoked.Response body:
The Execution API answers { "error": "Invalid API credentials" }, or { "error": "API credential has been revoked" } for a revoked key.Fix: Go to Settings → API tokens in app.kairos.trade, confirm the token is still active, and create a new one if needed.
Cause: Your API key does not have the scope required by the endpoint you called. For example, calling POST /orders with a Read-only token.Response body:
The Execution API answers 403 with Insufficient scope, or with error_details.code: "AUTH_INSUFFICIENT_SCOPE" on endpoints with a structured envelope.Fix: A token’s access level can’t be changed. Create a new Trading token if you need trade:execute, then revoke the old one.
Cause: Your key has sent more requests than its rate-limit window allows, or your IP has failed authentication too many times.Response body:
Fix: Read the Retry-After header when present and wait at least that many seconds before retrying. Implement exponential backoff with jitter (see the code examples above), and never retry a bad credential in a loop.
Cause: The token has an IP whitelist and the request came from an address not on it.Response body:
Fix: A token’s whitelist is set when you create it. Create a new token that lists your current egress address, or none if you’re testing from a dynamic address. See IP whitelisting for how each service reads your address.

Revoking a key

If you suspect a key has been compromised, revoke it immediately:
  1. Go to Settings → API tokens in app.kairos.trade.
  2. Find the token in the list and click Revoke.
  3. Confirm revocation — this is immediate and cannot be undone.
  4. Generate a new key and update your application configuration.
Revoked keys return 401 Unauthorized on all future requests.

Next steps

Quickstart

Follow a step-by-step guide to your first authenticated API call.

Execution API

Submit orders and manage positions across all supported venues.