Get Contacts
Overview
This endpoint retrieves a list of contacts associated with the authenticated user’s company.Endpoint Details
- URL:
/contact
- Method:
GET
- Authentication: Required (
API KEY
)
Request Headers
Header | Value | Description |
---|---|---|
Authorization | Bearer <api_key> | Your API KEY |
Example Request
Response
Success Response
- Status Code:
200 OK
Error Response
- Status Code:
200 OK
(with error message)
Response Fields
Thedata
object represents a contact and has the following structure:
Field | Type | Description |
---|---|---|
id | string | The unique identifier for the contact (UUID). |
company_id | string | The unique identifier for the company associated with the contact(UUID). |
firstname | string | The first name of the contact. |
lastname | string | The last name of the contact. |
phone_number | string | The phone number of the contact. |
metadata | object | Additional metadata associated with the contact. |
number_country_code | string | The country code for the phone number. |
last_call_status | string | The status of the last call made to the contact (e.g., busy, unreachable, in-progress, picked-up, no-answer). |
last_call_at | string | The timestamp of the last call made to the contact. |
last_call_duration | integer | The duration of the last call in seconds. |
last_call_feedback | string | Feedback from the last call. |
tag_name | string | The tag associated with the contact. |
category_name | string | The category associated with the contact. |
notes | string | Additional notes or description for the contact. |
created_at | string | Timestamp when the campaign was created. |
updated_at | string | Timestamp when the campaign was last updated. |
campaign_id | string | The unique identifier for the campaign associated with the contact. |
status | string | The current status of the contact (e.g., active, inactive). |