Black Friday30% off your first year on annual plansSee the offer
Docs
Webhooks

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"
GET
/v1/webhooks/{id}/deliveries

Every attempt, newest first, kept 30 days: what was sent, what your endpoint answered, and how long it took.

Authorization

apiKey
AuthorizationBearer <token>

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

id*string
Formatuuid

Query Parameters

status?string

Value in

  • "succeeded"
  • "failed"
eventType?string

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"
limit?integer
Range1 <= value <= 200
Default50
cursor?string

The previous page's nextCursor.

Lengthlength <= 200

Response 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  }}