JSON messages
Now it is possible to send more types of messages from our server api, you have the possibility to send buttons, TemplateButtons, Lists, VCard and much more using our REST API
you need replace "sitedomain.com" with our domain
No Media Messages
This section shows the documentation to be able to send messages without media.
POSTJSON: Send Simple Text
https://sitedomain.com/api/send.php?instance_id=62E2XXXXXXXXX&access_token=fda64a915efXXXXXXXXXXXXXXXXXXXX&type=json&number=521238XXXXXXX
You can send simple text with a json format.
PARAMS
instance_id
access_token
type
number
Bodyraw (json)
Example Request
Simple Text
Example Response
No response headers
This request doesn't return any response headers
POSTJSON: Send Location
https://sitedomain.com/api/send.php?instance_id=62E2XXXXXXXXX&access_token=fda64a915efXXXXXXXXXXXXXXXXXXXX&type=json&number=521238XXXXXXX
You can send a location message with a json format.
To format coordinates so they work on Google Maps, use decimal degrees in the following format:
PARAMS
instance_id
access_token
type
number
Bodyraw (json)
Example Request
Location
Example Response
No response headers
This request doesn't return any response headers
POSTJSON: Send vCard
https://sitedomain.com/api/send.php?instance_id=62E2XXXXXXXXX&access_token=fda64a915efXXXXXXXXXXXXXXXXXXXX&type=json&number=521238XXXXXXX
Now can send a vCard message with a json format.
the vCard String is composed by next properties:
is needed use \n for new lines, acoording to the json format for string:
PARAMS
instance_id
access_token
type
number
Bodyraw (json)
Example Request
vCard
Example Response
No response headers
This request doesn't return any response headers