API documentation
Explore endpoints, request parameters, and examples for your bot.
POST
/v1/textSend Text Message
Sends a plain text message.
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
number | string | Required | Recipient number with country code (e.g., 62812xxxx). |
text | string | Required | The 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/modifySend Message Modify
Sends a text message with a custom thumbnail and link preview.
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
number | string | Required | Recipient number. |
text | string | Required | The message content. |
title | string | Optional | Title for the link preview. |
thumbnail | string | Required | URL of the thumbnail image. |
url | string | Optional | Target URL for the link preview. |
Notes
- Useful for sending messages that look like link previews.
Example (cURL)
curl -X POST '__BASE_URL__/v1/modify' \
--header 'x-neoxr-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"number": "6281234567890",
"text": "Test!",
"title": "© violetix",
"thumbnail": "https://iili.io/HP3ODj2.jpg",
"url": "https://chat.whatsapp.com/HYknAquOTrECm9KPJJQO1V"
}'POST
/v1/mediaSend Media
Sends a media file from a URL.
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
number | string | Required | Recipient number. |
url | string | Required | Public URL of the image/video. |
caption | string | Optional | Caption 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.pinimg.com/736x/39/cc/b3/39ccb37903402f63a990e8cc004bef5d.jpg",
"caption": "This is an image."
}'POST
/v1/voiceSend Voice Note
Sends an audio file as a voice note.
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
number | string | Required | Recipient number. |
url | string | Required | Public 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/sample.mp3"
}'POST
/v1/fileSend Document
Sends a file as a document.
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
number | string | Required | Recipient number. |
url | string | Required | Public URL of the file. |
filename | string | Required | File name with extension. |
caption | string | Optional | Optional 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://pdfobject.com/pdf/sample.pdf",
"filename": "sample.pdf"
}'POST
/v1/albumSend Album
Sends multiple media files as an album.
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
number | string | Required | Recipient number. |
media | array | Required | Array of media objects containing url, caption, and type. |
Notes
- Only image and video types are supported for albums.
Example (cURL)
curl -X POST '__BASE_URL__/v1/album' \
--header 'x-neoxr-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"number": "6281234567890",
"media": [
{"url": "https://i.pinimg.com/736x/09/d2/b9/09d2b9f1e452f54a8260de445120cc76.jpg", "caption": "Image 1", "type": "image"},
{"url": "https://i.pinimg.com/1200x/a0/3a/2b/a03a2b9c7291739ce7cb27d380f26143.jpg", "caption": "Image 2", "type": "image"},
{"url": "https://i.pinimg.com/736x/86/57/97/865797107d1552e2dbb3a28177e18056.jpg", "caption": "Image 3", "type": "image"}
]
}'POST
/v1/contactSend Contact
Sends a contact card (vCard).
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
number | string | Required | Recipient number. |
contacts | array | Required | Array of contact objects (name, number, about). |
org | string | Optional | Organization name. |
website | string | Optional | Website URL. |
email | string | Optional | Email address. |
Example (cURL)
curl -X POST '__BASE_URL__/v1/contact' \
--header 'x-neoxr-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"number": "6281234567890",
"contacts": [
{"name": "John Doe", "number": "6281234567890", "about": "Owner"}
],
"org": "Violetix",
"website": "__BASE_URL__",
"email": "[email protected]"
}'POST
/v2/textSend Text Message (JID)
Sends a plain text message using a JID.
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
jid | string | Required | Recipient JID (e.g., [email protected] or [email protected]). |
text | string | Required | The 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": "[email protected]",
"text": "Hello, this is a test message."
}'POST
/v2/modifySend Message Modify (JID)
Sends a text message with a custom thumbnail and link preview using a JID.
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
jid | string | Required | Recipient JID. |
text | string | Required | The message content. |
title | string | Optional | Title for the link preview. |
thumbnail | string | Required | URL of the thumbnail image. |
url | string | Optional | Target URL for the link preview. |
Notes
- Useful for sending messages that look like link previews.
Example (cURL)
curl -X POST '__BASE_URL__/v2/modify' \
--header 'x-neoxr-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"jid": "[email protected]",
"text": "Test!",
"title": "© violetix",
"thumbnail": "https://iili.io/HP3ODj2.jpg",
"url": "https://chat.whatsapp.com/HYknAquOTrECm9KPJJQO1V"
}'POST
/v2/mediaSend Media (JID)
Sends a media file from a URL using a JID.
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
jid | string | Required | Recipient JID. |
url | string | Required | Public URL of the image/video. |
caption | string | Optional | Caption 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": "[email protected]",
"url": "https://i.pinimg.com/736x/39/cc/b3/39ccb37903402f63a990e8cc004bef5d.jpg",
"caption": "This is an image."
}'POST
/v2/voiceSend Voice Note (JID)
Sends an audio file as a voice note using a JID.
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
jid | string | Required | Recipient JID. |
url | string | Required | Public 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": "[email protected]",
"url": "https://example.com/audio/sample.mp3"
}'POST
/v2/fileSend Document (JID)
Sends a file as a document using a JID.
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
jid | string | Required | Recipient JID. |
url | string | Required | Public URL of the file. |
filename | string | Required | File name with extension. |
caption | string | Optional | Optional caption. |
Example (cURL)
curl -X POST '__BASE_URL__/v2/file' \
--header 'x-neoxr-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"jid": "[email protected]",
"url": "https://pdfobject.com/pdf/sample.pdf",
"filename": "sample.pdf"
}'POST
/v2/albumSend Album (JID)
Sends multiple media files as an album using a JID.
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
jid | string | Required | Recipient JID. |
media | array | Required | Array of media objects containing url, caption, and type. |
Notes
- Only image and video types are supported for albums.
Example (cURL)
curl -X POST '__BASE_URL__/v2/album' \
--header 'x-neoxr-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"jid": "[email protected]",
"media": [
{"url": "https://i.pinimg.com/736x/09/d2/b9/09d2b9f1e452f54a8260de445120cc76.jpg", "caption": "Image 1", "type": "image"},
{"url": "https://i.pinimg.com/1200x/a0/3a/2b/a03a2b9c7291739ce7cb27d380f26143.jpg", "caption": "Image 2", "type": "image"},
{"url": "https://i.pinimg.com/736x/86/57/97/865797107d1552e2dbb3a28177e18056.jpg", "caption": "Image 3", "type": "image"}
]
}'POST
/v2/contactSend Contact (JID)
Sends a contact card (vCard) using a JID.
Headers
| Key | Description |
|---|---|
x-neoxr-token | Your bot instance token. (Required) |
Body Parameters (application/json)
| Parameter | Type | Status | Description |
|---|---|---|---|
jid | string | Required | Recipient JID. |
contacts | array | Required | Array of contact objects (name, number, about). |
org | string | Optional | Organization name. |
website | string | Optional | Website URL. |
email | string | Optional | Email address. |
Example (cURL)
curl -X POST '__BASE_URL__/v2/contact' \
--header 'x-neoxr-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"jid": "[email protected]",
"contacts": [
{"name": "John Doe", "number": "6281234567890", "about": "Owner"}
],
"org": "Violetix",
"website": "__BASE_URL__",
"email": "[email protected]"
}'