cURL
curl --request PUT \ --url https://api.openformat.tech/v1/webhook/{id} \ --header 'Content-Type: application/json' \ --header 'X-API-KEY: <api-key>' \ --data '{ "url": "https://api.example.com/webhook", "events": [ "transaction" ] }'
{ "status": "success", "webhook": { "id": 123, "url": "https://api.example.com/webhook", "events": [ "transaction" ], "disabled": true, "disabled_at": "2024-01-23 01:23:45.55338+00", "created_at": "2024-01-23 01:23:45.55338+00" } }
Update an existing webhook
Webhook id
"123"
Webhook URL to send the payload, only HTTPS supported
1
"https://api.example.com/webhook"
List of events that will trigger the webhook call, if empty all events will be used
["transaction"]
Updated webhook
Successful reponse status
success
"success"
The webhook data
Show child attributes