Send Text Message
curl --request POST \
--url https://app.fliqr.ai/api/contacts/{contact_id}/send/text \
--header 'Content-Type: application/json' \
--header 'X-ACCESS-TOKEN: <api-key>' \
--data '
{
"text": "This is a text message",
"channel": "messenger"
}
'const options = {
method: 'POST',
headers: {'X-ACCESS-TOKEN': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: 'This is a text message', channel: 'messenger'})
};
fetch('https://app.fliqr.ai/api/contacts/{contact_id}/send/text', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.fliqr.ai/api/contacts/{contact_id}/send/text"
payload = {
"text": "This is a text message",
"channel": "messenger"
}
headers = {
"X-ACCESS-TOKEN": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}Contacts
Send text message
Send text message to the contact
POST
/
contacts
/
{contact_id}
/
send
/
text
Send Text Message
curl --request POST \
--url https://app.fliqr.ai/api/contacts/{contact_id}/send/text \
--header 'Content-Type: application/json' \
--header 'X-ACCESS-TOKEN: <api-key>' \
--data '
{
"text": "This is a text message",
"channel": "messenger"
}
'const options = {
method: 'POST',
headers: {'X-ACCESS-TOKEN': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: 'This is a text message', channel: 'messenger'})
};
fetch('https://app.fliqr.ai/api/contacts/{contact_id}/send/text', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.fliqr.ai/api/contacts/{contact_id}/send/text"
payload = {
"text": "This is a text message",
"channel": "messenger"
}
headers = {
"X-ACCESS-TOKEN": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}Authorizations
API access token from your Fliqr AI dashboard (Settings → API). Send it in the X-ACCESS-TOKEN header on every request.
Path Parameters
Body
application/json
Available options:
messenger, whatsapp, sms, webchat, telegram, instagram, viber, omnichannel Response
200 - application/json
successful operation
Was this page helpful?
⌘I