Get started

MangoWA is a WhatsApp API gateway service for sending and receiving messages, notifications, schedulers, reminders, group messages, tracking and chat with simple integration for your business, Our API is designed to be very easy to use and accessible to everyone, no matter what programming language or framework you use

To use this API, you need an API key: https://admin.mangospot.net
Please contact us at support@mangospot.net to get your own API key.

Authentication

1. Start Device

To get characters you need to make a POST call to the following url :
POST: https://wa.mangospot.net/start/{INSTANCE}

Parameters

Field Type Description
Key String Your API Key
Content-Type String application/json
{
    "status": true,
    "message": "success",
    "data": "Start Device"
}               

2. Stop Device

To get characters you need to make a DELETE call to the following url :
DELETE: https://wa.mangospot.net/stop/{INSTANCE}

Parameters

Field Type Description
Key String Your API Key
Content-Type String application/json
{
    "status": true,
    "message": "success",
    "data": "Stop Device"
}               

3. QR Code

To get characters you need to make a GET call to the following url :
GET: https://wa.mangospot.net/qr/{INSTANCE}

Parameters

Field Type Description
Key String Your API Key
Content-Type String application/json
{
    "status": true,
    "message": "success",
    "data": "base64"
}               

4. STATUS

To get characters you need to make a GET call to the following url :
GET: https://wa.mangospot.net/auth/{INSTANCE}

Parameters

Field Type Description
Key String Your API Key
Content-Type String application/json
{
    "status": true,
    "message": "success",
    "data": "CONNECTED"
}

Chat Message

1. List Message

To get characters you need to make a GET call to the following url :
GET: https://wa.mangospot.net/chats/{INSTANCE}

Parameters

Field Type Description
Key String Your API Key
Content-Type String application/json
{
    "status": true,
    "message": "success",
    "data": [JSON]
}               

2. Detail Message

To get characters you need to make a GET call to the following url :
GET: https://wa.mangospot.net/chat/{INSTANCE}

Parameters

Field Type Description
Key String Your API Key
Content-Type String application/json

Body

Field Type Description
phone Integer ex: 6281234567890
{
    "status": true,
    "message": "success",
    "image": "URL Image",
    "data": [JSON]
}               

Send Message

1. Text

To get characters you need to make a POST call to the following url :
POST: https://wa.mangospot.net/sendMessage/{INSTANCE}

Parameters

Field Type Description
Key String Your API Key
Content-Type String application/x-www-form-urlencoded

Body

Field Type Description
phone Integer ex: 6281234567890
message String Text Messages
{
    "status": true,
    "message": "success",
    "data": [JSON]
}               

2. Image

To get characters you need to make a POST call to the following url :
POST: https://wa.mangospot.net/sendImage/{INSTANCE}

Parameters

Field Type Description
Key String Your API Key
Content-Type String multipart/form-data

Body

Field Type Description
phone Integer ex: 6281234567890
image Base64 JPG, JPEG, PNG
caption String Text Message
{
    "status": true,
    "message": "success",
    "data": [JSON]
}               

3. Media

To get characters you need to make a POST call to the following url :
POST: https://wa.mangospot.net/sendMedia/{INSTANCE}

Parameters

Field Type Description
Key String Your API Key
Content-Type String multipart/form-data

Body

Field Type Description
phone Integer ex: 6281234567890
media Base64 PDF, XLS, ZIP, etc
filename String Name File
{
    "status": true,
    "message": "success",
    "data": [JSON]
}               

4. Location

To get characters you need to make a POST call to the following url :
POST: https://wa.mangospot.net/sendLocation/{INSTANCE}

Parameters

Field Type Description
Key String Your API Key
Content-Type String application/x-www-form-urlencoded

Body

Field Type Description
phone Integer ex: 6281234567890
lat Integer Latitude Number
lng Integer Longitude Number
address String Text Address
{
    "status": true,
    "message": "success",
    "data": [JSON]
}               

Contacts

1. List Contact

To get characters you need to make a GET call to the following url :
GET: https://wa.mangospot.net/contacts/{INSTANCE}

Parameters

Field Type Description
Key String Your API Key
Content-Type String application/json
{
    "status": true,
    "message": "success",
    "data": [JSON]
}               

2. Detail Contact

To get characters you need to make a GET call to the following url :
GET: https://wa.mangospot.net/contact/{INSTANCE}

Parameters

Field Type Description
Key String Your API Key
Content-Type String application/json

Body

Field Type Description
phone Integer ex: 6281234567890
{
    "status": true,
    "message": "success",
    "image": "URL Image",
    "data": [JSON]
}               

Socket IO

Here is an example using Javascript

socket = io('https://wa.mangospot.net', {
    secure: true,
    transports: ['websocket', 'polling', 'flashsocket'],
    auth: {
        "Key": Your API Key,
        "Code": Your Instance
    }
});

Response

Type Description
qr QR Code
ready Device Ready
messages New Message
authenticated Device Authentication
disconnected Device Disconnect
{
    "status": true,
    "message": "success",
    "data": [JSON]
}