Adding contacts to a project list via API offers a faster and more efficient alternative to manual uploads. Instead of repeatedly uploading XLS or CSV, the API allows contacts to be automatically added to your Brightcall AI Agent or Dialer app project list in real-time. This automation saves time, reduces manual errors, and ensures your contact lists are always up-to-date, enabling seamless dialling and improved campaign efficiency. Follow this guide to learn how to set up contact imports via API for a streamlined workflow.
Follow the instruction below to learn how to set up contact imports via API for a streamlined workflow.
How to set up ?
Get the API key here: https://app.brightcall.ai/pages/general-settings
For all requests API key should be included as an
api-key
query parameter. E.g.: https://api.ipmaxi.convolo.ai/api/v2/projects?api-key=%your-api-key%Get a list of all projects through this endpoint: https://api.ipmaxi.leadcm.com/api/v2/projects Please note, that the power dialer project has a
type
parameter equal to 2. Alternatively, you can get one project through this endpoint: https://api.ipmaxi.convolo.ai/api/v2/project/{project_id}Get the project ID from the
id
property from the project payloadGet
phoneColumnId
,nameColumnId
andwebsiteColumnId
properties from project payloadGet project columns through this endpoint: https://api.ipmaxi.convolo.ai/api/v1/project-columns/{project_id}
Prepare contacts payload:
contacts
—Array of contacts. Each contact should include the following:
-id
with thenull
value
-data
: Array of tuples with column id and its value. Column id should be at0
index and the field value should be at1
indexaddContacts
— bool parameter. Iftrue
, contacts would be added to the project. Iffalse
contacts in the project would be replacedifDuplicates
—numeric value. it defines how duplicate contacts would be handled:
-2
— keep duplicates
-3
— discard duplicates
Payload example:{
"contacts": [
{
"data": [
[{column_id}, {column_value}]
],
"id": null
}
],
"addContacts": true,
"ifDuplicates": 1
}Send contact payload to this endpoint:
https://api.ipmaxi.convolo.ai/api/v1/project-contacts/{project_id} using aPUT
method