API4 steps

API Token Usage Guide

Generate an API token and use it to create and manage price alerts programmatically via REST API or AI agents.

1

Generate your API token

Go to Alerts → API Token. Click "Generate Token" to create a new personal access token (format: pat_...). Copy and store it securely — it's shown only once.

2

Use the token in API requests

Add the token to your requests as a Bearer token in the Authorization header: Authorization: Bearer pat_your_token_here

3

Create a price alert via API

POST /api/agent/price-alert/strategies with a JSON body specifying the symbol, type, and params. Example: create a BTC ABOVE 90000 alert.

4

Token security

Treat your API token like a password. Do not commit it to version control or share it publicly. If compromised, revoke it from the API Token page and generate a new one.