SDKs
Hello publishes open-source SDKs for Go, Node.js / TypeScript and Python. Each one is a
thin, typed wrapper around the /v1 Integration API. They send the API key as a Bearer token,
retry safely, parse both error formats and cover every endpoint in the
API reference. All three are MIT licensed and live in the
lakshyapocketlab GitHub organization.
| Language | Repository | Install |
|---|---|---|
| Go 1.22+ | hello-go |
go get github.com/lakshyapocketlab/hello-go |
| Node.js 18+ | hello-node |
npm i @lakshyapocketlab/hello |
| Python 3.9+ | hello-python |
pip install lakshyapocketlab-hello |
The current release is 1.0.0 for all three. They follow semantic versioning, so breaking changes only come in a new major version.
Authenticate
Section titled “Authenticate”Create an API key on the Integrations page of the dashboard (see
Authentication) and keep it out of source control. Pass it
to the client directly, or leave it out and the SDK reads the HELLO_API_KEY environment variable.
import { Hello } from "@lakshyapocketlab/hello";
const hello = new Hello({ apiKey: "hello_live_xxxxxxxxxxxxxxxx" }); // or new Hello() to read HELLO_API_KEYfrom lakshyapocketlab_hello import Hello
client = Hello(api_key="hello_live_xxxxxxxxxxxxxxxx") # or Hello() to read HELLO_API_KEYclient, err := hello.NewClient(hello.WithAPIKey("hello_live_xxxxxxxxxxxxxxxx")) // or hello.NewClient() to read HELLO_API_KEYThe default base URL is https://helloapi.lakshyapocketlab.com. To point an SDK at staging or a
self-hosted gateway, pass the base-URL option (baseUrl, base_url or hello.WithBaseURL) or set
the HELLO_BASE_URL environment variable. The option wins over the variable.
Send a text message
Section titled “Send a text message”Free-form text needs an open 24-hour customer-service window (see
How sending works). to must include the + and
country code.
import { Hello } from "@lakshyapocketlab/hello";
const hello = new Hello({ apiKey: process.env.HELLO_API_KEY });
const { data: numbers } = await hello.phoneNumbers.list();const from = numbers[0]!.phone_number_id;
const res = await hello.messages.sendText(from, "+919999999999", "Your order has shipped.");console.log(res.messages[0]?.hello_id);from lakshyapocketlab_hello import Hello
with Hello() as client: # reads HELLO_API_KEY number = client.phone_numbers.list()["data"][0] sent = client.messages.send_text( number["phone_number_id"], "+919999999999", "Your order has shipped." ) print(sent["messages"][0]["hello_id"])package main
import ( "context" "fmt" "log"
hello "github.com/lakshyapocketlab/hello-go")
func main() { client, err := hello.NewClient() // reads HELLO_API_KEY if err != nil { log.Fatal(err) } ctx := context.Background()
numbers, err := client.PhoneNumbers.List(ctx) if err != nil { log.Fatal(err) }
resp, err := client.Messages.SendText(ctx, numbers[0].PhoneNumberID, "+919999999999", "Your order has shipped.") if err != nil { log.Fatal(err) } fmt.Println("Hello message ID:", resp.Messages[0].HelloID)}Send a template message
Section titled “Send a template message”Templates are the only message type that can start a conversation. The template must be approved on that number’s WABA.
await hello.messages.sendTemplate(from, "+919999999999", { name: "order_shipped", language: "en", components: [{ type: "body", parameters: [{ type: "text", text: "Asha" }] }],});client.messages.send_template( phone_number_id, "+919999999999", "order_shipped", "en", components=[{"type": "body", "parameters": [{"type": "text", "text": "Asha"}]}],)The async client, AsyncHello, has the same methods; await each call.
resp, err := client.Messages.SendTemplate(ctx, phoneNumberID, "+919999999999", hello.TemplateMessage{ Name: "order_shipped", Language: "en", Components: []any{hello.BodyParameters("Asha")}, // {{1}}})Track delivery
Section titled “Track delivery”Every send returns a hello_id. Pass it to the message lookup to follow the message from
queued through sent, delivered and read. This is
GET /v1/messages/{id}.
const msg = await hello.messages.get(res.messages[0]!.hello_id);msg = client.messages.get(sent["messages"][0]["hello_id"])msg, err := client.Messages.Get(ctx, resp.Messages[0].HelloID)fmt.Println(msg.Status) // queued, sent, delivered, read, failedRetries and idempotency
Section titled “Retries and idempotency”The SDKs retry 429, 5xx and network errors (two retries by default, with backoff, honoring
Retry-After). A message send is never retried unless you pass an idempotency key, so a
billed message is not sent twice. With a key, a retry returns the original message.
await hello.messages.sendText(from, to, "hi", { idempotencyKey: crypto.randomUUID() });client.messages.send_template(pnid, to, "promo", "en", idempotency_key="order-1042")client.Messages.SendText(ctx, pnid, to, "hi", hello.WithIdempotencyKey("order-1042"))Errors
Section titled “Errors”Non-2xx responses raise a typed error carrying the HTTP status, the Meta error code, and
Hello’s own code (helloCode in Node.js, hello_code in Python, HelloCode in Go). Branch on
those codes, not on the message text. See Errors for the full list.
What else is covered
Section titled “What else is covered”Each SDK also wraps media upload and download, the template endpoints (list, get, create, bulk-create, edit, sync, delete) and the direct webhook override. Each repository README has the full method table.
Examples
Section titled “Examples”Runnable examples for all three SDKs live in hello-examples:
- Message types: one small, copyable function per type: text, image, video, audio, document,
sticker, location, contacts, reply buttons, list, call-to-action URL, reaction, reply with
context and four template shapes. Each one follows the message through to
deliveredorread. - Smoke test: checks your setup end to end. It lists your templates, sends one authentication (OTP) template and one interactive message, and reports delivery.
- Webhooks: a receiver for the direct webhook.
- n8n: send WhatsApp messages from an n8n workflow.
Prefer to talk to your account?
Section titled “Prefer to talk to your account?”Hello also runs an MCP server so an AI assistant can send messages and manage templates for you.
Connect it over HTTP, or run it locally with npx @lakshyapocketlab/hello-mcp
(hello-mcp). See
Integrate with AI (MCP).