Endpoint
Authentication
| Header | Required | Value |
|---|---|---|
X-API-Key | Yes | Your API key (bun_...) |
Content-Type | Yes | application/json |
Overview
Generate WhatsApp click-to-chat links for any phone number. Bunny normalises the number to international E.164 format and returns a directwa.me link. If a message is provided, it also returns a pre-filled version with the message URL-encoded.
Use cases
- Add “Chat on WhatsApp” buttons to landing pages and product pages
- Generate WhatsApp support links from your CRM
- Build WhatsApp marketing campaign links with pre-filled messages
- Automate onboarding flows that open WhatsApp conversations
Details
Phone numbers can be passed with or without country code, spaces, dashes, or parentheses. All formats are normalised automatically. Brazilian numbers (10 or 11 digits without country code) get the+55 prefix added automatically.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
phone | string | Yes | Phone number in E.164 format (e.g. +5511999999999) |
message | string | No | Pre-filled message text (URL-encoded automatically) |
Example
Response
200 OK
| Field | Type | Description |
|---|---|---|
phone_normalized | string | Phone number normalized to digits only (E.164 without the +) |
link | string | WhatsApp click-to-chat URL (https://wa.me/{phone_normalized}) |
link_with_message | string | Pre-filled link with the message URL-encoded. Only present when message was provided |

