Contact Lists
Retrieve Contact Lists
Section titled “Retrieve Contact Lists”Retrieve all the contact lists associated with the logged in user.
GET /integrations/contact-list/
Headers
| Name | Value |
|---|---|
| Authorization | Bearer Access Token |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| list_id | string | No | Contact List ID (retrieves all lists of the user if not provided) |
| page | integer | No | |
| page_size | integer | No | |
| string | Yes | Email of the user |
Response
{ "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 Contact List
Section titled “Create Contact List”Create a new contact list.
POST /integrations/contact-list/
Headers
| Name | Value |
|---|---|
| Authorization | Bearer Access Token |
| Content-Type | application/json |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| string | No | The email of Frejun User |
Payload
userrequiredEmail of the user creating the contact list
titlerequiredTitle of the contact list
contactsrequiredarray of objectList of contacts to be added to the contact list
contactsrequiredList of contacts to be added to the contact list
contactrequiredPhone number of the contact without country code
namerequiredName of the contact
country_coderequiredCountry code of the contact
notesNotes to add to the contact
custom_dataCustom contact data (e.g., {"key":"value"}). If key = company_name, the value appears in the Chrome extension's incoming call popup.
Response
{ "success": true, "message": "string", "contact_list_id": "string"}Update Contact List
Section titled “Update Contact List”Update an existing contact list.
PATCH /integrations/contact-list/
Headers
| Name | Value |
|---|---|
| Authorization | Bearer Access Token |
| Content-Type | application/json |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| string | No | The email of Frejun User |
Payload
emailrequiredEmail of the user who created the list
list_idrequiredID of the contact list
enquiriesrequiredarray of objectList of contact operations to perform
enquiriesrequiredList of contact operations to perform
contactrequiredPhone number of the contact without country code
namerequiredName of the contact
country_coderequiredCountry code of the contact
notesNotes to add to the contact
custom_dataCustom contact data (e.g., {"key":"value"}). If key = company_name, the value appears in the Chrome extension's incoming call popup.
operationrequiredadd | delete)Operation to perform. add or delete
Response
{ "success": true, "message": "string"}Delete Contact List
Section titled “Delete Contact List”Delete a contact list.
DELETE /integrations/contact-list/
Headers
| Name | Value |
|---|---|
| Authorization | Bearer Access Token |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| list_id | string | Yes | ID of the Contact List to delete |
| string | Yes | Email of the user |
Response
{ "success": true, "message": "string"}Assign Contacts
Section titled “Assign Contacts”Assign contacts to a user.
PATCH /integrations/assign-contact/
Headers
| Name | Value |
|---|---|
| Authorization | Bearer Access Token |
| Content-Type | application/json |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| string | No | The email of Frejun User |
Payload
emailEmail of the user to whom the contacts are being assigned or unassigned
list_idID of the contact list from which contacts are being assigned or unassigned
contactsList of contact phone numbers to assign or unassign (without country code)
Response
{ "success": true, "message": "string"}Unassign Contacts
Section titled “Unassign Contacts”Unassign contacts from a user.
PATCH /integrations/unassign-contact/
Headers
| Name | Value |
|---|---|
| Authorization | Bearer Access Token |
| Content-Type | application/json |
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| string | No | The email of Frejun User |
Payload
emailEmail of the user to whom the contacts are being assigned or unassigned
list_idID of the contact list from which contacts are being assigned or unassigned
contactsList of contact phone numbers to assign or unassign (without country code)
Response
{ "success": true, "message": "string"}