Whatsapp Remote
HomeDocumentationAPI SpesificationRelease Notes
HomeDocumentationAPI SpesificationRelease Notes
  1. API Spesification
  • Comming Soon
  • Send Text
    POST
  • Send Location
    POST
  • Send Contacts
    POST
  • Send Image
    POST
  • Send Video
    POST
  • Send Gif
    POST
  • Send Voice
    POST
  • Send Audio
    POST
  • Send Sticker
    POST
  • Send Document
    POST
  1. API Spesification

Send Image

POST
/module/v1/message/send-image

Request

Query Params
device-secret
string 
optional
This key for sending by specific device, found key on the customer dashboard page at Device Menu (Detail -> Secret). Copy and Paste here!
Example:
{{device-secret}}
global-secret
string 
optional
This key for sending by random device, found key on the customer dashboard page at Device Menu (Detail -> Global Secret). Copy and Paste here!
Example:
{{global-secret}}
Header Params
x-device-secret
string 
optional
false
Example:
{{device-secret}}
x-global-secret
string 
optional
Example:
{{global-secret}}
Body Params application/json
to
string 
required
Message recipient ID. It can be a Whatsapp number or Chat ID
file
string 
required
File for send to message. You can use an image URL or base64 string, size 10MB
caption
string 
required
Text message to be sent. Can be text characters or emojis
Example
{
    "to": "6281234567890",
    "file": "https://static.whatspi.id/example/exampl-image.png",
    "caption": "Welcome back to WhatsPi"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/module/v1/message/send-image' \
--header 'Content-Type: application/json' \
--data-raw '{
    "to": "6281234567890",
    "file": "https://static.whatspi.id/example/exampl-image.png",
    "caption": "Welcome back to WhatsPi"
}'

Responses

🟢200OK
application/json
Body
success
boolean 
required
API response status if success or failed
message
string 
required
API response message
data
string  | integer  | boolean  | array  | object  | number  | null 
required
API response data
Example
{
    "success": true,
    "message": "Successfully",
    "data": "BAE505716AA91242"
}
🟠400Bad Request
🟠403Forbidden
🟠404Not Found
Previous
Send Contacts
Next
Send Video
Built with