Send File
curl --request POST \
--url https://app.fliqr.ai/api/contacts/{contact_id}/send/file \
--header 'Content-Type: application/json' \
--header 'X-ACCESS-TOKEN: <api-key>' \
--data '
{
"url": "https://...",
"type": "image",
"channel": "messenger"
}
'const options = {
method: 'POST',
headers: {'X-ACCESS-TOKEN': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://...', type: 'image', channel: 'messenger'})
};
fetch('https://app.fliqr.ai/api/contacts/{contact_id}/send/file', 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/file"
payload = {
"url": "https://...",
"type": "image",
"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 file
Send file
POST
/
contacts
/
{contact_id}
/
send
/
file
Send File
curl --request POST \
--url https://app.fliqr.ai/api/contacts/{contact_id}/send/file \
--header 'Content-Type: application/json' \
--header 'X-ACCESS-TOKEN: <api-key>' \
--data '
{
"url": "https://...",
"type": "image",
"channel": "messenger"
}
'const options = {
method: 'POST',
headers: {'X-ACCESS-TOKEN': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: 'https://...', type: 'image', channel: 'messenger'})
};
fetch('https://app.fliqr.ai/api/contacts/{contact_id}/send/file', 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/file"
payload = {
"url": "https://...",
"type": "image",
"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
Response
200 - application/json
successful operation
Was this page helpful?
⌘I