Retrieve a list of contacts with filtering and pagination
Parameter | Type | Description |
---|---|---|
X-API-KEY | string | Formation API Key (required) |
Parameter | Type | Required | Description |
---|---|---|---|
company_id | string | Yes | Company ID to filter contacts |
skip | string | No | Number of records to skip (pagination) |
limit | string | No | Number of records to return (pagination) |
search | string | No | Search term to filter contacts |
sort | string | No | Field to sort by |
order | string | No | Sort order: “asc” or “desc” |
created_at | string | No | Created at filter |
created_at_value | string | No | Created at value |
end_date | string | No | End date filter |
GET /contacts?company_id=64b8f1a2e4b0c8d9f0123456
GET /contacts?company_id=64b8f1a2e4b0c8d9f0123456&skip=0&limit=10
GET /contacts?company_id=64b8f1a2e4b0c8d9f0123456&search=john
GET /contacts?company_id=64b8f1a2e4b0c8d9f0123456&sort=created_at&order=desc
Parameter | Type | Description |
---|---|---|
success | boolean | Indicates if the operation was successful |
message | string | Additional information about the operation |
data | object | Response data for successful requests |
data.contacts | array | Array of contact objects |
data.total | integer | Total number of contacts |
data.skip | integer | Number of records skipped |
data.limit | integer | Number of records returned |
Field | Type | Description |
---|---|---|
id | string | Unique identifier for the contact |
created_at | integer | Creation timestamp |
updated_at | integer | Last update timestamp |
type | string | Contact type (“customer” or “vendor”) |
status | string | Contact status |
full_name | string | Full name of the contact |
string | Email address | |
description | string | Contact description |
cc_emails | array | CC email addresses |
bcc_emails | array | BCC email addresses |
billing | object | Billing information |
Formation API key for authentication.
Company ID
Number of records to skip
Number of records to return
Search term
Sort field
Sort order (asc/desc)
asc
, desc
Created at filter
Created at value
End date filter
Contacts retrieved successfully
The response is of type object
.