Connect your AI client
REST API quickstart
Call any tool over HTTPS with your access token.
Every MCP tool is also POST https://api.cccontext.com/v1/tools/<tool name>, taking the tool's parameters as a JSON object.
curl -s https://api.cccontext.com/v1/tools/get_account_info \
-H "x-api-key: <your access token>" -H "content-type: application/json" -d '{}'# a preview: nothing is sent to the exchange without "dry_run": false
curl -s https://api.cccontext.com/v1/tools/place_order \
-H "x-api-key: <your access token>" -H "content-type: application/json" \
-d '{"symbol": "BTC/USDT:USDT", "side": "buy", "type": "market", "size_usdt": 100, "stop_loss": 60000}'- Authenticate with
x-api-key: <access token>, or withAuthorization: Bearer <JWT>fromPOST https://gateway.cccontext.com/api/token. - Add
x-cc-mode: paperto force previews for a request. - Replies are
{"ok": true, "result": …}or{"ok": false, "error": {"code", "message", "retryable"}}.
See API for errors and limits, and Endpoints for the full list.