Skip to main content
The official Go SDK repository includes standalone example modules that mirror the flows documented in this guide.

GitHub repository

All examples live in the examples/ folder: github.com/VZaps/vzaps-sdk-go Each numbered folder has its own go.mod and consumes the published module github.com/vzaps/vzaps-sdk-go/vzaps. See examples/README.md in the repository for the full folder list.

What’s included

FolderTopic
01-auth-and-list-instancesAuth and instance listing
02-create-instanceCreate instance
03-instance-subscriptionBilling subscription
04-session-and-pairingSession status, QR, and pairing code
05-configure-webhookWebhook configuration
06-realtime-subscribeRealtime WebSocket subscription
07-send-text-messageSend text message
08-send-media-and-interactiveMedia, buttons, and list
09-send-poll-reaction-and-chat-actionsPoll, reaction, and chat actions
10-queuesMessage and operation queues
11-typebot-and-chatwootTypeBot and Chatwoot
You do not need to clone the full SDK repository.
  1. Download only the example folder, for example 07-send-text-message, using Download ZIP on GitHub, or run:
npx --yes degit VZaps/vzaps-sdk-go/examples/07-send-text-message vzaps-go-send-text
cd vzaps-go-send-text
  1. Set credentials and run:
export VZAPS_CLIENT_TOKEN=your-client-token
export VZAPS_CLIENT_SECRET=your-client-secret
export VZAPS_INSTANCE_ID=VZ...
export VZAPS_INSTANCE_TOKEN=your-instance-token
go run .

Option B — sparse checkout

git clone --depth 1 --filter=blob:none --sparse https://github.com/VZaps/vzaps-sdk-go.git
cd vzaps-sdk-go
git sparse-checkout set examples/07-send-text-message
cd examples/07-send-text-message
go run .

Option C — full repository clone

git clone https://github.com/VZaps/vzaps-sdk-go.git
cd vzaps-sdk-go/examples/07-send-text-message
go run .

Next steps