cURL
curl --request POST \ --url https://api.ledger.so/v1/webhooks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "url": "<string>", "events": [ "<string>" ] } '
{ "ok": true, "data": { "id": "<string>", "url": "<string>", "events": [ "customer.created" ], "status": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Registers a new webhook endpoint to receive event notifications.
Pass your API key as a Bearer token: Authorization: Bearer ld_live_...
Authorization: Bearer ld_live_...
The URL to receive webhook events
List of event types to subscribe to
Webhook created
true
Show child attributes