curl --request GET \
--url https://api.clemta.com/contacts{
"success": true,
"message": "<string>",
"data": {
"contacts": [
{
"id": "<string>",
"created_at": 123,
"updated_at": 123,
"type": "<string>",
"status": "<string>",
"full_name": "<string>",
"email": "<string>",
"description": "<string>",
"cc_emails": [
{}
],
"bcc_emails": [
{}
],
"billing": {}
}
],
"total": 123
}
}Retrieves a list of contacts for a company with optional filtering and pagination
curl --request GET \
--url https://api.clemta.com/contacts{
"success": true,
"message": "<string>",
"data": {
"contacts": [
{
"id": "<string>",
"created_at": 123,
"updated_at": 123,
"type": "<string>",
"status": "<string>",
"full_name": "<string>",
"email": "<string>",
"description": "<string>",
"cc_emails": [
{}
],
"bcc_emails": [
{}
],
"billing": {}
}
],
"total": 123
}
}X-API-Key: your_api_key_here
full_name, email, created_at).asc (ascending) or desc (descending).gt, lt, eq).Show Data Properties
Show Contact Object
customer or vendor).| Code | Description |
|---|---|
| 200 | Contacts retrieved successfully |
| 400 | Invalid request |
| 401 | Unauthorized - Invalid or missing API key |
| 404 | Company not found |
| 500 | Internal server error |
{
"success": false,
"message": "Invalid request",
"data": null,
"error": {
"code": "INVALID_REQUEST",
"details": "company_id is required"
}
}
curl -X GET "https://api.clemta.com/contacts?company_id=64b8f1a2e4b0c8d9f0123456&limit=10&skip=0&sort=full_name&order=asc" \
-H "X-API-Key: your_api_key_here"
{
"success": true,
"message": "Contacts retrieved successfully",
"data": {
"contacts": [
{
"id": "64b8f1a2e4b0c8d9f0123456",
"created_at": 1640995200,
"updated_at": 1640995200,
"type": "customer",
"status": "active",
"full_name": "John Doe",
"email": "[email protected]",
"description": "Primary contact for the company",
"cc_emails": ["[email protected]"],
"bcc_emails": [],
"billing": {
"email": "[email protected]",
"phone": "1234567890",
"phone_code": "+1",
"iso_code": "US",
"country": "United States",
"address_1": "123 Main Street",
"postal_code": "12345",
"state": "CA"
}
},
{
"id": "64b8f1a2e4b0c8d9f0123457",
"created_at": 1641081600,
"updated_at": 1641081600,
"type": "vendor",
"status": "active",
"full_name": "Jane Smith",
"email": "[email protected]",
"description": "Office supplies vendor",
"cc_emails": [],
"bcc_emails": [],
"billing": {
"email": "[email protected]",
"phone": "9876543210",
"phone_code": "+1",
"iso_code": "US",
"country": "United States",
"address_1": "456 Vendor Ave",
"postal_code": "54321",
"state": "NY"
}
}
],
"total": 2
}
}
skip and limit parameters:
# Get first page (10 items)
curl -X GET "https://api.clemta.com/contacts?company_id=64b8f1a2e4b0c8d9f0123456&limit=10&skip=0" \
-H "X-API-Key: your_api_key_here"
# Get second page (10 items)
curl -X GET "https://api.clemta.com/contacts?company_id=64b8f1a2e4b0c8d9f0123456&limit=10&skip=10" \
-H "X-API-Key: your_api_key_here"
curl -X GET "https://api.clemta.com/contacts?company_id=64b8f1a2e4b0c8d9f0123456&search=john" \
-H "X-API-Key: your_api_key_here"