Skip to content

REST API Overview

EnvironmentURL
Productionhttps://api.tokenbot.com/v1
Developmenthttps://api-dev.tokenbot.com/v1

Endpoints are also reachable without the /v1 prefix as legacy aliases, but new integrations should use /v1.

Most endpoints require authentication. The primary method is an API key via the X-API-Key header (or Authorization: Bearer <key>). The tokenbot CLI uses signed requests as a fast-path. See Authentication.

A handful of endpoints are public (no auth): GET /v1/health, GET /v1/health/detailed, GET /v1/version, and GET /v1/auth/cli-challenge.

List endpoints support pagination:

ParameterTypeDefaultDescription
limitinteger20Items per page (max 100)
offsetinteger0Number of items to skip
ParameterTypeDescription
sortstringField to sort by
orderstringasc or desc
ResourcePathDocumentation
Health/v1/health, /v1/health/detailedhealth
Version/v1/version—
CLI identity/v1/auth/cli-challenge, /v1/auth/cli-identity—
Me/v1/meme
Exchanges/v1/exchangesexchanges.md
Supported Exchanges/v1/supported-exchangessupported-exchanges.md
Strategies/v1/strategiesstrategies.md
Copiers/v1/copierscopiers.md
Trades/v1/tradestrades.md
Trade Pairs/v1/trade-pairstrade-pairs.md
Notifications/v1/notificationsnotifications.md
Settings/v1/settingssettings.md
Rewards/v1/rewardsrewards.md
Withdrawals/v1/withdrawalswithdrawals.md
API Keys/v1/api-keysapi-keys.md
Webhooks/v1/webhookswebhooks

The /v1/trading-bot/* and /v1/market-maker/* proxy namespaces have been removed (rest-api #121). They forwarded to dashboard-era bot HTTP surfaces that were never wired up in any deployed environment — every call returned 503 — and those bot-side APIs are gone too (trading-bot #121, market-maker-bot #132). The embedded operator CLIs (tokenbot-trading, tokenbot-mm) now talk to the platform APIs directly: this REST API plus GraphQL at gql-api.tokenbot.com, with real-time data over the tradeSignal and orderbookUpdate subscriptions. Remote bot control (pause / emergency-stop) returns in a future signed control-plane wave.

Basic health check (public).

Detailed health check with service status (public).

Returns the authenticated user’s profile.

Terminal window
curl https://api.tokenbot.com/v1/me \
-H "X-API-Key: tb_live_your_key"