Retrieve details of a specific contact by its ID
Documentation Index
Fetch the complete documentation index at: https://docs.cometly.com/llms.txt
Use this file to discover all available pages before exploring further.
1, includes the last 5 comet tokens associated with this contact, ordered by most recent first. Accepts 1 or 0.1, includes the contact’s full event journey — all conversions and touchpoints sorted by most recent first. Each event includes type (conversion or touchpoint), timestamps, URLs, and for touchpoints the full ad hierarchy (ad, ad set, campaign, account). Accepts 1 or 0.1 (default), direct touchpoints are excluded from the events list. Set to 0 to include them. Only applies when include_events=1. Accepts 1 or 0.1, custom field keys in the custom_fields object will use the user-defined labels (e.g. "Customer Age") instead of the raw column names (e.g. "profile_field_1"). Fields without a configured label will keep their raw column name. Accepts 1 or 0.1, includes up to the last 1000 raw browsing session hits (page views) for this contact, ordered by most recent first. Accepts 1 or 0.data property).
include_comet_tokens=true is specified.include_events=1 is specified. Each object has a type field (conversion or touchpoint) and type-specific fields — see Notes for details.include_browsing_session_data=1 is specified. Each hit includes event_url (full URL — host, path, and query string combined), referrer_host, source, country, device_type, browser, os, event_name, and event_time_utc.| 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 |
created_at).include_comet_tokens=1 query parameter to retrieve the last 5 comet tokens for the contact. This parameter is optional and defaults to 0.custom_fields object with all 30 custom fields. Fields 1-15 are text, 16-25 are numeric, 26-30 are date. Fields that have not been set will be null.use_custom_field_labels=1 to replace raw column names (profile_field_1) with user-defined labels (e.g. Customer Age) in the custom_fields object. Fields without a configured label will retain their raw column name.include_events=1 to retrieve the contact’s full event journey. Events are sorted by most recent first and include both conversions and touchpoints:
type ("conversion"), id, event_name, amount, event_time_utc, event_url, order_id, order_name, channel ("browser" or "server"), and integration (only for server-side events, e.g. "Shopify", "Stripe")type ("touchpoint"), event_time_utc, source, touchpoint_url, referrer_url, ad_id, ad_name, adset_id, adset_name, campaign_id, campaign_name, account_id, account_namead_id, ad_name, etc.) are resolved from the attributed ad and will be null for touchpoints without ad data (e.g. organic or direct).hide_direct_touchpoints=0 to include them.include_browsing_session_data=1 to retrieve up to the last 1000 raw browsing hits for the contact, ordered most recent first. Each hit contains event_url (the full URL — host, path, and query string combined), referrer_host, source, country, device_type, browser, os, event_name, and event_time_utc. This is raw hit data, not grouped into sessions — group client-side if needed.