Overview
This endpoint allows you to retrieve the details of a contact from Cometly. The response includes all associated emails, phones, names, and locations for the contact, including data from merged profiles.
Path Parameters
The unique identifier of the contact to retrieve
Query Parameters
When set to 1, includes the last 5 comet tokens associated with this contact, ordered by most recent first. Accepts 1 or 0.
Response
Success Response
Returns the contact object directly (not wrapped in a data property).
The unique identifier of the contact
Array of email addresses associated with this contact. Maximum 25 most recent. Ordered by most recent first.
Array of phone numbers associated with this contact. Maximum 25 most recent. Ordered by most recent first.
Array of names associated with this contact. Maximum 25 most recent. Ordered by most recent first.
Array of locations associated with this contact. Maximum 25 most recent. Ordered by most recent first.
Array of comet tokens associated with this contact. Maximum 5 most recent. Ordered by most recent first. Only included when include_comet_tokens=true is specified.
Error Response
Error description explaining what went wrong
Example Requests
# Basic request
curl https://app.cometly.com/public-api/v1/contacts/12345 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json"
# Include comet tokens
curl https://app.cometly.com/public-api/v1/contacts/12345?include_comet_tokens=1 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json"
Status Codes
| Status Code | Description |
|---|
| 200 | Contact successfully retrieved |
| 401 | Missing or invalid API key |
| 403 | API key doesn’t have permission or subscription is inactive |
| 404 | Contact not found |
| 422 | Invalid contact ID provided |
| 429 | Too many requests - rate limit exceeded. See Rate Limiting |
Notes
- Rate Limit: This endpoint has a limit of 30 requests per minute per Space. See Rate Limiting for details.
- Profile Merging: If a contact has been merged with another contact, requesting the old contact ID will automatically return the current (merged) contact with all associated data from both profiles.
- Array Limits: Each array field (emails, phones, names, locations) returns a maximum of 25 most recent items to optimize performance.
- All arrays are ordered by most recent first (descending
created_at).
- Empty arrays are returned if no data exists for a particular field.
- Comet Tokens: Use the
include_comet_tokens=1 query parameter to retrieve the last 5 comet tokens for the contact. This parameter is optional and defaults to 0.