Contact Lists API
Open API playground All endpoints
Create and manage contacts and lists for calling campaigns and autodialing workflows.
Retrieve contact lists
GET/api/v2/integrations/contact-list/
Retrieve paginated contact lists for a user.
If a list_id is provided, returns that specific contact list; otherwise returns all contact lists owned by the user.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
list_id | query | string | null | Contact List ID (retrieves all lists of the user if not provided) |
page | query | integer | |
page_size | query | integer | |
email required | query | string | Email of the user |
Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example response (200)
{
"success": true,
"message": "string",
"data": {
"count": 0,
"next": "string",
"previous": "string",
"results": [
{
"id": 0,
"list_id": "string",
"title": "string",
"total_contacts": 0,
"assigned_contacts": 0,
"created_at": "string",
"updated_at": "string"
}
]
}
}Create a contact list
POST/api/v2/integrations/contact-list/
Create a new contact list for a user.
Accepts a title, user email, and a list of contacts. The contacts are created asynchronously.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
email | query | string | null | The email of Frejun User |
Request body
userrequiredstring | nullEmail of the user creating the contact list
titlerequiredstring | nullTitle of the contact list
contactsrequiredarray of object | nullList of contacts to be added to the contact list
contactsrequiredarray of object | nullList of contacts to be added to the contact list
contactrequiredstringPhone number of the contact without country code
namerequiredstringName of the contact
country_coderequiredstringCountry code of the contact
notesstring | nullNotes to add to the contact
custom_dataobject | nullCustom contact data (e.g., {"key":"value"}). If key = company_name, the value appears in the Chrome extension's incoming call popup.
Example request
{
"user": "string",
"title": "string",
"contacts": [
{
"contact": "string",
"name": "string",
"country_code": "string",
"notes": "string",
"custom_data": {}
}
]
}Responses
| Status | Description |
|---|---|
201 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example response (201)
{
"success": true,
"message": "string",
"contact_list_id": "string"
}Update a contact list
PATCH/api/v2/integrations/contact-list/
Update an existing contact list.
Supports adding and deleting contacts via enquiry operations. Changes are processed asynchronously.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
email | query | string | null | The email of Frejun User |
Request body
emailrequiredstring | nullEmail of the user who created the list
list_idrequiredstring | nullID of the contact list
enquiriesrequiredarray of objectList of contact operations to perform
enquiriesrequiredarray of objectList of contact operations to perform
contactrequiredstringPhone number of the contact without country code
namerequiredstringName of the contact
country_coderequiredstringCountry code of the contact
notesstring | nullNotes to add to the contact
custom_dataobject | nullCustom contact data (e.g., {"key":"value"}). If key = company_name, the value appears in the Chrome extension's incoming call popup.
operationrequired"add" | "delete"Operation to perform. add or delete
Example request
{
"email": "string",
"list_id": "string",
"enquiries": [
{
"contact": "string",
"name": "string",
"country_code": "string",
"notes": "string",
"custom_data": {},
"operation": "add"
}
]
}Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Example response (200)
{
"success": true,
"message": "string"
}Delete a contact list
DELETE/api/v2/integrations/contact-list/
Delete a contact list by list_id for the given user.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
list_id required | query | string | ID of the Contact List to delete |
email required | query | string | Email of the user |
Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
500 | Internal Server Error |
Example response (200)
{
"success": true,
"message": "string"
}Assign contacts
PATCH/api/v2/integrations/assign-contact/
Assign contacts from a contact list to a user (agent).
Matches the provided contact numbers within the specified list and creates agent assignments. Fails if any contact is already assigned.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
email | query | string | null | The email of Frejun User |
Request body
emailstring | nullEmail of the user to whom the contacts are being assigned or unassigned
list_idstring | nullID of the contact list from which contacts are being assigned or unassigned
contactsarray of string | nullList of contact phone numbers to assign or unassign (without country code)
Example request
{
"email": "string",
"list_id": "string",
"contacts": [
"string"
]
}Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example response (200)
{
"success": true,
"message": "string"
}Unassign contacts
PATCH/api/v2/integrations/unassign-contact/
Unassign contacts from a user (agent) in a contact list.
Removes agent assignments for the specified contact numbers within the given contact list.
Auth: Authorization header or Authorization: Bearer
Parameters
| Name | In | Type | Description |
|---|---|---|---|
email | query | string | null | The email of Frejun User |
Request body
emailstring | nullEmail of the user to whom the contacts are being assigned or unassigned
list_idstring | nullID of the contact list from which contacts are being assigned or unassigned
contactsarray of string | nullList of contact phone numbers to assign or unassign (without country code)
Example request
{
"email": "string",
"list_id": "string",
"contacts": [
"string"
]
}Responses
| Status | Description |
|---|---|
200 | Successful Response |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Server Error |
Example response (200)
{
"success": true,
"message": "string"
}