Consume webhooks
Start with a durable HTTPS endpoint that verifies signatures, stores the received CloudEvent identity, and processes each event idempotently. Register webhook endpoints in the COPE dashboard.Recommended flow
- Create an HTTPS endpoint on your service, for example
https://checkout.example.com/cope/webhooks. - Verify the webhook signature against the endpoint secret.
- Persist the CloudEvents
source+idtuple before applying business effects. - Process the event based on
typeand validatedataagainst the linked schema. - Return 2xx only after durable acceptance.