Webhook endpoints
The URLs that receive Régua de Cobrança events (charge.paid, agreement.accepted…). rotate-secret generates a new HMAC secret, test delivers a real webhook.test event, and deliveries lists the deliveries and requeues a failed one.
| Command | HTTP | Description |
|---|---|---|
webhook-endpoints list | GET /v1/webhook-endpoints | List webhook endpoints |
webhook-endpoints create | POST /v1/webhook-endpoints | Create webhook endpoint |
webhook-endpoints get | GET /v1/webhook-endpoints/{id} | Get webhook endpoint |
webhook-endpoints update | PATCH /v1/webhook-endpoints/{id} | Update webhook endpoint |
webhook-endpoints delete | DELETE /v1/webhook-endpoints/{id} | Delete webhook endpoint |
webhook-endpoints rotate-secret | POST /v1/webhook-endpoints/{id}/rotate-secret | Rotate secret |
webhook-endpoints test | POST /v1/webhook-endpoints/{id}/test | Send test event |
webhook-endpoints deliveries retry | POST /v1/webhook-endpoints/{id}/deliveries/{deliveryId}/retry | Retry delivery |
webhook-endpoints deliveries list | GET /v1/webhook-endpoints/{id}/deliveries | List endpoint deliveries |
Examples
--params carries query, path and header parameters (id, page, filters, X-Workspace-Id); --json carries the request body; --fields limits which fields come back — worth using on every list/get to save context. See Global flags for the full reference.
# Create an endpoint for paid and overdue charges
kobana dunning webhook-endpoints create \
--json '{"url": "https://example.com/webhooks/kobana", "events": ["charge.paid", "charge.overdue"]}'
# Send a test event
kobana dunning webhook-endpoints test --params '{"id": "ENDPOINT_ID"}'
# Failed deliveries
kobana dunning webhook-endpoints deliveries list --params '{"id": "ENDPOINT_ID", "status": "failed"}'
# Retry a delivery
kobana dunning webhook-endpoints deliveries retry --params '{"id": "ENDPOINT_ID", "deliveryId": "DELIVERY_ID"}'
# Rotate the secret
kobana dunning webhook-endpoints rotate-secret --params '{"id": "ENDPOINT_ID"}' --dry-run
Next steps
- Token identity
- Schema introspection — every parameter this resource accepts.