Skip to content

Contact Lists

Retrieve all the contact lists associated with the logged in user.

GET /integrations/contact-list/

Headers

NameValue
AuthorizationBearer Access Token

Query Parameters

NameTypeRequiredDescription
list_idstringNoContact List ID (retrieves all lists of the user if not provided)
pageintegerNo
page_sizeintegerNo
emailstringYesEmail 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 a new contact list.

POST /integrations/contact-list/

Headers

NameValue
AuthorizationBearer Access Token
Content-Typeapplication/json

Query Parameters

NameTypeRequiredDescription
emailstringNoThe email of Frejun User

Payload

userrequired
string

Email of the user creating the contact list

titlerequired
string

Title of the contact list

contactsrequired
array of object

List of contacts to be added to the contact list

Array [
contactrequired
string

Phone number of the contact without country code

namerequired
string

Name of the contact

country_coderequired
string

Country code of the contact

notes
string

Notes to add to the contact

custom_data
object

Custom 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 an existing contact list.

PATCH /integrations/contact-list/

Headers

NameValue
AuthorizationBearer Access Token
Content-Typeapplication/json

Query Parameters

NameTypeRequiredDescription
emailstringNoThe email of Frejun User

Payload

emailrequired
string

Email of the user who created the list

list_idrequired
string

ID of the contact list

enquiriesrequired
array of object

List of contact operations to perform

Array [
contactrequired
string

Phone number of the contact without country code

namerequired
string

Name of the contact

country_coderequired
string

Country code of the contact

notes
string

Notes to add to the contact

custom_data
object

Custom contact data (e.g., {"key":"value"}). If key = company_name, the value appears in the Chrome extension's incoming call popup.

operationrequired
string (add | delete)

Operation to perform. add or delete

]

Response

{
"success": true,
"message": "string"
}

Delete a contact list.

DELETE /integrations/contact-list/

Headers

NameValue
AuthorizationBearer Access Token

Query Parameters

NameTypeRequiredDescription
list_idstringYesID of the Contact List to delete
emailstringYesEmail of the user

Response

{
"success": true,
"message": "string"
}

Assign contacts to a user.

PATCH /integrations/assign-contact/

Headers

NameValue
AuthorizationBearer Access Token
Content-Typeapplication/json

Query Parameters

NameTypeRequiredDescription
emailstringNoThe email of Frejun User

Payload

email
string

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

list_id
string

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

contacts
array of string

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

Response

{
"success": true,
"message": "string"
}

Unassign contacts from a user.

PATCH /integrations/unassign-contact/

Headers

NameValue
AuthorizationBearer Access Token
Content-Typeapplication/json

Query Parameters

NameTypeRequiredDescription
emailstringNoThe email of Frejun User

Payload

email
string

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

list_id
string

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

contacts
array of string

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

Response

{
"success": true,
"message": "string"
}