1-Click AI Integration Prompt

Copy and paste this master prompt directly into Cursor, Claude Code, GitHub Copilot, ChatGPT, or Google Antigravity to build your WhatsApp integration in 30 seconds.
Live Token Attached
Master Prompt for Node.js / Express
Master Prompt for Python / FastAPI
Master Prompt for PHP / Laravel
Master Prompt for Next.js (App Router)
Universal CLI & Shell Prompt
Base API Endpoint
POSThttps://2tick.in/api/send.php
Required Authorization Header
Authorization: Bearer wa_live_9f8d7e6c5b4a312019283746

Channel 1: QR Linked SIM Device

Zero per-message fees • Instant OTPs & transactional alerts
{ "channel": "qr", "device_id": "DEV_01", "to": "+919876543210", "message": "Your one-time verification OTP is: 482019" }
{ "success": true, "message_id": "3EB0FEBF7A44030FB39567", "to": "+919876543210", "channel": "qr", "device_id": "DEV_01", "status": "sent", "timestamp": "2026-10-05 07:23:58" }

Channel 2: Official Meta WABA Cloud

Meta Graph API v19.0 • Green-tick verified templates
{ "channel": "official", "to": "+919876543210", "type": "template", "template": { "name": "hello_world", "language": { "code": "en_US" } } }
{ "success": true, "message_id": "wamid.HBgMOTE5ODcxODM2Mzg2FQIAERgSQ0U1RTI2MEE0RTgxRDQ5NzEA", "to": "+919876543210", "channel": "official", "phone_id": "1049283719284", "status": "sent", "timestamp": "2026-10-05 07:23:58" }

Production Code Snippets

import requests url = "https://2tick.in/api/send.php" headers = { "Authorization": "Bearer wa_live_9f8d7e6c5b4a312019283746", "Content-Type": "application/json" } payload = { "channel": "qr", "device_id": "DEV_01", "to": "+919876543210", "message": "Payment received! Invoice generated." } response = requests.post(url, json=payload, headers=headers) print(response.json())
const axios = require('axios'); async function sendWhatsApp() { const { data } = await axios.post('https://2tick.in/api/send.php', { channel: 'official', to: '+919876543210', type: 'template', template: { name: 'hello_world', language: { code: 'en_US' } } }, { headers: { 'Authorization': 'Bearer wa_live_9f8d7e6c5b4a312019283746', 'Content-Type': 'application/json' } }); console.log('Dispatched:', data); } sendWhatsApp();

HTTP Status Codes & Diagnostics

HTTP Code Status Description & Action
200 OK Dispatched Message accepted by gateway and queued/dispatched via designated WhatsApp channel.
400 Bad Request Validation Failed Missing recipient phone number, empty message content, or invalid JSON syntax.
401 Unauthorized Missing Token Missing Bearer token in the Authorization request header.
403 Forbidden Invalid Key / Suspended API Key revoked or account has been suspended by the administrator.
428 Precondition Meta Not Configured Attempted to send via channel: official but no verified WABA token is linked.
429 Rate Limit Quota Exhausted Monthly plan request quota reached. Upgrade plan or contact admin for quota top-up.
502 Bad Gateway Gateway Offline Device gateway service is temporarily unavailable or unreachable.
Chat on WhatsApp