{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-guides/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Event delivery","description":"Build integrations with 3Chat APIs and webhook events."},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"event-delivery","__idx":0},"children":["Event delivery"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["3Chat delivers subscribed events to the HTTPS URL configured by the developer in 3Chat Open Platform."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"request-method-and-content-type","__idx":1},"children":["Request method and content type"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Webhook deliveries use HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["POST"]}," with a JSON request body."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"Content-Type: application/json\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Event-specific pages list the additional headers included with each delivery."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"responding-to-a-delivery","__idx":2},"children":["Responding to a delivery"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Return an HTTP ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["2xx"]}," status after your endpoint has accepted the event:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"HTTP/1.1 200 OK\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["or:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"http","header":{"controls":{"copy":{}}},"source":"HTTP/1.1 204 No Content\n","lang":"http"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Keep the synchronous handler short. For expensive processing, persist or enqueue the event first, return a successful response, and process it asynchronously."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"idempotent-processing","__idx":3},"children":["Idempotent processing"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Webhook consumers should tolerate receiving the same event more than once."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Store the event or delivery identifier when available."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Check whether it has already been processed."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Avoid applying the same business action twice."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Make downstream operations idempotent where possible."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"logging-and-troubleshooting","__idx":4},"children":["Logging and troubleshooting"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Record enough information to trace a delivery without logging secrets or unnecessary personal data:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Event type."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Event or request identifier."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Delivery timestamp."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Processing result."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Returned HTTP status."]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use the individual event reference page to validate the request headers and JSON structure."]}]},"headings":[{"value":"Event delivery","id":"event-delivery","depth":1},{"value":"Request method and content type","id":"request-method-and-content-type","depth":2},{"value":"Responding to a delivery","id":"responding-to-a-delivery","depth":2},{"value":"Idempotent processing","id":"idempotent-processing","depth":2},{"value":"Logging and troubleshooting","id":"logging-and-troubleshooting","depth":2}],"frontmatter":{"title":"Event delivery","description":"Handle, acknowledge, deduplicate, and troubleshoot 3Chat webhook deliveries.","seo":{"title":"Event delivery"}},"lastModified":"2026-09-18T09:18:24.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/guides/event-delivery","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}