Delivery attempts to a webhook endpoint
Last updated:
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 GET "https://api.fxapis.com/v1/webhooks/ACCOUNT_ID/deliveries" \
-H "Authorization: Bearer YOUR_API_KEY"Every attempt, newest first, kept 30 days: what was sent, what your endpoint answered, and how long it took.
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
uuidQuery Parameters
Value in
- "succeeded"
- "failed"
Value in
- "order.filled"
- "order.rejected"
- "order.unresolved"
- "order.resolved"
- "order.cancelled"
- "position.opened"
- "position.closed"
- "account.state_changed"
- "wave.settled"
- "wave.updated"
- "copy.executed"
- "copy.skipped"
- "copy.failed"
- "copy.subscription_stopped"
- "copy.drift_corrected"
- "copy.master_disconnected"
- "webhook.test"
1 <= value <= 20050The previous page's nextCursor.
length <= 200Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.fxapis.com/v1/webhooks/497f6eca-6276-4993-bfeb-53cbbbba6f08/deliveries"{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "eventId": "d6703cc8-9e79-415d-ac03-a4dc7f6ab43c", "eventType": "order.filled", "attempt": 0, "state": "succeeded", "succeeded": true, "statusCode": null, "durationMs": null, "error": "HTTP 500", "eventAvailable": true, "createdAt": "2019-08-24T14:15:22Z" } ], "page": { "hasMore": true, "nextCursor": null }}Delete a webhook endpoint DELETE
Nothing more is sent to it, including retries in progress. Cannot be undone.
Disable a webhook endpoint POST
Events stop being sent to it until it is enabled again. Deliveries already waiting are kept, not dropped; events recorded meanwhile can be replayed once it is back. Safe to repeat.