API Documentation
Contact List ¶
Contact list
A Contact list represents a saved search performed on contacts. User can save this list to access the contacts that match criteria later. Each list is composed of four properties: attribute def, which is id for attribute definition on contact, this is the property that serach will be applied against; operator that can be one of ‘eq’ which stands for equality, ‘gte’ for greather than or equal, ‘lte’ for less than or equal, ‘like’ to perform a simple string search, ‘any’ to test if any of values matches contact attribute, ‘all’ to test if all values match contact attribute. Finally value is the actual value(s) that should be used in performing the search
Create a contact list ¶
Create a contact listPOST/contacts/lists
Example URI
POST /contacts/lists
Request
Body
{
"filters": [
{
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"value": "cool"
},
{
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"value": "great"
}
],
"args": {
"q": "Wow"
},
"name": "Wow list"
}Response
200Body
{
"code": "OK",
"data": {
"id": "36f90745-5446-4746-b910-3f2dcdffa0d7",
"created_at": 1765163453.805696,
"updated_at": 1765163453.805697,
"deleted_at": null,
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"updated_by": null,
"brand": "b3b539bd-9b9e-44bf-9191-3d0f12512d93",
"filters": [
{
"id": "e347a236-9fd7-4de1-8bd1-e9871a897c75",
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"operator": "eq",
"value": "cool",
"invert": false,
"type": "contact_list_filter"
},
{
"id": "4bd9cf27-9269-41b4-9a11-5f56c44c5159",
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"operator": "eq",
"value": "great",
"invert": false,
"type": "contact_list_filter"
}
],
"query": "Wow",
"args": {
"filter_type": "and",
"q": "Wow",
"crm_tasks": null,
"flows": null,
"assignees": null,
"type": "contact_list_args"
},
"name": "Wow list",
"is_editable": true,
"touch_freq": null,
"member_count": 0,
"type": "contact_list"
}
}Update a contact list ¶
Update a contact listPUT/contacts/lists/:id
Example URI
PUT /contacts/lists/:id
URI Parameters
- id
string(required) Example: 36f90745-5446-4746-b910-3f2dcdffa0d7
Request
Body
{
"id": "36f90745-5446-4746-b910-3f2dcdffa0d7",
"created_at": 1765163453.805696,
"deleted_at": null,
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"brand": "b3b539bd-9b9e-44bf-9191-3d0f12512d93",
"filters": [
{
"id": "e347a236-9fd7-4de1-8bd1-e9871a897c75",
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"operator": "eq",
"value": "cool",
"invert": false,
"type": "contact_list_filter"
},
{
"id": "4bd9cf27-9269-41b4-9a11-5f56c44c5159",
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"operator": "eq",
"value": "great",
"invert": false,
"type": "contact_list_filter"
}
],
"args": {
"q": "OMG",
"filter_type": "and"
},
"name": "Wow list",
"is_editable": true,
"touch_freq": null,
"member_count": 0,
"type": "contact_list"
}Response
200Body
{
"code": "OK",
"data": {
"id": "36f90745-5446-4746-b910-3f2dcdffa0d7",
"created_at": 1765163453.805696,
"updated_at": 1765163453.963083,
"deleted_at": null,
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"updated_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"brand": "b3b539bd-9b9e-44bf-9191-3d0f12512d93",
"filters": [
{
"id": "e347a236-9fd7-4de1-8bd1-e9871a897c75",
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"operator": "eq",
"value": "cool",
"invert": false,
"type": "contact_list_filter"
},
{
"id": "4bd9cf27-9269-41b4-9a11-5f56c44c5159",
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"operator": "eq",
"value": "great",
"invert": false,
"type": "contact_list_filter"
}
],
"query": "OMG",
"args": {
"filter_type": "and",
"q": "OMG",
"crm_tasks": null,
"flows": null,
"assignees": null,
"type": "contact_list_args"
},
"name": "Wow list",
"is_editable": true,
"touch_freq": null,
"member_count": 0,
"type": "contact_list"
}
}List all contact list for current user ¶
List all contact list for current userGET/contacts/lists
Example URI
GET /contacts/lists
Response
200Body
{
"code": "OK",
"data": [
{
"id": "5c95eb3c-1a83-42a9-b701-b0348519b102",
"created_at": 1765163453.244566,
"updated_at": 1765163453.244567,
"deleted_at": null,
"created_by": null,
"updated_by": null,
"brand": "b3b539bd-9b9e-44bf-9191-3d0f12512d93",
"filters": [
{
"id": "2e9629b0-52b2-406f-9771-c023fad3ccca",
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"operator": "eq",
"value": "Warm",
"invert": false,
"type": "contact_list_filter"
}
],
"query": null,
"args": {
"filter_type": "and",
"q": null,
"crm_tasks": null,
"flows": null,
"assignees": null,
"type": "contact_list_args"
},
"name": "Warm",
"is_editable": true,
"touch_freq": 60,
"member_count": 0,
"type": "contact_list"
},
{
"id": "cbbe498b-55b9-47c7-8ef8-8190a130ecfa",
"created_at": 1765163453.246222,
"updated_at": 1765163453.246222,
"deleted_at": null,
"created_by": null,
"updated_by": null,
"brand": "b3b539bd-9b9e-44bf-9191-3d0f12512d93",
"filters": [
{
"id": "063b63d5-7b21-4e53-b8ba-db237c95beb0",
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"operator": "eq",
"value": "Hot",
"invert": false,
"type": "contact_list_filter"
}
],
"query": null,
"args": {
"filter_type": "and",
"q": null,
"crm_tasks": null,
"flows": null,
"assignees": null,
"type": "contact_list_args"
},
"name": "Hot",
"is_editable": true,
"touch_freq": 30,
"member_count": 0,
"type": "contact_list"
},
{
"id": "d34de1ca-fe8b-4b51-9897-67ca2f0a12e2",
"created_at": 1765163453.249589,
"updated_at": 1765163453.249589,
"deleted_at": null,
"created_by": null,
"updated_by": null,
"brand": "b3b539bd-9b9e-44bf-9191-3d0f12512d93",
"filters": [
{
"id": "c2b942e0-577d-4496-b35b-44f317cabc79",
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"operator": "eq",
"value": "Past Client",
"invert": false,
"type": "contact_list_filter"
}
],
"query": null,
"args": {
"filter_type": "and",
"q": null,
"crm_tasks": null,
"flows": null,
"assignees": null,
"type": "contact_list_args"
},
"name": "Past Client",
"is_editable": true,
"touch_freq": null,
"member_count": 0,
"type": "contact_list"
},
{
"id": "4586cce5-257d-44a4-8813-11cd9f841abd",
"created_at": 1765163453.252472,
"updated_at": 1765163453.252472,
"deleted_at": null,
"created_by": null,
"updated_by": null,
"brand": "b3b539bd-9b9e-44bf-9191-3d0f12512d93",
"filters": [
{
"id": "844ec022-b343-4068-b691-679321c71d23",
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"operator": "eq",
"value": "IOSAddressBook",
"invert": false,
"type": "contact_list_filter"
}
],
"query": null,
"args": {
"filter_type": "and",
"q": null,
"crm_tasks": null,
"flows": null,
"assignees": null,
"type": "contact_list_args"
},
"name": "iOS",
"is_editable": true,
"touch_freq": null,
"member_count": 0,
"type": "contact_list"
},
{
"id": "36f90745-5446-4746-b910-3f2dcdffa0d7",
"created_at": 1765163453.805696,
"updated_at": 1765163453.963083,
"deleted_at": null,
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"updated_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"brand": "b3b539bd-9b9e-44bf-9191-3d0f12512d93",
"filters": [
{
"id": "e347a236-9fd7-4de1-8bd1-e9871a897c75",
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"operator": "eq",
"value": "cool",
"invert": false,
"type": "contact_list_filter"
},
{
"id": "4bd9cf27-9269-41b4-9a11-5f56c44c5159",
"attribute_def": "5b3c994e-7569-4df8-b8db-f37421a684f7",
"operator": "eq",
"value": "great",
"invert": false,
"type": "contact_list_filter"
}
],
"query": "OMG",
"args": {
"filter_type": "and",
"q": "OMG",
"crm_tasks": null,
"flows": null,
"assignees": null,
"type": "contact_list_args"
},
"name": "Wow list",
"is_editable": true,
"touch_freq": null,
"member_count": 0,
"type": "contact_list"
},
{
"id": "142a60e8-8270-460e-8e38-65adb2fbb70e",
"created_at": 1765163453.882616,
"updated_at": 1765163453.882617,
"deleted_at": null,
"created_by": "80a227b2-29a0-11e7-b636-e4a7a08e15d4",
"updated_by": null,
"brand": "b3b539bd-9b9e-44bf-9191-3d0f12512d93",
"filters": null,
"query": null,
"args": {
"filter_type": "and",
"q": null,
"crm_tasks": null,
"flows": null,
"assignees": null,
"type": "contact_list_args"
},
"name": "Empty List",
"is_editable": true,
"touch_freq": null,
"member_count": 0,
"type": "contact_list"
}
],
"info": {
"count": 6,
"total": 0
}
}Delete contact list ¶
Delete contact listDELETE/contacts/lists/:id
Example URI
DELETE /contacts/lists/:id
URI Parameters
- id
string(required) Example: 36f90745-5446-4746-b910-3f2dcdffa0d7
Response
204List all available contact search filters that can be appiled to contacts ¶
List all available contact search filters that can be appiled to contactsGET/contacts/lists/options
Example URI
GET /contacts/lists/options
Response
200Body
{
"code": "OK",
"data": {
"tag": {
"values": [],
"operator": "all"
}
}
}