Send a WhatsApp message
Deliver a message to a phone number your agent can't reach otherwise. Delivery receipt returned.
POST https://api.bottrunk.com/s/send-whatsapp
Call it
# Ask. You get a 402 with the payment requirements.
curl https://api.bottrunk.com/s/send-whatsapp \
-d '{"url": "https://example.com/pricing"}'
# Pay and retry. Any x402 client does this for you.
curl https://api.bottrunk.com/s/send-whatsapp \
-H "X-PAYMENT: <signed USDC transfer>" \
-d '{"url": "https://example.com/pricing"}'
from x402.clients import requests as x402_requests
session = x402_requests.x402_http_adapter(account)
r = session.post(
"https://api.bottrunk.com/s/send-whatsapp",
json={"url": "https://example.com/pricing"},
)
print(r.json()["markdown"])
{ "mcpServers": { "bottrunk": { "url": "https://mcp.bottrunk.com" } } }
# then call the tool `send_whatsapp` from your agent
Input
| to | string | E.164 phone number. |
| text | string | Message body, up to 1,000 characters. |
Output
| message_id | string | Provider message id. |
| status | string | sent, delivered, or failed. |