Skip to main content
Version: Latest

17. SDK Code Examples

Copy-pasteable client code for every one of the 74 certified endpoints in §6 API Reference, in six forms: cURL (Linux/macOS and Windows cmd.exe), JavaScript (fetch() and Axios), C# (HttpClient), and Flutter (Dio). One file per controller, mirroring the API Reference's own file grouping.

Generation note: these 444 code blocks (74 endpoints × 6 forms) were generated from the same verified endpoint dataset used to build the Postman collection — a single source of truth, so the method, route, headers, and example payloads are guaranteed consistent across every format. See §19 SDK Usage Guide for how to obtain the bearer token ($TOKEN/%TOKEN%/token) referenced in every example, and for DI/service-registration guidance beyond raw HTTP calls.

#FileController(s)
101-webhook-controller-examples.mdWhatsAppWebhookController
202-whatsapp-controller-examples.mdWhatsAppController
303-inbox-controller-examples.mdWhatsAppInboxController (all 28 endpoints)
404-note-controller-examples.mdWhatsAppNoteController
505-saved-reply-controller-examples.mdWhatsAppSavedReplyController
606-tag-controller-examples.mdWhatsAppTagController
707-timeline-controller-examples.mdWhatsAppTimelineController
808-communication-controller-examples.mdCommunicationController
909-communication-diagnostics-controller-examples.mdCommunicationDiagnosticsController

A note on the C# and Dio examples: they show the request/response mechanics with real example payloads, not full typed client wrapper classes — plug the shown payload/data shapes into your own strongly-typed DTOs (matching §6 API Reference's documented request/response models) rather than deserializing into an untyped Result<object>, which is shown only as a minimal working baseline.