POST

Meta Cloud API Compatible

Meta v18.0

Drop-in compatibility route for developers migrating from Meta WhatsApp Cloud API. Supports nested `text: { body }` and `template` objects.

Meta Cloud API Compatibility

Point your existing Meta WhatsApp Cloud API SDK base URL to https://api.wahide.com/api/v1 without modifying your request schemas.

HTTP Endpoint

POSThttps://api-wa.hidessh.com/api/v1/v18.0/{deviceId}/messages

Authentication

This endpoint requires Bearer authentication via your secret API Key.
Header KeyValueRequired
AuthorizationBearer <your_api_key>Required
Content-Typeapplication/jsonRequired

Request Parameters

The request body must be formatted as JSON with the following parameters:

ParameterTypeRequiredDescription
messaging_product
stringRequired

Always set to 'whatsapp'.

example: whatsapp
recipient_type
stringOptional

Type of recipient. Defaults to 'individual'.

default: "individual"
to
stringRequired

Recipient phone number in E.164 international format.

example: 628123456789
type
stringRequired

Message type: 'text', 'image', 'document', or 'template'.

example: text
text
objectRequired

Text message payload object containing the body string.

text.body
stringRequired

The actual message content string inside the text object.

example: Hello from Meta-compatible route!

Code Examples

request.sh
curl -X POST "https://api-wa.hidessh.com/api/v1/v18.0/01M1WW3FKR1JS7CW4KGY78Q5ND/messages" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "messaging_product": "whatsapp",
    "recipient_type": "individual",
    "to": "628123456789",
    "type": "text",
    "text": {
      "body": "Hello from Meta-compatible route!"
    }
  }'

Response Formats

Meta formatted 200 OK message response.

application/json • 200 OK
{
  "messaging_product": "whatsapp",
  "contacts": [
    {
      "input": "628123456789",
      "wa_id": "628123456789"
    }
  ],
  "messages": [
    {
      "id": "wamid.HBgNNjI4MTIzNDU2Nzg5FQIAERgSM0VCMEExQjJDM0Q0RTVGNkEA"
    }
  ]
}

Response Attributes Breakdown

AttributeTypeDescription
messages[].idstringStandard Meta WAMID (WhatsApp Message ID).