Skip to main content
For a full list of your User / Company Properties see the Properties API

Schema

Fully-expanded Company when listed directly or embedded with expand param specified properly

Non-expanded Company when embedded in another (i.e. Microsurvey response)

Create or Update a Company

See the Companies Webhook for sending User data to Chameleon

Retrieve a Company

Retrieve a single Company.

HTTP Request

GET
or
GET

List Companies

List all Companies.

HTTP Request

Using the expand parameter

HTTP Response

Search Companies

Searching Companies through the Chameleon API allows you to:
  • Search for a company by id, uid, or any custom company property you have sent to us.
  • Filter companies using Segmentation Filter Expressions with the property and group kinds.
  • Sort the matching companies by any company property.
  • Get the Count of Companies matching a set of filters.
Note: Rate Limiting applies according to the table below.

HTTP Request

Note: Company filters support only the property and group filter kinds. The event, tour, and survey kinds available for profile search are not supported for companies.
Note: When filters or sort_by is provided, results are paginated with an offset-based cursor. Pass the returned offset back on the next request to fetch the following page:
Without filters or sort_by, companies use the standard before / after cursor pagination shown under List Companies.

Examples

All of these examples are based directly on the full schema of Segmentation Filter Expressions. Each example below is showing the value for the filters key in the JSON request body:
Companies that have a specific uid
Find the company with the uid of 123:
The following examples show the full JSON request body.
Companies matching multiple properties
Find companies on the enterprise plan or with a lifetime value (clv) greater than 100000, combining two property filters with filters_op:
Companies sorted by profile count
Return companies ordered by profile_count, highest first:

Counting Companies

Return the number of companies matching a set of filters, without fetching the companies themselves.

HTTP Request

Counting uses the same filters / filters_op as Search Companies; sort_by, sort_dir, limit, and offset do not apply.

HTTP Response

Delete a Company

When deleting a company, the company record itself is deleted and company is removed from all profiles associated with it. The associated profiles can also be removed by passing cascade=profiles with the request.

HTTP Request

Either id or uid is required.
DELETE
or
DELETE

HTTP Response

The endpoint returns id of the Deletion record. The Deletion is an internal Chameleon record that can be referenced as proof of initiating this request.

Deleting a company and all profiles associated with it

Deleting a company and all profiles associated with it can be done by passing cascade=profiles:
DELETE
or
DELETE

HTTP Response

When cascade deletion is requested, the endpoint also returns deletion ids of all the profiles associated with the company under deletions key.