API Reference
Manage price alert strategies programmatically via REST API
Quick Start
POST a strategy with your symbol, type, and params.
GET all active strategies and monitor their status.
Authentication
All API requests must include a Bearer token in the Authorization header:
Authorization: Bearer pat_xxxxxxxxxxxx
Token format: pat_... Generated at Alerts → API Token
Endpoints
/api/agent/price-alert/strategies/api/agent/price-alert/strategies/api/agent/price-alert/strategies/:id/disablecurl examples
List strategies
curl https://alertly.online/api/agent/price-alert/strategies \ -H "Authorization: Bearer YOUR_TOKEN"
Create alert
curl -X POST https://alertly.online/api/agent/price-alert/strategies \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"symbol": "BTC",
"type": "PRICE_LEVEL",
"params": { "direction": "ABOVE", "targetPrice": 90000 }
}'Disable strategy
curl -X POST https://alertly.online/api/agent/price-alert/strategies/STRATEGY_ID/disable \ -H "Authorization: Bearer YOUR_TOKEN"
Strategy Types
Triggers when price crosses a specific level (ABOVE / BELOW).
| Parameter | Type | Required | Description |
|---|---|---|---|
| direction | string | ✓ | "ABOVE" | "BELOW" |
| targetPrice | number | ✓ | Target price |
| note | string | — | Note, max 200 chars |
| fireOnce | boolean | — | Auto-pause after first trigger (default false) |
Request body example
{
"symbol": "BTC",
"type": "PRICE_LEVEL",
"params": {
"direction": "ABOVE",
"targetPrice": 90000
},
"note": "BTC breakout",
"fireOnce": false
}Supported Symbols
50 symbols across crypto, US stocks, commodities, and indices.
TradFi (Stocks / Commodities / Indices)
Crypto
Rate Limits
| Endpoint | Limit |
|---|---|
| List strategies (GET) | 60 req/min |
| Create strategy (POST) | 10 req/min, 200 req/day |
| Disable strategy (POST /disable) | 30 req/min |
Error Codes
| Status | Meaning |
|---|---|
| 401 | Missing or invalid token |
| 403 | Token lacks required scope or strategy belongs to another user |
| 400 | Invalid request parameters (check symbol, type, or params) |
| 429 | Rate limit exceeded — slow down requests |
AI Agent Integration
Alertly provides an OpenAPI 3.1 spec for use with GPT Actions and any OpenAPI-compatible agent framework.
OpenAPI Spec URL
https://alertly.online/.well-known/openapi.json
GPT Actions / Custom GPT
In GPT Builder, choose "Import from URL" and paste the Spec URL above. GPT natively supports OpenAPI 3.1.
General Agent Frameworks
LangChain, AutoGPT, Postman, and any framework supporting OpenAPI 3.1 can consume the spec directly.