INFO
Welcome to API reference SMS Gateway and WhatsApp Gateway.
Get Postman Collection
SMS Gateway
API for sending SMS messages
Status Code:
1 Success
2 Error balance
3 Error sending message
Send Text
Used to send text messages
Example request:
curl -X POST \
"https://api.visimediatech.com/sms/send-text" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"api_key":"","datapacket":{"number":"08577272xxxx","message":"Hi Visi by SMS Gateway."}}'
const url = new URL(
"https://api.visimediatech.com/sms/send-text"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"api_key": "",
"datapacket": {
"number": "08577272xxxx",
"message": "Hi Visi by SMS Gateway."
}
}
fetch(url, {
method: "POST",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.visimediatech.com/sms/send-text',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'api_key' => '',
'datapacket' => [
'number' => "08577272xxxx",
'message' => 'Hi Visi by SMS Gateway.',
],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api.visimediatech.com/sms/send-text'
payload = {
"api_key": "",
"datapacket": {
"number": "08577272xxxx",
"message": "Hi Visi by SMS Gateway."
}
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"time_execution": 0.9270179271697998,
"error": 0,
"success": 1,
"balance": "3933600.00",
"data": [
{
"number": "08577272xxxx",
"status_code": 1,
"status": "Message sent successfully",
"balance_before": "3934600.00",
"balance_after": 3934100,
"cost": "500.00"
}
]
}
Example response (422):
{
"message": "Api key not found."
}
HTTP Request
POST sms/send-text
Body Parameters
Parameter | Type | Status | Description |
---|---|---|---|
api_key |
string | required | API server key. |
datapacket.number |
string | required | to number user. |
datapacket.message |
string | required | text message. |
WhatsApp Gateway
APIs for sending WhatsApp(WA) messages
Status Code:
1 Success
2 Error balance
3 Error sending message
Send Text
Used to send text messages
Example request:
curl -X POST \
"https://api.visimediatech.com/wa/send-text" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"api_key":"","number":"08577272xxxx","message":"Hi Visi."}'
const url = new URL(
"https://api.visimediatech.com/wa/send-text"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"api_key": "",
"number": "08577272xxxx",
"message": "Hi Visi."
}
fetch(url, {
method: "POST",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.visimediatech.com/wa/send-text',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'api_key' => '',
'number' => '08577272xxxx',
'message' => 'Hi Visi.',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api.visimediatech.com/wa/send-text'
payload = {
"api_key": "",
"number": "08577272xxxx",
"message": "Hi Visi."
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"time_execution": 1.0617039203643799,
"error": 0,
"success": 1,
"balance": "3946500.00",
"data": [
{
"number": "08577272xxxx",
"status_code": 1,
"status_message": "",
"balance_before": "3946850.00",
"balance_after": 3946500,
"cost": "350.00"
}
]
}
Example response (422):
{
"message": "Api key not found."
}
HTTP Request
POST wa/send-text
Body Parameters
Parameter | Type | Status | Description |
---|---|---|---|
api_key |
string | required | API server key. |
number |
string | required | to number user. |
message |
string | required | text message. |
Send Media
Used to send media messages
Example request:
curl -X POST \
"https://api.visimediatech.com/wa/send-media" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"api_key":"","number":"08577272xxxx","caption":"Name File","file":""}'
const url = new URL(
"https://api.visimediatech.com/wa/send-media"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"api_key": "",
"number": "08577272xxxx",
"caption": "Name File",
"file": ""
}
fetch(url, {
method: "POST",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.visimediatech.com/wa/send-media',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'api_key' => '',
'number' => '08577272xxxx',
'caption' => 'Name File',
'file' => 'itaque',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api.visimediatech.com/wa/send-media'
payload = {
"api_key": "",
"number": "08577272xxxx",
"caption": "Name File",
"file": "itaque"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"time_execution": 1.0617039203643799,
"error": 0,
"success": 1,
"balance": "3946500.00",
"data": [
{
"number": "08577272xxxx",
"status_code": 1,
"status_message": "",
"balance_before": "3946850.00",
"balance_after": 3946500,
"cost": "350.00"
}
]
}
Example response (422):
{
"message": "Api key not found."
}
HTTP Request
POST wa/send-media
Body Parameters
Parameter | Type | Status | Description |
---|---|---|---|
api_key |
string | required | API server key. |
number |
string | required | to number user. |
caption |
string | required | text caption. |
file |
file | required | file message. |
Send URL
Used to send url messages
Example request:
curl -X POST \
"https://api.visimediatech.com/wa/send-url" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"api_key":"","number":"08577272xxxx","caption":"Hi, this is logo VMT","url":"https:\/\/visimediatech.com\/rapid\/gcm\/logo.png"}'
const url = new URL(
"https://api.visimediatech.com/wa/send-url"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"api_key": "",
"number": "08577272xxxx",
"caption": "Hi, this is logo VMT",
"url": "https:\/\/visimediatech.com\/rapid\/gcm\/logo.png"
}
fetch(url, {
method: "POST",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://api.visimediatech.com/wa/send-url',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
],
'json' => [
'api_key' => '',
'number' => '08577272xxxx',
'caption' => 'Hi, this is logo VMT',
'url' => 'https://visimediatech.com/rapid/gcm/logo.png',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://api.visimediatech.com/wa/send-url'
payload = {
"api_key": "",
"number": "08577272xxxx",
"caption": "Hi, this is logo VMT",
"url": "https:\/\/visimediatech.com\/rapid\/gcm\/logo.png"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
Example response (200):
{
"time_execution": 1.0617039203643799,
"error": 0,
"success": 1,
"balance": "3946500.00",
"data": [
{
"number": "08577272xxxx",
"status_code": 1,
"status_message": "",
"balance_before": "3946850.00",
"balance_after": 3946500,
"cost": "350.00"
}
]
}
Example response (422):
{
"message": "Api key not found."
}
HTTP Request
POST wa/send-url
Body Parameters
Parameter | Type | Status | Description |
---|---|---|---|
api_key |
string | required | API server key. |
number |
string | required | to number user. |
caption |
string | required | text caption. |
url |
string | required | url file. |