Get a company by id or custom company id

Retrieves detailed information about a specific company using either the internal Customerly company ID or your custom identifier.
This is the primary way to fetch a single company's complete profile.

Company Identification

You can retrieve a company using two types of identifiers:

1. Customerly Company ID (numeric):

  • Use the internal company ID directly (e.g., 12345)
  • Example: GET /companies/12345

2. Custom Company ID (prefixed with cid:):

  • Use your custom identifier with the cid: prefix
  • Example: If your custom_company_id is company_12345, use GET /companies/cid:company_12345

Response Data

Always included in the response:

  • Basic company information (ID, name, creation date, last seen)
  • All custom attributes as key-value pairs

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

  • contacts: Paginated list of contacts in this company (max 20 items, with total count and has_more flag)
  • segments: Paginated list of segments this company belongs to (max 20 items, with total count and has_more flag)

How to use include:

  • Single: ?include=contacts
  • Multiple: ?include=contacts,segments

Example Requests

# Get company by Customerly ID with contacts
GET /companies/12345?include=contacts

# Get company by custom company ID with both contacts and segments
GET /companies/cid:company_abc123?include=contacts,segments

# Get company by ID with segments only
GET /companies/12345?include=segments

# Get company basic data only (no optional fields)
GET /companies/cid:company_abc123
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The company identifier. Can be either the numeric Customerly company ID (e.g., '12345') or your custom_company_id prefixed with 'cid:' (e.g., 'cid:company_12345')

Query Params
string

Comma-separated list of optional related data to include. Available options: 'contacts' (paginated list of company contacts, max 20), 'segments' (paginated list of segments, max 20). Example: 'contacts,segments' or 'contacts'. By default, only basic company info and attributes are included.

Responses

401

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

403

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

404

Company not found. The identifier doesn't match any company in your account. Double-check the ID, prefix format, and that the company 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