Enable an alert hook
Request
Synthetic example for the production API. Replace YOUR_API_KEY and the ids. Do not send it against a live account until you mean to.
curl -X POST "https://api.fxapis.com/v1/alert-hooks/ACCOUNT_ID/enable" \
-H "Authorization: Bearer YOUR_API_KEY"Alerts are traded again from the next one. Safe to repeat.
Authorization
apiKey Authorization: Bearer fx_live_<id>_<secret>.
A key is shown once, at creation. We cannot show it again or recover it for you.
Keys carry a label (live or test) in the key itself, so each configuration is easy to tell
apart. Both reach real brokers: test with a broker demo account.
Scopes are per key. A key without accounts:write can read accounts and nothing else.
In: header
Path Parameters
uuidResponse Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.fxapis.com/v1/alert-hooks/497f6eca-6276-4993-bfeb-53cbbbba6f08/enable"{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "accountIds": [ "b75e4440-1cc9-49a6-8c9e-087e1aa69722" ], "defaults": { "volume": "0.10", "deviationPoints": 20, "symbolMap": { "XAUUSD": "XAUUSD.a", "US30": "DJ30" }, "symbolSuffix": ".a", "stripExchangePrefix": true, "allowClose": true, "onlyTradingViewIps": true }, "enabled": true, "urlHint": "https://api.fxapis.com/hooks/tradingview/…Qx4w", "lastUsedAt": null, "createdAt": "2019-08-24T14:15:22Z" }}Disable an alert hook POST
Alerts are refused — answered 409 and recorded as `rejected` — until it is enabled again. The URL stays the same, so nothing changes in TradingView. Safe to repeat.
List TradingView alert hooks GET
Newest first. Deleted hooks are not listed. The URLs are shown only as hints — the secret is not stored.