GET /v2/companies
Paginate through Companies in Affinity. Returns basic information and non-list-specific field data on each Company.
To retrieve field data, you must use either the fieldIds
or the fieldTypes
parameter
to specify the Fields for which you want data returned.
These Field IDs and Types can be found using the GET /v2/companies/fields
endpoint.
When no fieldIds
or fieldTypes
are provided, Companies will be returned without any field data attached.
To supply multiple fieldIds
or fieldTypes
parameters, generate a query string that looks like this:
?fieldIds=field-1234&fieldIds=affinity-data-location
or ?fieldTypes=enriched&fieldTypes=global
.
Requires the "Export All Organizations directory" permission.
Servers
- https//api.affinity.co
Query parameters
Name | Type | Required | Description |
---|---|---|---|
limit |
Integer | No |
Number of items to include in the page Default value: 100 |
fieldIds[] |
Array | No |
Field IDs for which to return field data |
ids[] |
Array | No |
Company IDs |
cursor |
String | No |
Cursor for the next or previous page |
fieldTypes[] |
Array | No |
Field Types for which to return field data |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.