Add a webhook
swop_register_webhookGet notified the moment the user gets paid. Register an https URL that Swop will POST a signed JSON event to when the linked account gets paid (checkout.paid) and paid out (payout.released). Returns a signing secret ONCE — tell the user to store it now; it cannot be retrieved again. Deliveries carry a Swop-Signature header: t=,v1=<hex HMAC-SHA256 of "." with the secret>; failed deliveries retry for about 15 hours. Confirm the exact URL with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | https URL to POST events to (http allowed for localhost only) | |
| label | No | A name for this endpoint | |
| events | No | Which events to send. Default: both |