Skip to Content
Wayits Gateway
API ReferenceSend & Messaging

Send or schedule a text message with reply, mentions and forwarding options

POST/api/gateway/send/message

Send or schedule a text message with reply, mentions and forwarding options

Headers

Authorizationstringrequired

Bearer format: Bearer <API_KEY>.

X-Device-Idstringoptional

Optional / Session-scoped. Target WhatsApp session ID.

Content-Typestringrequired

application/json.

Body Parameters

scheduled_atstringoptional

-

timezonestringoptional

-

recurrencestringoptional

-

weekdaysarray of integeroptional

-

day_of_monthintegeroptional

-

end_atstringoptional

-

occurrence_limitintegeroptional

-

phonestringrequired

-

reply_message_idstringoptional

-

is_forwardedbooleanrequireddefault: False

-

durationstringoptional

-

captionstringoptional

-

mentionsarray of stringoptional

-

messagestringrequired

-

allow_resharebooleanrequireddefault: False

-

Returns

Returns standard Wayits response envelope with status: 200 and code: "SUCCESS". The response payload is available inside results.

curl -X POST "https://api.yourdomain.com/api/gateway/send/message" \
  -H "Authorization: Bearer $WAYITS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-Device-Id: $WAYITS_DEVICE_ID" \
  -d '{
  "phone": "6281234567890",
  "is_forwarded": false,
  "message": "Halo dari Wayits!",
  "allow_reshare": false
}'

200 — Example

{
  "status": 200,
  "code": "SUCCESS",
  "message": "Success",
  "results": {
    "message_id": "3EB0C8B729314C12821E",
    "status": "Success"
  }
}