/v1/textSends a plain text message.
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| Parameter | Type | Status | Description |
|---|---|---|---|
number | string | Required | Recipient number with country code (e.g., 62812xxxx). |
text | string | Required | The message content. |
curl -X POST '__BASE_URL__/v1/text' \
--header 'x-merajah-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"number": "6281234567890",
"text": "Hello, this is a test message."
}'/v1/modifySends a text message with a custom thumbnail and link preview.
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| 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. |
curl -X POST '__BASE_URL__/v1/modify' \
--header 'x-merajah-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"number": "6281234567890",
"text": "Test!",
"title": "© neoxr-bot",
"thumbnail": "https://iili.io/HP3ODj2.jpg",
"url": "https://chat.whatsapp.com/HYknAquOTrECm9KPJJQO1V"
}'/v1/mediaSends a media file from a URL.
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| 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. |
curl -X POST '__BASE_URL__/v1/media' \
--header 'x-merajah-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."
}'/v1/voiceSends an audio file as a voice note.
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| Parameter | Type | Status | Description |
|---|---|---|---|
number | string | Required | Recipient number. |
url | string | Required | Public URL of the audio file. |
curl -X POST '__BASE_URL__/v1/voice' \
--header 'x-merajah-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"number": "6281234567890",
"url": "https://cdn.neoxr.eu/audio/chicken.mp3"
}'/v1/fileSends a file as a document.
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| 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. |
curl -X POST '__BASE_URL__/v1/file' \
--header 'x-merajah-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"number": "6281234567890",
"url": "https://pdfobject.com/pdf/sample.pdf",
"filename": "sample.pdf"
}'/v1/albumSends multiple media files as an album.
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| Parameter | Type | Status | Description |
|---|---|---|---|
number | string | Required | Recipient number. |
media | array | Required | Array of media objects containing url, caption, and type. |
curl -X POST '__BASE_URL__/v1/album' \
--header 'x-merajah-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"}
]
}'/v1/contactSends a contact card (vCard).
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| 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. |
curl -X POST '__BASE_URL__/v1/contact' \
--header 'x-merajah-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"number": "6281234567890",
"contacts": [
{"name": "Wildan Izzudin", "number": "6285887776722", "about": "Owner"}
],
"org": "Neoxr Network",
"website": "__BASE_URL__",
"email": "[email protected]"
}'/v2/textSends a plain text message using a JID.
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| Parameter | Type | Status | Description |
|---|---|---|---|
jid | string | Required | Recipient JID (e.g., [email protected] or [email protected]). |
text | string | Required | The message content. |
curl -X POST '__BASE_URL__/v2/text' \
--header 'x-merajah-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"jid": "[email protected]",
"text": "Hello, this is a test message."
}'/v2/modifySends a text message with a custom thumbnail and link preview using a JID.
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| 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. |
curl -X POST '__BASE_URL__/v2/modify' \
--header 'x-merajah-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"jid": "[email protected]",
"text": "Test!",
"title": "© neoxr-bot",
"thumbnail": "https://iili.io/HP3ODj2.jpg",
"url": "https://chat.whatsapp.com/HYknAquOTrECm9KPJJQO1V"
}'/v2/mediaSends a media file from a URL using a JID.
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| 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. |
curl -X POST '__BASE_URL__/v2/media' \
--header 'x-merajah-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."
}'/v2/voiceSends an audio file as a voice note using a JID.
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| Parameter | Type | Status | Description |
|---|---|---|---|
jid | string | Required | Recipient JID. |
url | string | Required | Public URL of the audio file. |
curl -X POST '__BASE_URL__/v2/voice' \
--header 'x-merajah-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"jid": "[email protected]",
"url": "https://cdn.neoxr.eu/audio/chicken.mp3"
}'/v2/fileSends a file as a document using a JID.
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| 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. |
curl -X POST '__BASE_URL__/v2/file' \
--header 'x-merajah-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"jid": "[email protected]",
"url": "https://pdfobject.com/pdf/sample.pdf",
"filename": "sample.pdf"
}'/v2/albumSends multiple media files as an album using a JID.
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| Parameter | Type | Status | Description |
|---|---|---|---|
jid | string | Required | Recipient JID. |
media | array | Required | Array of media objects containing url, caption, and type. |
curl -X POST '__BASE_URL__/v2/album' \
--header 'x-merajah-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"}
]
}'/v2/contactSends a contact card (vCard) using a JID.
| Key | Description |
|---|---|
x-merajah-token | Your bot instance token. (Required) |
| 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. |
curl -X POST '__BASE_URL__/v2/contact' \
--header 'x-merajah-token: __YOUR_TOKEN__' \
--header 'Content-Type: application/json' \
--data-raw '{
"jid": "[email protected]",
"contacts": [
{"name": "Wildan Izzudin", "number": "6285887776722", "about": "Owner"}
],
"org": "Neoxr Network",
"website": "__BASE_URL__",
"email": "[email protected]"
}'