BlueTick11
v1 REST API

BlueTick11 API

Send WhatsApp OTPs and notifications from any backend in a few lines of code.

Authentication

Send your API key in the Authorization header on every request. Create keys under API keys in the dashboard. Requests and responses are JSON (form data also works).

Authorization: Bearer bt11_live_your_api_key
Base URL: https://bluetick11.candycode.in/api/v1

Phone numbers must include the country code, e.g. 919876543210 or +91 98765 43210. A number that starts with + or 00 is always read as already having its country code (e.g. +65 9123 4567 for Singapore). Without + or 00, a 10-digit number is treated as Indian (+91).

Several WhatsApp numbers? Messages go out from your first connected number. To send from another one, add from to /otp/send, /messages/template or /messages/text: the phone_number_id or the full number of one of your connected numbers. The template must exist in that number's WhatsApp Business Account. GET /account lists your numbers; an unknown or disconnected number gets a 422.

1. Send an OTP

POST /otp/send

BlueTick11 generates a 6-digit code, sends it with your default authentication template and stores a secure hash for verification. The code stays valid for as long as the template's expiry note tells the customer ("This code expires in 10 minutes"), or 10 minutes when the template has no note. Optional fields: code (send your own 4 to 8 digit code), template, language, expiry_minutes (1 to 90, overrides the expiry), from.

curl -X POST https://bluetick11.candycode.in/api/v1/otp/send \
  -H "Authorization: Bearer bt11_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"phone":"919876543210"}'
// 200 OK
{"success":true,"otp_id":184,"expires_at":"2026-10-17T10:52:00+00:00",
 "message":{"id":5521,"phone":"919876543210","type":"otp","status":"sent","wamid":"wamid.HBgM..."}}

2. Verify the OTP

POST /otp/verify
curl -X POST https://bluetick11.candycode.in/api/v1/otp/verify \
  -H "Authorization: Bearer bt11_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"phone":"919876543210","code":"482913"}'
// 200 OK when correct, 422 otherwise
{"success":true,"verified":true,"status":"verified","message":"OTP verified."}
// status can be: verified | invalid | expired | too_many_attempts | not_found

3. Send a notification (template)

POST /messages/template

params fill {{1}}, {{2}}… in the template body. Optional: header_params, button_params (e.g. {"0":"A1027"} for a dynamic URL button) or raw Cloud API components.

curl -X POST https://bluetick11.candycode.in/api/v1/messages/template \
  -H "Authorization: Bearer bt11_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"phone":"919876543210","template":"order_update","language":"en","params":["Priya","#A1027","6 PM"]}'

4. Other endpoints

MethodPathWhat it does
POST/messages/textphone, text — free-form text. Works only within 24 hours after the customer last messaged you.
GET/messages/{id}Current status of a message: queued, sent, delivered, read or failed (with reason).
GET/templatesYour templates with status (APPROVED, PENDING, REJECTED). Add ?from= for the templates of another connected number.
GET/accountPlan, expiry and connected numbers (numbers) — handy as a health check.

Code examples

PHP / Laravel

use Illuminate\Support\Facades\Http;

$bt = Http::withToken('bt11_live_your_api_key')->acceptJson()->baseUrl('https://bluetick11.candycode.in/api/v1');

// Send OTP
$bt->post('/otp/send', ['phone' => $request->phone])->throw();

// Verify OTP
$ok = $bt->post('/otp/verify', ['phone' => $request->phone, 'code' => $request->otp])->json('verified');

// Order notification
$bt->post('/messages/template', [
    'phone' => $order->phone, 'template' => 'order_update',
    'params' => [$order->name, $order->number, $order->eta],
]);

Plain PHP (cURL)

$ch = curl_init('https://bluetick11.candycode.in/api/v1/otp/send');
curl_setopt_array($ch, [
    CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['Authorization: Bearer bt11_live_your_api_key', 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode(['phone' => '919876543210']),
]);
$res = json_decode(curl_exec($ch), true);

Node.js

const r = await fetch('https://bluetick11.candycode.in/api/v1/otp/send', {
  method: 'POST',
  headers: { Authorization: 'Bearer bt11_live_your_api_key', 'Content-Type': 'application/json' },
  body: JSON.stringify({ phone: '919876543210' }),
});
const data = await r.json();

Flutter / Dart — call your own backend, never put the API key inside a mobile app.

Webhooks to your server

Optional

Set a webhook URL under Developers. We POST JSON events: message.status (sent, delivered, read, failed) and message.received (customer replies). Each event has whatsapp_number: the phone_number_id and phone of your number it belongs to. Each request has an X-BlueTick11-Signature header: sha256= + HMAC-SHA256 of the raw body with your webhook secret. No events are sent while your plan is inactive; the messages stay in your inbox and message log.

$sig = 'sha256=' . hash_hmac('sha256', file_get_contents('php://input'), $webhookSecret);
if (!hash_equals($sig, $_SERVER['HTTP_X_BLUETICK11_SIGNATURE'] ?? '')) { http_response_code(403); exit; }

Errors: 401 bad API key · 402 plan inactive · 422 validation or Meta error (see error) · 429 rate limit (300 requests/minute per key).