For the complete documentation index, see llms.txt. This page is also available as Markdown.

Quick Start

Get up and running with the TokenBot API in minutes.

Prerequisites

  • A TokenBot account (run tokenbot init after installing the CLI)

  • An API key — create one with the CLI:

    tokenbot apikey create --name "my-app" --env live

    The secret is printed once — copy it somewhere safe.

Step 1: Test Your API Key

curl https://api.tokenbot.com/v1/health \
  -H "X-API-Key: tb_live_your_api_key"

Step 2: List Your Exchange Accounts

curl https://api.tokenbot.com/v1/exchanges \
  -H "X-API-Key: tb_live_your_api_key"

Step 3: List Your Strategies

curl https://api.tokenbot.com/v1/strategies \
  -H "X-API-Key: tb_live_your_api_key"

Step 4: View Recent Trades

Error Responses

Errors come back as a flat JSON object:

See Error Handling for the full list of codes.

Step 5: Set Up Webhooks

Get real-time notifications when events occur. See the Webhooks guide.

Next Steps

Last updated

Was this helpful?