Create contact
Create a new contact in Aircall.
POST https://cotlet.dev/api/v1/aircall/contacts
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
| Name | Type | Description |
|---|---|---|
| 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 -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"}' result = client.call("aircall", "create_contact", {"phone":"+14155550142","first_name":"Priya","last_name":"Raman","company":"Raman Dental","email":"priya@example.com"}) const result = await cotlet.call('aircall', 'create_contact', {"phone":"+14155550142","first_name":"Priya","last_name":"Raman","company":"Raman Dental","email":"priya@example.com"}); cotlet call aircall create_contact --data '{"phone":"+14155550142","first_name":"Priya","last_name":"Raman","company":"Raman Dental","email":"priya@example.com"}' Example response
{
"contact_id": "ct_90118",
"created": true,
"name": "Priya Raman",
"company": "Raman Dental",
"phones": [
"+14155550142"
],
"emails": [
"priya@example.com"
]
}