get https://api-smartflo.tatateleservices.com/v1/contacts
This API allows you to fetch the list of all contacts in contact group.
Sample Request
curl --request GET \
--url https://api-smartflo.tatateleservices.com/v1/contacts \
--header 'accept: application/json'
š Important!
Before we begin, note that the * sign denotes the mandatory variables in each table.
Request Variables (Query Params)
The following parameter is required to fetch the list of all contacts in contact groups.
Variable Name | Description | Data Type |
---|---|---|
contact_id | Unique id of the contact. | string |
contact_group_id | Unique id of the contact group. | string |
updated_after | Time when it was last updated in the records. | string |
limit | Number of records to be fetched. | string |
page | Page number of the record. | string |
Sample Response
{
"page": 1,
"size": 10,
"limit": 10,
"results": [
{
"id": 59848243,
"contact_group_id": 39663,
"contact_group_name": "dd contact group",
"phone_number": "+91xxxxxx2999",
"name": "TESTER",
"email_id": null,
"address": null,
"company_name": null,
"custom_fields": [
{
"name": "Alternate Phone Number",
"value": null
}
],
"created_at": "2024-05-08T12:45:03+0000",
"updated_at": "2024-05-08T12:45:03+0000",
"deleted_at": null
},
Response Variables
The response returned is as following:
Variable Name | Description | Data Type |
---|---|---|
page | Index of the page. | Integer. |
size | Size of the record. | |
limit | Number of records fetched. | Integer |
results[].id | Unique ID of the contact. | String |
results[].contact_group_id | Unique ID of the contact group. | String |
results[].contact_group_name | Name of the contact group. | String |
results[].phone_number | Phone number of the contact in the contact group. | String |
results[].name | Name of the contact. | String |
results[].email_id | Email ID of the contact. | String |
results[].address | Address of the contact. | String |
results[].company_name | Company Name of the contact. | String |
results[].custom_fields[] | If any, custom field is mapped with the contact in the contact group. | Object |
results[].created_at | Time stamp when it was created. | String |
results[].updated_at | Time stamp when it was last updated. | String |
results[].deleted_at | Time stamp when it was deleted from the records, if deleted. | String |