> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vzaps.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Examples

> Runnable examples for the VZaps Go SDK on GitHub

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/`](https://github.com/VZaps/vzaps-sdk-go/tree/main/examples) folder:

**[github.com/VZaps/vzaps-sdk-go](https://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`](https://github.com/VZaps/vzaps-sdk-go/blob/main/examples/README.md) in the repository for the full folder list.

## What's included

| Folder                                   | Topic                                |
| ---------------------------------------- | ------------------------------------ |
| `01-auth-and-list-instances`             | Auth and instance listing            |
| `02-create-instance`                     | Create instance                      |
| `03-instance-subscription`               | Billing subscription                 |
| `04-session-and-pairing`                 | Session status, QR, and pairing code |
| `05-configure-webhook`                   | Webhook configuration                |
| `06-realtime-subscribe`                  | Realtime WebSocket subscription      |
| `07-send-text-message`                   | Send text message                    |
| `08-send-media-and-interactive`          | Media, buttons, and list             |
| `09-send-poll-reaction-and-chat-actions` | Poll, reaction, and chat actions     |
| `10-queues`                              | Message and operation queues         |
| `11-typebot-and-chatwoot`                | TypeBot and Chatwoot                 |

## Option A — one example folder (recommended)

You do **not** need to clone the full SDK repository.

1. Download only the example folder, for example [`07-send-text-message`](https://github.com/VZaps/vzaps-sdk-go/tree/main/examples/07-send-text-message), using **Download ZIP** on GitHub, or run:

```bash theme={null}
npx --yes degit VZaps/vzaps-sdk-go/examples/07-send-text-message vzaps-go-send-text
cd vzaps-go-send-text
```

2. Set credentials and run:

```bash theme={null}
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

```bash theme={null}
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

```bash theme={null}
git clone https://github.com/VZaps/vzaps-sdk-go.git
cd vzaps-sdk-go/examples/07-send-text-message
go run .
```

## Next steps

* Follow the [Starter Guide](/en/sdk/go/starter-guide) for a guided walkthrough.
* See [Messages](/en/sdk/go/messages) for every send method.
