webhook_endpoints
Create a webhook_endpoint
This endpoint is used to create a webhook endpoint.
post/webhook_endpoints
Request body
Example request
{
"webhook_endpoint": {
"webhook_url": "https://foo.bar",
"signature_algo": "hmac",
"name": "EC2-production",
"event_types": [
"invoice.voided",
"customer.created"
]
}
}Response
Webhook Endpoint created
Example response
{
"webhook_endpoint": {
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_organization_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"webhook_url": "https://foo.bar",
"signature_algo": "hmac",
"name": "EC2-production",
"event_types": [
"invoice.voided",
"customer.created"
],
"created_at": "2022-04-29T08:59:51Z"
}
}