V1 - Send Message
Send and receive messages, to single contacts per request, on channels connected to CosmoBots
Endpoint
POST https://api.cosmobots.io/messages/v1/sendAuthentication
Sending Message
Contact Object
ObjectSession Object
Desk Object
ObjectMessage Array [Object ]
Array [Object ]Message > Data (if type is Text)
Message > Data (if type is Buttons)
Message > Data (if type is Cards)
Message > Data (if type is Media)
Response Sync
Response Async
Examples of Request
Sending Text Destination: Bot
Destination: BotSending Text with Buttons Destination: Contact
Destination: ContactSending Audio Destination: Bot
Destination: BotSending Image Destination: Contact
Destination: ContactReceiving Message
Last updated