1. Get the API key here: https://app.convolo.ai/pages/general-settings
2. For all requests API key should be included as an api-key
query parameter. E.g.: https://api.ipmaxi.leadcm.com/api/v2/projects?api-key=%your-api-key%
3. 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.leadcm.com/api/v2/project/{project_id}
4. Get the project ID from the id
property from the project payload
5. Get phoneColumnId
, nameColumnId
and websiteColumnId
properties from project payload
6. Get project columns through this endpoint: https://api.ipmaxi.leadcm.com/api/v1/project-columns/{project_id}
7. Prepare contacts payload:
contacts
—Array of contacts. Each contact should include:id
with thenull
valuedata
: Array of tuples with column id and its value. Column id should be at0
index and the field value should be at1
index
addContacts
— 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 duplicates3
— discard duplicates
Payload example:
{
"contacts": [
{
"data": [
[{column_id}, {column_value}]
],
"id": null
}
],
"addContacts": true,
"ifDuplicates": 1
}
8. Send contact payload to this endpoint: https://api.ipmaxi.leadcm.com/api/v1/project-contacts/{project_id}
using PUT
method