Get a single contact by ID

Retrieves detailed information about a specific contact using various types of identifiers.
This is the primary way to fetch a single contact's complete profile.

How to Identify a Contact

You can retrieve a contact using any of these identifier formats in the URL path:

1. Customerly Contact ID (numeric):

  • The internal numeric ID assigned by Customerly
  • Example: GET /contacts/29911301

2. Custom User ID (prefix: cuid:):

  • Your own custom identifier for a registered user
  • Example: GET /contacts/cuid:user_123
  • Use this if you've set a custom_contact_id when creating a user

3. Custom Lead ID (prefix: clid:):

  • Your own custom identifier for a lead
  • Example: GET /contacts/clid:lead_456
  • Use this if you've set a custom_contact_id when creating a lead

4. WhatsApp Number (prefix: wa:):

  • The contact's WhatsApp number in E.164 format
  • Example: GET /contacts/wa:+1234567890
  • Must include country code with + prefix

5. Email Address (prefix: uem: or lem:):

Response Data

Always included in the response:

  • Basic contact info: name, email, phone, creation date, last seen, etc.
  • Custom attributes: All custom fields you've set for this contact
  • Tags: All tags assigned to this contact

Optional data (use include parameter):
You can request additional related data by adding an include query parameter:

  • events: Event statistics (what events they've triggered, when, how many times)
  • companies: Associated companies and their attributes
  • segments: Which segments this contact belongs to

How to use include:

  • Single: ?include=events
  • Multiple: ?include=events,companies,segments

Example Requests

# Get contact by Customerly ID with events and companies
GET /contacts/29911301?include=events,companies

# Get user by custom user ID with all optional data
GET /contacts/cuid:user_abc123?include=events,companies,segments

# Get lead by custom lead ID
GET /contacts/clid:lead_xyz789?include=companies

# Get contact by WhatsApp number (basic data only)
GET /contacts/wa:+1234567890

# Get user by email with segments
GET /contacts/uem:[email protected]?include=segments
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Contact identifier. Can be: numeric ID (e.g., '12345'), custom user ID with 'cuid:' prefix (e.g., 'cuid:user_123'), custom lead ID with 'clid:' prefix (e.g., 'clid:lead_456'), WhatsApp with 'wa:' prefix (e.g., 'wa:+1234567890'), or email with 'uem:' or 'lem:' prefix (e.g., 'uem:[email protected]' for users or 'lem:[email protected]' for leads).

Query Params
string

Comma-separated list of optional related data to include. Available options: 'events' (event statistics), 'companies' (associated companies), 'segments' (contact segments). Example: 'events,companies' or 'segments'. By default, only basic contact info, attributes, and tags are included.

Responses

401

Authentication credentials are missing or invalid. Please check your API key.

403

You don't have permission to access this contact. Check your account permissions.

404

Contact not found. The identifier doesn't match any contact in your account. Double-check the ID, prefix format, and that the contact exists.

422

Validation error. Check that the identifier format is correct and the 'include' parameter contains valid values.

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json