Send a message
Send a text or media message to a chat
The chat_id for an individual chat is of the following format: (country_code + phone_number + @c.us). e.g. The chat_id for +91 90043 89567 is 919004389372@c.us
For a group chat, you need to fetch the chat_id (it will end in @g.us). You can fetch this in the settings sidepanel on Periskope (or by right-clicking on any chat and copying the id)
Returns sent_message_id
for the message. This can be used to get message status using Get Message By ID API
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token> is your apiKey
generated in Periskope API settings.
Headers
Organisation phone number(with country code) and without any spaces or special characters.
e.g. 9190043XXXXX
Body
Message ID of the quoted message which is attached to this reply
e.g. true_120363280319442422@g.us_3EB041BB2CBB36D5E1A934_9190043XXXXX@c.us
Text message to be sent.
The chat_id for an individual chat is of the following format: (country_code + phone_number + @c.us). e.g. The chat_id for +91 90043 89567 is 919004389372@c.us
For a group chat, you need to fetch the chat_id (it will end in @g.us). You can fetch this in the settings sidepanel on Periskope (or by right-clicking on any chat and copying the id)
Response
Sent message ID for the message
Was this page helpful?