Messaging
Send A Message
Changed onTo send a text message to a given telephone number or a contact
- widget_id: Widget ID to be used for initiating the call. It must be connected to WhatsApp or SMS.
- to: phone number of the recipient. should contain the country code. For ex: 16501111234
- contact_id: contact ID to whom the message is to be sent. (either to or contact_id must be given)
- message: text message to be sent.
- start_new_conversation: whether to start a new conversation or pick the latest.
post/api/v1/messaging/{widget_id}
Request
- Base URLhttps://api.insighto.ai (the document declares no server; this is the origin it was published from)
- Auth
- API key in query parameter api_key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
widget_idstring uuid required
Request body
Example request
{
"message": "Hi, how are you?",
"start_new_conversation": true,
"to": "919810012345"
}Response
Successful Response
unknown required
Changes
- info
added the new optional request property
- info