POST

Spintax Dynamic Variation

Send randomized message variations using standard `{option1|option2|option3}` syntax to make every message unique and prevent WhatsApp anti-spam fingerprinting.

Spintax Evaluation

The engine evaluates nested Spintax tags server-side before queueing the message into the dispatch stream.

HTTP Endpoint

POSThttps://api-wa.hidessh.com/api/v1/wa/messages/send

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
phone
stringRequired

Target phone number.

example: 628123456789
message
stringRequired

Spintax formatted message string using `{option1|option2}` syntax.

example: {Hello|Hi|Good day} {Kak|Bro}, {thank you for your order|your order has been received}!

Code Examples

request.sh
curl -X POST "https://api-wa.hidessh.com/api/v1/wa/messages/send" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "628123456789",
    "message": "{Hello|Hi|Greetings} {John|Partner}, {hope you have a great week|wishing you high productivity}!"
  }'

Response Formats

Spintax processed and sent.

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