Create contact

Create a new contact in Aircall.

POST https://cotlet.dev/api/v1/aircall/contacts

write Confirm

Creates a contact as Contacts > Add > Create new contact does. Aircall checks for a contact with the same name or phone number; on a match the tool creates nothing and returns the existing contact. Emojis are removed on save, a contact holds up to 20 extra phone numbers and emails, and notes take up to 30,000 characters. Deleting a contact is an admin action in Aircall, so a wrong one is not undone by a second call. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: create_contact
NameTypeDescription
phone string required string Phone number in international format.
first_name string string First name.
last_name string string Last name.
company string string Company name.
email string string Email address.
notes string string Notes, up to 30,000 characters.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/aircall/contacts \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone":"+14155550142","first_name":"Priya","last_name":"Raman","company":"Raman Dental","email":"priya@example.com"}'
Python
result = client.call("aircall", "create_contact", {"phone":"+14155550142","first_name":"Priya","last_name":"Raman","company":"Raman Dental","email":"priya@example.com"})
Node.js
const result = await cotlet.call('aircall', 'create_contact', {"phone":"+14155550142","first_name":"Priya","last_name":"Raman","company":"Raman Dental","email":"priya@example.com"});
CLI
cotlet call aircall create_contact --data '{"phone":"+14155550142","first_name":"Priya","last_name":"Raman","company":"Raman Dental","email":"priya@example.com"}'

Example response

JSON

{
  "contact_id": "ct_90118",
  "created": true,
  "name": "Priya Raman",
  "company": "Raman Dental",
  "phones": [
    "+14155550142"
  ],
  "emails": [
    "priya@example.com"
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.