Skip to content

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

NameInTypeDescription
list_idquerystring | null

Contact List ID (retrieves all lists of the user if not provided)

pagequeryinteger
page_sizequeryinteger
email requiredquerystring

Email of the user

Responses

StatusDescription
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

NameInTypeDescription
emailquerystring | null

The email of Frejun User

Request body

userrequiredstring | null

Email of the user creating the contact list

titlerequiredstring | null

Title of the contact list

contactsrequiredarray of object | null

List of contacts to be added to the contact list

contactrequiredstring

Phone number of the contact without country code

namerequiredstring

Name of the contact

country_coderequiredstring

Country code of the contact

notesstring | null

Notes to add to the contact

custom_dataobject | null

Custom 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

StatusDescription
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

NameInTypeDescription
emailquerystring | null

The email of Frejun User

Request body

emailrequiredstring | null

Email of the user who created the list

list_idrequiredstring | null

ID of the contact list

enquiriesrequiredarray of object

List of contact operations to perform

contactrequiredstring

Phone number of the contact without country code

namerequiredstring

Name of the contact

country_coderequiredstring

Country code of the contact

notesstring | null

Notes to add to the contact

custom_dataobject | null

Custom 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

StatusDescription
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

NameInTypeDescription
list_id requiredquerystring

ID of the Contact List to delete

email requiredquerystring

Email of the user

Responses

StatusDescription
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

NameInTypeDescription
emailquerystring | null

The email of Frejun User

Request body

emailstring | null

Email of the user to whom the contacts are being assigned or unassigned

list_idstring | null

ID of the contact list from which contacts are being assigned or unassigned

contactsarray of string | null

List of contact phone numbers to assign or unassign (without country code)

Example request
{
  "email": "string",
  "list_id": "string",
  "contacts": [
    "string"
  ]
}

Responses

StatusDescription
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

NameInTypeDescription
emailquerystring | null

The email of Frejun User

Request body

emailstring | null

Email of the user to whom the contacts are being assigned or unassigned

list_idstring | null

ID of the contact list from which contacts are being assigned or unassigned

contactsarray of string | null

List of contact phone numbers to assign or unassign (without country code)

Example request
{
  "email": "string",
  "list_id": "string",
  "contacts": [
    "string"
  ]
}

Responses

StatusDescription
200

Successful Response

400

Bad Request

401

Unauthorized

403

Forbidden

500

Internal Server Error

Example response (200)
{
  "success": true,
  "message": "string"
}