POST/v1/text
Send Text Message

Sends a plain text message.

Headers
KeyDescription
x-neoxr-tokenYour bot instance token. (Required)
Body Parameters (application/json)
ParameterTypeStatusDescription
numberstringRequiredRecipient number with country code (e.g., 62812xxxx).
textstringRequiredThe message content.
Example (cURL)
curl -X POST '__BASE_URL__/v1/text' \
  --header 'x-neoxr-token: __YOUR_TOKEN__' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "number": "6281234567890",
    "text": "Hello, this is a test message."
  }'
POST/v1/media
Send Media

Sends a media file from a URL.

Headers
KeyDescription
x-neoxr-tokenYour bot instance token. (Required)
Body Parameters (application/json)
ParameterTypeStatusDescription
numberstringRequiredRecipient number.
urlstringRequiredPublic URL of the image/video.
captionstringOptionalCaption for the media.
Notes
  • Supported types: image, video.
Example (cURL)
curl -X POST '__BASE_URL__/v1/media' \
  --header 'x-neoxr-token: __YOUR_TOKEN__' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "number": "6281234567890",
    "url": "https://i.imgur.com/example.jpeg",
    "caption": "This is an image."
  }'
POST/v1/voice
Send Voice Note

Sends an audio file as a voice note.

Headers
KeyDescription
x-neoxr-tokenYour bot instance token. (Required)
Body Parameters (application/json)
ParameterTypeStatusDescription
numberstringRequiredRecipient number.
urlstringRequiredPublic URL of the audio file.
Notes
  • Audio will be sent as a Push-to-Talk (PTT) message.
Example (cURL)
curl -X POST '__BASE_URL__/v1/voice' \
  --header 'x-neoxr-token: __YOUR_TOKEN__' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "number": "6281234567890",
    "url": "https://example.com/audio.mp3"
  }'
POST/v1/file
Send Document

Sends a file as a document.

Headers
KeyDescription
x-neoxr-tokenYour bot instance token. (Required)
Body Parameters (application/json)
ParameterTypeStatusDescription
numberstringRequiredRecipient number.
urlstringRequiredPublic URL of the file.
filenamestringRequiredFile name with extension.
captionstringOptionalOptional caption.
Example (cURL)
curl -X POST '__BASE_URL__/v1/file' \
  --header 'x-neoxr-token: __YOUR_TOKEN__' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "number": "6281234567890",
    "url": "https://example.com/document.pdf",
    "filename": "report.pdf"
  }'
POST/v1/button
Send Button Message

Sends a message with interactive buttons.

Headers
KeyDescription
x-neoxr-tokenYour bot instance token. (Required)
Body Parameters (application/json)
ParameterTypeStatusDescription
numberstringRequiredRecipient number.
textstringRequiredMain text content.
buttonstringRequiredJSON string of button objects.
mediastringOptionalOptional image URL for header.
Notes
  • Button parameter example: '[{"text": "Option 1", "command": ".opt1"}]'
  • This feature may not work on WhatsApp Business accounts.
Example (cURL)
curl -X POST '__BASE_URL__/v1/button' \
  --header 'x-neoxr-token: __YOUR_TOKEN__' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "number": "6281234567890",
    "text": "Select an option:",
    "button": "[{\"text\":\"Option A\",\"command\":\".opt-a\"}]"
  }'
POST/v2/text
Send Text Message (JID)

Sends a plain text message using a JID.

Headers
KeyDescription
x-neoxr-tokenYour bot instance token. (Required)
Body Parameters (application/json)
ParameterTypeStatusDescription
jidstringRequiredRecipient JID (e.g., 62812xxxx@s.whatsapp.net or xxxxx-xxxx@g.us).
textstringRequiredThe message content.
Example (cURL)
curl -X POST '__BASE_URL__/v2/text' \
  --header 'x-neoxr-token: __YOUR_TOKEN__' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "jid": "6281234567890@s.whatsapp.net",
    "text": "Hello, this is a test message."
  }'
POST/v2/media
Send Media (JID)

Sends a media file from a URL using a JID.

Headers
KeyDescription
x-neoxr-tokenYour bot instance token. (Required)
Body Parameters (application/json)
ParameterTypeStatusDescription
jidstringRequiredRecipient JID.
urlstringRequiredPublic URL of the image/video.
captionstringOptionalCaption for the media.
Notes
  • Supported types: image, video.
Example (cURL)
curl -X POST '__BASE_URL__/v2/media' \
  --header 'x-neoxr-token: __YOUR_TOKEN__' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "jid": "6281234567890@s.whatsapp.net",
    "url": "https://i.imgur.com/example.jpeg",
    "caption": "This is an image."
  }'
POST/v2/voice
Send Voice Note (JID)

Sends an audio file as a voice note using a JID.

Headers
KeyDescription
x-neoxr-tokenYour bot instance token. (Required)
Body Parameters (application/json)
ParameterTypeStatusDescription
jidstringRequiredRecipient JID.
urlstringRequiredPublic URL of the audio file.
Notes
  • Audio will be sent as a Push-to-Talk (PTT) message.
Example (cURL)
curl -X POST '__BASE_URL__/v2/voice' \
  --header 'x-neoxr-token: __YOUR_TOKEN__' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "jid": "6281234567890@s.whatsapp.net",
    "url": "https://example.com/audio.mp3"
  }'
POST/v2/file
Send Document (JID)

Sends a file as a document using a JID.

Headers
KeyDescription
x-neoxr-tokenYour bot instance token. (Required)
Body Parameters (application/json)
ParameterTypeStatusDescription
jidstringRequiredRecipient JID.
urlstringRequiredPublic URL of the file.
filenamestringRequiredFile name with extension.
captionstringOptionalOptional caption.
Example (cURL)
curl -X POST '__BASE_URL__/v2/file' \
  --header 'x-neoxr-token: __YOUR_TOKEN__' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "jid": "6281234567890@s.whatsapp.net",
    "url": "https://example.com/document.pdf",
    "filename": "report.pdf"
  }'
POST/v2/button
Send Button Message (JID)

Sends a message with interactive buttons using a JID.

Headers
KeyDescription
x-neoxr-tokenYour bot instance token. (Required)
Body Parameters (application/json)
ParameterTypeStatusDescription
jidstringRequiredRecipient JID.
textstringRequiredMain text content.
buttonstringRequiredJSON string of button objects.
mediastringOptionalOptional image URL for header.
Notes
  • Button parameter example: '[{"text": "Option 1", "command": ".opt1"}]'
  • This feature may not work on WhatsApp Business accounts.
Example (cURL)
curl -X POST '__BASE_URL__/v2/button' \
  --header 'x-neoxr-token: __YOUR_TOKEN__' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "jid": "6281234567890@s.whatsapp.net",
    "text": "Select an option:",
    "button": "[{\"text\":\"Option A\",\"command\":\".opt-a\"}]"
  }'