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.
OK
Bad Request
Forbidden
Errors
{- "pagination": {
}, - "data": [
- {
- "domain": "acme.co",
- "name": "Acme",
- "isGlobal": true,
- "domains": [
- "acme.co"
], - "id": 1,
- "fields": [
- {
- "enrichmentSource": "affinity-data",
- "name": "Location",
- "id": "affinity-data-location",
- "type": "enriched",
- "value": {
- "data": {
- "continent": "North America",
- "country": "United States",
- "streetAddress": "1 Main Street",
- "city": "San Francisco",
- "state": "California"
}, - "type": "location"
}
}, - {
- "enrichmentSource": "affinity-data",
- "name": "Description",
- "id": "affinity-data-description",
- "type": "enriched",
- "value": {
- "data": "A leading provider of innovative solutions",
- "type": "text"
}
}
]
}, - {
- "domain": "umbrella.co",
- "name": "Umbrella Corporation",
- "isGlobal": true,
- "domains": [
- "umbrella.co"
], - "id": 2,
- "fields": [
- {
- "enrichmentSource": "affinity-data",
- "name": "Location",
- "id": "affinity-data-location",
- "type": "enriched",
- "value": {
- "data": {
- "continent": "North America",
- "country": "United States",
- "streetAddress": "200 Corporate Blvd",
- "city": "Raccoon City",
- "state": "Ohio"
}, - "type": "location"
}
}, - {
- "enrichmentSource": "affinity-data",
- "name": "Description",
- "id": "affinity-data-description",
- "type": "enriched",
- "value": {
- "data": "Pharmaceutical and biotechnology company",
- "type": "text"
}
}
]
}
]
}Returns metadata on non-list-specific Company Fields.
Use the returned Field IDs to request field data from the GET /v2/companies and GET /v2/companies/{id} endpoints.
OK
| X-Ratelimit-Limit-User | integer Number of requests allowed per minute for the user |
| X-Ratelimit-Limit-User-Remaining | integer Number of requests remaining for the user |
| X-Ratelimit-Limit-User-Reset | integer Time in seconds before the limit resets for the user |
| X-Ratelimit-Limit-Org | integer Number of requests allowed per month for the account |
| X-Ratelimit-Limit-Org-Remaining | integer Number of requests remaining for the account |
| X-Ratelimit-Limit-Org-Reset | integer Time in seconds before the limit resets for the account |
required | Array of objects (FieldMetadata) <= 100 items A page of FieldMetadata results | ||||||||||
Array (<= 100 items)
| |||||||||||
required | object (Pagination) | ||||||||||
Bad Request
Errors
{- "data": [
- {
- "enrichmentSource": "affinity-data",
- "valueType": "location",
- "name": "Location",
- "id": "affinity-data-location",
- "type": "enriched"
}
], - "pagination": {
}
}Returns basic information and non-list-specific field data on the requested 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.
OK
| X-Ratelimit-Limit-User | integer Number of requests allowed per minute for the user |
| X-Ratelimit-Limit-User-Remaining | integer Number of requests remaining for the user |
| X-Ratelimit-Limit-User-Reset | integer Time in seconds before the limit resets for the user |
| X-Ratelimit-Limit-Org | integer Number of requests allowed per month for the account |
| X-Ratelimit-Limit-Org-Remaining | integer Number of requests remaining for the account |
| X-Ratelimit-Limit-Org-Reset | integer Time in seconds before the limit resets for the account |
| id required | integer <int64> [ 1 .. 9007199254740991 ] The company's unique identifier | ||||||||||
| name required | string The company's name | ||||||||||
| domain required | string or null <hostname> The company's primary domain | ||||||||||
| domains required | Array of strings <hostname> All of the company's domains | ||||||||||
| isGlobal required | boolean Whether or not the company is tenant specific | ||||||||||
Array of objects (Field) The fields associated with the company | |||||||||||
Array
| |||||||||||
Bad Request
Forbidden
Not Found
Errors
{- "domain": "acme.co",
- "name": "Acme",
- "isGlobal": true,
- "domains": [
- "acme.co"
], - "id": 1,
- "fields": [
- {
- "enrichmentSource": "affinity-data",
- "name": "Location",
- "id": "affinity-data-location",
- "type": "enriched",
- "value": {
- "data": {
- "continent": "North America",
- "country": "United States",
- "streetAddress": "1 Main Street",
- "city": "San Francisco",
- "state": "California"
}, - "type": "location"
}
}, - {
- "enrichmentSource": "affinity-data",
- "name": "Description",
- "id": "affinity-data-description",
- "type": "enriched",
- "value": {
- "data": "A leading provider of innovative solutions",
- "type": "text"
}
}
]
}Paginate through the List Entries (AKA rows) for the given Company across all Lists. Each List Entry includes field data for the Company, including list-specific field data. Each List Entry also includes metadata about its creation, i.e., when it was added to the List and by whom.
Requires the "Export data from Lists" permission.
OK
| X-Ratelimit-Limit-User | integer Number of requests allowed per minute for the user |
| X-Ratelimit-Limit-User-Remaining | integer Number of requests remaining for the user |
| X-Ratelimit-Limit-User-Reset | integer Time in seconds before the limit resets for the user |
| X-Ratelimit-Limit-Org | integer Number of requests allowed per month for the account |
| X-Ratelimit-Limit-Org-Remaining | integer Number of requests remaining for the account |
| X-Ratelimit-Limit-Org-Reset | integer Time in seconds before the limit resets for the account |
required | Array of objects (ListEntry) <= 100 items A page of ListEntry results | ||||||||||
Array (<= 100 items)
| |||||||||||
required | object (Pagination) | ||||||||||
Bad Request
Forbidden
Not Found
Errors
{- "pagination": {
}, - "data": [
- {
- "listId": 1,
- "createdAt": "2023-01-01T00:00:00Z",
- "creatorId": 1,
- "id": 1,
- "fields": [
- {
- "enrichmentSource": "affinity-data",
- "name": "Location",
- "id": "affinity-data-location",
- "type": "enriched",
- "value": {
- "data": {
- "continent": "North America",
- "country": "United States",
- "streetAddress": "1 Main Street",
- "city": "San Francisco",
- "state": "California"
}, - "type": "location"
}
}, - {
- "enrichmentSource": "affinity-data",
- "name": "Location",
- "id": "affinity-data-location",
- "type": "enriched",
- "value": {
- "data": {
- "continent": "North America",
- "country": "United States",
- "streetAddress": "1 Main Street",
- "city": "San Francisco",
- "state": "California"
}, - "type": "location"
}
}
]
}, - {
- "listId": 1,
- "createdAt": "2023-01-01T00:00:00Z",
- "creatorId": 1,
- "id": 1,
- "fields": [
- {
- "enrichmentSource": "affinity-data",
- "name": "Location",
- "id": "affinity-data-location",
- "type": "enriched",
- "value": {
- "data": {
- "continent": "North America",
- "country": "United States",
- "streetAddress": "1 Main Street",
- "city": "San Francisco",
- "state": "California"
}, - "type": "location"
}
}, - {
- "enrichmentSource": "affinity-data",
- "name": "Location",
- "id": "affinity-data-location",
- "type": "enriched",
- "value": {
- "data": {
- "continent": "North America",
- "country": "United States",
- "streetAddress": "1 Main Street",
- "city": "San Francisco",
- "state": "California"
}, - "type": "location"
}
}
]
}
]
}Paginate through all Lists where the given Company appears as an entry and that you have access to view. Returns basic List information for each List that contains this Company.
OK
| X-Ratelimit-Limit-User | integer Number of requests allowed per minute for the user |
| X-Ratelimit-Limit-User-Remaining | integer Number of requests remaining for the user |
| X-Ratelimit-Limit-User-Reset | integer Time in seconds before the limit resets for the user |
| X-Ratelimit-Limit-Org | integer Number of requests allowed per month for the account |
| X-Ratelimit-Limit-Org-Remaining | integer Number of requests remaining for the account |
| X-Ratelimit-Limit-Org-Reset | integer Time in seconds before the limit resets for the account |
required | Array of objects (List) <= 100 items A page of List results | ||||||||||
Array (<= 100 items)
| |||||||||||
required | object (Pagination) | ||||||||||
Bad Request
Not Found
Errors
{- "pagination": {
}, - "data": [
- {
- "name": "All companies",
- "creatorId": 1,
- "isPublic": false,
- "id": 1,
- "ownerId": 1
}, - {
- "name": "All companies",
- "creatorId": 1,
- "isPublic": false,
- "id": 1,
- "ownerId": 1
}
]
}| ⚠️ This endpoint is currently in BETA |
|---|
Returns relevant notes for a given company which includes directly attached notes and notes attached to persons on this company.
You can filter notes using the filter query parameter. The filter parameter is a string that you can specify conditions based on the following properties.
| Property Name | Description | Type | Allowed Operators | Examples |
|---|---|---|---|---|
creator.id |
Filter notes by the creator of the note | int32 |
= |
creator.id=1 |
createdAt |
Filter notes by when it was created | datetime |
>, <, >=, <= |
createdAt<2025-02-04T10:48:24Z |
updatedAt |
Filter notes by when it was updated | datetime |
>, <, >=, <= |
updatedAt>=2025-02-03T10:48:24Z |
OK
| X-Ratelimit-Limit-User | integer Number of requests allowed per minute for the user |
| X-Ratelimit-Limit-User-Remaining | integer Number of requests remaining for the user |
| X-Ratelimit-Limit-User-Reset | integer Time in seconds before the limit resets for the user |
| X-Ratelimit-Limit-Org | integer Number of requests allowed per month for the account |
| X-Ratelimit-Limit-Org-Remaining | integer Number of requests remaining for the account |
| X-Ratelimit-Limit-Org-Reset | integer Time in seconds before the limit resets for the account |
required | Array of any (notes.Note) <= 100 items A page of Note objects | ||||||||||||||||||||||||
Array (<= 100 items)
| |||||||||||||||||||||||||
required | object (PaginationWithTotalCount) | ||||||||||||||||||||||||
Bad Request
Not Found
Errors
{- "data": [
- {
- "type": "entities",
- "repliesCount": 2147483647,
- "permissions": {
- "sharingType": "private",
- "owner": {
- "id": 1,
- "firstName": "Jane",
- "lastName": "Doe",
- "primaryEmailAddress": "jane.doe@acme.co",
- "type": "internal"
}
}, - "opportunitiesPreview": {
- "data": [
- {
- "listId": 1,
- "name": "Acme Upsell $10k",
- "id": 1
}
], - "totalCount": 9007199254740991
}, - "personsPreview": {
- "data": [
- {
- "id": 1,
- "firstName": "Jane",
- "lastName": "Doe",
- "primaryEmailAddress": "jane.doe@acme.co",
- "type": "internal"
}
], - "totalCount": 9007199254740991
}, - "companiesPreview": {
- "data": [
- {
- "id": 1,
- "name": "Acme",
- "domain": "acme.co"
}
], - "totalCount": 9007199254740991
}, - "id": 1,
- "content": {
- "html": "string"
}, - "creator": {
- "id": 1,
- "firstName": "Jane",
- "lastName": "Doe",
- "primaryEmailAddress": "jane.doe@acme.co",
- "type": "internal"
}, - "mentions": [
- {
- "id": 1,
- "type": "person",
- "person": {
- "id": 1,
- "firstName": "Jane",
- "lastName": "Doe",
- "primaryEmailAddress": "jane.doe@acme.co",
- "type": "internal"
}
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "updatedAt": "2019-08-24T14:15:22Z"
}
], - "pagination": {
- "totalCount": 9007199254740991,
}
}