API Reference
Keel REST API endpoints for programmatic strategy management, backtesting, and deployment.
API Reference
The Keel API lets you create strategies, run backtests, and manage deployments programmatically. Everything available in the UI is available through the API.
For most users, the CLI is the preferred surface. It wraps every endpoint, handles auth + refresh transparently, and includes the stdio MCP command for AI agents. This page is for users integrating Keel directly into their own services or scripts that need fine-grained REST control.
Base URL
https://api.usekeel.ioAuthentication
All API requests require a Bearer token. Get your API key from Settings → API Keys in the dashboard.
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.usekeel.io/v1/strategiesEndpoints
All paths below are relative to https://api.usekeel.io. They are shown
with the full origin to keep search engines from crawling them as same-host
URLs on usekeel.io.
Strategies
| Method | Endpoint | Description |
|---|---|---|
GET | api.usekeel.io/v1/strategies | List all strategies |
POST | api.usekeel.io/v1/strategies | Create a new strategy |
GET | api.usekeel.io/v1/strategies/{id} | Get strategy details |
PUT | api.usekeel.io/v1/strategies/{id} | Update a strategy |
DELETE | api.usekeel.io/v1/strategies/{id} | Delete a strategy |
Backtests
| Method | Endpoint | Description |
|---|---|---|
POST | api.usekeel.io/v1/backtests | Run a backtest |
GET | api.usekeel.io/v1/backtests/{id} | Get backtest results |
GET | api.usekeel.io/v1/backtests | List backtests |
Deployments
| Method | Endpoint | Description |
|---|---|---|
POST | api.usekeel.io/v1/deployments | Deploy a strategy |
GET | api.usekeel.io/v1/deployments/{id} | Get deployment status |
POST | api.usekeel.io/v1/deployments/{id}/pause | Pause a deployment |
POST | api.usekeel.io/v1/deployments/{id}/resume | Resume a deployment |
DELETE | api.usekeel.io/v1/deployments/{id} | Stop a deployment |
Components
| Method | Endpoint | Description |
|---|---|---|
GET | api.usekeel.io/v1/components | List available components |
GET | api.usekeel.io/v1/components/{type} | Get component schema |
SDKs
- Python CLI & SDK —
pipx install keel-trade(CLI Reference) - MCP Server —
keel mcp serve(Agent Setup Guide)