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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "swop_register_webhook"
}
}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 |