API Documentation

v1.0

Authentication

All API requests require an API Key to be sent in the Authorization header.

Authorization: Bearer sk_your_api_key_here

Note: You can find your API Key in the Settings page under the "API Access" section.

POST

/v1/send

Send a WhatsApp message to a specific phone number.

Request Body (JSON)

Parameter Type Required Description
phone String Yes Number with country code (e.g., 90555...)
message String Yes The message content.

Example Request

curl -X POST https://wab.ibo.rocks/v1/send \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "905555555555",
    "message": "Hello from API!"
  }'

Success Response

{
  "success": true,
  "message": "Message sent successfully",
  "to": "905551234567"
}

Error Codes

401

Unauthorized

Invalid or missing API Key.

503

Service Unavailable

WhatsApp client not ready (Scan QR code).

400

Bad Request

Missing required parameters (phone, message).