Interactive API Demos

Experience the power of the TakeoffSMS WhatsApp Business API. Test requests, view responses, and see real-time UI previews in your browser.


curl -X POST \
  "https://api.takeoffsms.com/v1/messages" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+1234567890",
    "type": "template",
    "template": {
      "name": "booking_confirmation",
      "language": { "code": "en_US" },
      "components": [
        {
          "type": "body",
          "parameters": [
            { "type": "text", "text": "John Doe" },
            { "type": "text", "text": "Tomorrow at 2 PM" }
          ]
        }
      ]
    }
  }'

const axios = require('axios');

axios.post('https://api.takeoffsms.com/v1/messages', {
  to: '+1234567890',
  type: 'template',
  template: {
    name: 'booking_confirmation',
    language: { code: 'en_US' },
    components: [{
      type: 'body',
      parameters: [
        { type: 'text', text: 'John Doe' },
        { type: 'text', text: 'Tomorrow at 2 PM' }
      ]
    }]
  }
}, {
  headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});

use Illuminate\Support\Facades\Http;

Http::withToken('YOUR_API_KEY')
    ->post('https://api.takeoffsms.com/v1/messages', [
        'to' => '+1234567890',
        'type' => 'template',
        'template' => [
            'name' => 'booking_confirmation',
            'language' => ['code' => 'en_US'],
            'components' => [[
                'type' => 'body',
                'parameters' => [
                    ['type' => 'text', 'text' => 'John Doe'],
                    ['type' => 'text', 'text' => 'Tomorrow at 2 PM'],
                ]
            ]]
        ]
    ]);

Live Response


{
  "messaging_product": "whatsapp",
  "contacts": [{
    "input": "+1234567890",
    "wa_id": "1234567890"
  }],
  "messages": [{
    "id": "wamid.HBgL..."
  }]
}
storefront
Takeoff SMS Travel
Official Business Account
flight_takeoff
Booking Confirmed!
Hi John Doe, your flight to Paris is confirmed for Tomorrow at 2 PM. Reference: TK-8892.
12:45 PM ✓✓
Message Takeoff Travel...
mic
Real-time Preview