Skip to main content

Overview

Webhooks push event notifications to your server in real time. Instead of polling the API to check payout status, you register a URL and Anton sends HTTP POST requests when events occur.

How webhooks work

1

Subscribe

Register a webhook URL and choose which events you want to receive.
2

Event occurs

When something happens (e.g., a payout completes), Anton creates an event.
3

Delivery

Anton sends an HTTP POST to your URL with the event payload as JSON.
4

Acknowledge

Your server responds with a 2xx status code. If delivery fails, Anton retries with exponential backoff.

Event types

EventDescription
payout.createdA payout was created
payout.screeningPayout entered screening
payout.approvedPayout approved (maker-checker)
payout.processingPayout submitted to rail
payout.sentRail confirmed dispatch
payout.completedPayout delivered successfully
payout.failedPayout delivery failed
payout.returnedFunds returned
payout.cancelledPayout cancelled
beneficiary.createdA beneficiary was created
beneficiary.updatedA beneficiary was updated
beneficiary.deletedA beneficiary was deleted
batch.completedA batch finished processing
batch.failedA batch processing failed

Webhook payload

Every webhook delivery contains:
{
  "id": "evt_cng3q8s6ek9kc5qg1h3g",
  "type": "payout.completed",
  "created_at": "2026-02-14T10:30:00Z",
  "data": {
    "id": "pay_cng3q8s6ek9kc5qg1h2g",
    "status": "completed",
    "amount": "1000.00",
    "currency": "USD",
    "beneficiary_id": "ben_cng3q8s6ek9kc5qg1h1g",
    "completed_at": "2026-02-14T10:30:00Z"
  }
}

Retry policy

If your endpoint doesn’t return a 2xx response, Anton retries with exponential backoff:
AttemptDelay
1Immediately
21 minute
35 minutes
430 minutes
52 hours
68 hours
After all retries are exhausted, the delivery is marked as failed. You can view failed deliveries and manually retry them through the dashboard.

Security

Always verify webhook signatures. In production, every webhook includes an HMAC signature in the headers. Verify it before processing the payload to ensure the request came from Anton.
See the Handle webhooks guide for implementation details.