This endpoint can be used to search for companies. The response body is paginated and you can control the pagination using the pageSize and pageToken parameters. Native filters include companyName, companyUrl, and accountOwner. Custom company fields (including NOTE fields, treated as text) can be filtered with company.field.<custom_field_id>.operator=value.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
The Get all companies API enables users to find companies in their Rocketlane instances using advanced filtering options. This API is intended to provide a flexible and fast means of getting company data based on various parameters.
Developers can integrate company search features into their applications and platforms by using this API. You can fine-tune your searches and retrieve the company data you need for integration into your applications or platforms by using the available parameters.
NoteThe Companies Public API currently returns CUSTOMER companies only. Partner companies are not included in the response body.
The includeFields param can be used to customize the response. You can fine-tune your searches and retrieve the company related data you need for integration into your applications or platforms by using filters.
You can use any combination of these parameters to execute searches based on your specifications. In addition to filters, sortBy and sortOrder can be used to sort the companies. The response body is paginated, and you can control the pagination using the limit and pageToken parameters.
Pagination
The Get All Companies API accommodates pagination in the response body. The pageSize option can be used to restrict the amount of responses displayed/available in a single request. Additionally, if there are more entries than the ones accessible in the answer, the response(s) may contain the pageToken.
Please refer to the pagination section for further information on this.
Filtering
The capacity to execute more sophisticated and nuanced searches on a dataset by combining numerous criteria and conditions is referred to as filtering.
Complex filtering in the context of the Get All Companies API allows users to build elaborate search queries to return specific subsets of companies that satisfy specific requirements. By catering to a wide range of use cases, this enhanced filtering functionality considerably increases the API's utility and versatility.
The API reference includes a comprehensive range of filtering options.
Native field filtering
In addition to companyName, the following native company fields can be used as filter criteria:
| Field | Description | Example operators |
|---|---|---|
companyName | Company display name | eq, cn, nc |
companyUrl | Website URL of the company | eq, cn, nc |
accountOwner | Account owner user id | eq, oneOf, noneOf |
Examples:
companyUrl.cn=acme.comaccountOwner.eq=12accountOwner.oneOf=12,34
Custom Field Filtering
The Get All Companies API offers custom field filtering in addition to the regular filtering options.
Users can utilise custom field filtering to define and apply their own company fields as search criteria. This powerful feature allows users to search for companies based on custom company fields, allowing the API to be tailored to a variety of use cases where default fields may be insufficient.
| Type | Description |
|---|---|
| Company | Custom company fields |
Please refer to the below table for more information on how to construct the filtering criteria for custom fields.
| Field name | Text | Number | Yes/No | Date | Single Selection | Multi Selection | Rating | Note (text) |
|---|---|---|---|---|---|---|---|---|
{type}.field.{field_id}.value | ☑️ | ☑️ | ☑️ | ☑️ | ☑️ | ☑️ | ||
{type}.field.{field_id}.contains | ☑️ | ☑️ | ||||||
{type}.field.{field_id}.notContains | ☑️ | ☑️ | ||||||
{type}.field.{field_id}.greaterThan | ☑️ | ☑️ | ☑️ | |||||
{type}.field.{field_id}.lessThan | ☑️ | ☑️ | ☑️ | |||||
{type}.field.{field_id}.greaterThanEqual | ☑️ | ☑️ | ☑️ | |||||
{type}.field.{field_id}.lessThanEqual | ☑️ | ☑️ | ☑️ | |||||
{type}.field.{field_id}.isEmpty | ☑️ | ☑️ | ☑️ | ☑️ | ☑️ | ☑️ | ☑️ | ☑️ |
{type}.field.{field_id}.isNotEmpty | ☑️ | ☑️ | ☑️ | ☑️ | ☑️ | ☑️ | ☑️ | ☑️ |
{type}.field.{field_id}.isTrue | ☑️ | |||||||
{type}.field.{field_id}.isFalse | ☑️ | |||||||
{type}.field.{field_id}.oneOf | ☑️ | ☑️ | ||||||
{type}.field.{field_id}.noneOf | ☑️ | ☑️ |
For companies, {type} is always company. Example:
company.field.2047333.contains=sdsddThe field_id can be fetched from this API. Additional parameters can be passed to fetch fields associated with companies, which can then be used to perform searches on the companies.
For more information about this, please refer to the custom fields section.
Note field filtering
Company NOTE fields are always filtered as text.
Use the same text operators as above (contains, notContains, value / eq, isEmpty, isNotEmpty) via company.field.{field_id}.{operator}.
Example:
GET /1.0/companies?company.field.2047333.contains=sdsddCriteria Match
In addition to standard filtering and custom field filtering, the Get All Companies API also supports the use of AND and OR conditions for more advanced filtering options. Users can combine different filters and custom field queries with these logical operators to build complex yet accurate search queries.
Use the match query parameter:
match=all— all filter conditions must match (AND)match=any— any filter condition may match (OR)
In case any issues arise or further assistance is required, please refer to the error handling section or reach out to our support team at [email protected] for a prompt resolution.