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.
| # | File | Controller(s) |
|---|---|---|
| 1 | 01-webhook-controller-examples.md | WhatsAppWebhookController |
| 2 | 02-whatsapp-controller-examples.md | WhatsAppController |
| 3 | 03-inbox-controller-examples.md | WhatsAppInboxController (all 28 endpoints) |
| 4 | 04-note-controller-examples.md | WhatsAppNoteController |
| 5 | 05-saved-reply-controller-examples.md | WhatsAppSavedReplyController |
| 6 | 06-tag-controller-examples.md | WhatsAppTagController |
| 7 | 07-timeline-controller-examples.md | WhatsAppTimelineController |
| 8 | 08-communication-controller-examples.md | CommunicationController |
| 9 | 09-communication-diagnostics-controller-examples.md | CommunicationDiagnosticsController |
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.
