Create New Contact
curl --request POST \
--url https://app.fliqr.ai/api/contacts \
--header 'Content-Type: application/json' \
--header 'X-ACCESS-TOKEN: <api-key>' \
--data '
{
"phone": "+1234567890",
"email": "[email protected]",
"first_name": "John",
"last_name": "Smith",
"gender": "male",
"actions": [
{
"action": "add_tag",
"tag_name": "YOU_TAG_NAME"
},
{
"action": "set_field_value",
"field_name": "YOU_CUSTOM_FIELD_NAME",
"value": "ANY_VALUE"
},
{
"action": "send_flow",
"flow_id": 11111
}
]
}
'const options = {
method: 'POST',
headers: {'X-ACCESS-TOKEN': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phone: '+1234567890',
email: '[email protected]',
first_name: 'John',
last_name: 'Smith',
gender: 'male',
actions: [
{action: 'add_tag', tag_name: 'YOU_TAG_NAME'},
{
action: 'set_field_value',
field_name: 'YOU_CUSTOM_FIELD_NAME',
value: 'ANY_VALUE'
},
{action: 'send_flow', flow_id: 11111}
]
})
};
fetch('https://app.fliqr.ai/api/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.fliqr.ai/api/contacts"
payload = {
"phone": "+1234567890",
"email": "[email protected]",
"first_name": "John",
"last_name": "Smith",
"gender": "male",
"actions": [
{
"action": "add_tag",
"tag_name": "YOU_TAG_NAME"
},
{
"action": "set_field_value",
"field_name": "YOU_CUSTOM_FIELD_NAME",
"value": "ANY_VALUE"
},
{
"action": "send_flow",
"flow_id": 11111
}
]
}
headers = {
"X-ACCESS-TOKEN": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Contacts
Create new contact
Creates a new contact.
POST
/
contacts
Create New Contact
curl --request POST \
--url https://app.fliqr.ai/api/contacts \
--header 'Content-Type: application/json' \
--header 'X-ACCESS-TOKEN: <api-key>' \
--data '
{
"phone": "+1234567890",
"email": "[email protected]",
"first_name": "John",
"last_name": "Smith",
"gender": "male",
"actions": [
{
"action": "add_tag",
"tag_name": "YOU_TAG_NAME"
},
{
"action": "set_field_value",
"field_name": "YOU_CUSTOM_FIELD_NAME",
"value": "ANY_VALUE"
},
{
"action": "send_flow",
"flow_id": 11111
}
]
}
'const options = {
method: 'POST',
headers: {'X-ACCESS-TOKEN': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
phone: '+1234567890',
email: '[email protected]',
first_name: 'John',
last_name: 'Smith',
gender: 'male',
actions: [
{action: 'add_tag', tag_name: 'YOU_TAG_NAME'},
{
action: 'set_field_value',
field_name: 'YOU_CUSTOM_FIELD_NAME',
value: 'ANY_VALUE'
},
{action: 'send_flow', flow_id: 11111}
]
})
};
fetch('https://app.fliqr.ai/api/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.fliqr.ai/api/contacts"
payload = {
"phone": "+1234567890",
"email": "[email protected]",
"first_name": "John",
"last_name": "Smith",
"gender": "male",
"actions": [
{
"action": "add_tag",
"tag_name": "YOU_TAG_NAME"
},
{
"action": "set_field_value",
"field_name": "YOU_CUSTOM_FIELD_NAME",
"value": "ANY_VALUE"
},
{
"action": "send_flow",
"flow_id": 11111
}
]
}
headers = {
"X-ACCESS-TOKEN": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
API access token from your Fliqr AI dashboard (Settings → API). Send it in the X-ACCESS-TOKEN header on every request.
Body
application/json
Response
default
successful operation
Was this page helpful?
⌘I