Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Get metadata on all Emails
AFFINITY_GET_METADATA_ON_ALL_EMAILSAffinity API v2 action. Get metadata on all Emails. Paginate through all emails in Affinity. Returns basic information about the email interaction and its participants. Will only return emails or subject lines that the current authenticated user has permission to see. Email bodies (the message content) are not available through the API. Only metadata such as the subject, participants, and timestamps is returned. If the authenticated user does not have permission to see an email's subject, the `subject` field is obfuscated and returned as `********` rather than the actual subject line. You can filter emails using the `filter` query parameter. The filter parameter is a string that you can specify conditions based on the following properties.
Get metadata on all lists
AFFINITY_GET_METADATA_ON_ALL_LISTSReturns metadata on Lists.
Get metadata on all Meetings
AFFINITY_GET_METADATA_ON_ALL_MEETINGSAffinity API v2 action. Get metadata on all Meetings. Paginate through all Meetings in Affinity. Returns basic information about past and future meeting interactions and its attendees. You can filter meetings using the `filter` query parameter. The filter parameter is a string that you can specify conditions based on the following properties. | **Property Name** | **Type** | **Allowed Operators** | **Examples** | |---|---|---|---| | `id` | `int64` | `=` | `id=1\|id=2\|id=3` | | `startTime` | `datetime` | `>`, `<`, `>=`, `<=` | `startTime>2025-01-01T01:00:00Z` | | `createdAt` | `datetime` | `>`, `<`, `>=`, `<=` | `createdAt<2025-01-01T01:00:00Z` | | `updatedAt` | `datetime` | `>`, `<`, `>=`, `<=` | `updatedAt>=2025-01-01T01:00:00Z` |
Get metadata on all Teams
AFFINITY_GET_METADATA_ON_ALL_TEAMSBeta Affinity API v2 action. Get metadata on all Teams. Paginate through all Teams in your organization that you have access to view. Use the `includes` query parameter to add `membersPreview` and `accessibleListsPreview` to each team. Each preview carries a `totalCount` and a short `data` sample; the full collections are available at `GET /v2/teams/{teamId}/members` and `GET /v2/teams/{teamId}/accessible-lists`. The team's `privacyType` is gated and only returned when the caller has the "Manage Teams" [permission](/pages/external-api-v2/permissions), the organization has team-based privacy controls enabled, and cross-team visibility is enabled for the organization; it is omitted from every team in the response otherwise.
Get metadata on a Person Field
AFFINITY_GET_METADATA_ON_A_PERSON_FIELDBeta Affinity API v2 action. Get metadata on a Person Field. Returns metadata on a single non-list-specific Person Field. Accepts any Field ID from GET `/v2/persons/fields`, including enriched and native fields. List-specific fields and fields of other entity types return 404.
Get metadata on a single list
AFFINITY_GET_METADATA_ON_A_SINGLE_LISTReturns metadata on a single List.
Get metadata on a single list s fields
AFFINITY_GET_METADATA_ON_A_SINGLE_LIST_S_FIELDSReturns metadata on the Fields available on a single List. Use the returned Field IDs to request field data from the GET `/v2/lists/{listId}/list-entries` endpoint.
Get metadata on a single saved view
AFFINITY_GET_METADATA_ON_A_SINGLE_SAVED_VIEWReturns metadata on a single Saved View.
Get metadata on a single Team
AFFINITY_GET_METADATA_ON_A_SINGLE_TEAMBeta Affinity API v2 action. Get metadata on a single Team. Retrieve detailed information about a specific Team. Optional opt-in properties can be requested via the `includes` query parameter.
Get metadata on company fields
AFFINITY_GET_METADATA_ON_COMPANY_FIELDSReturns 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.
Get metadata on person fields
AFFINITY_GET_METADATA_ON_PERSON_FIELDSReturns metadata on non-list-specific Person Fields. Use the returned Field IDs to request field data from the GET `/v2/persons` and GET `/v2/persons/{id}` endpoints.
Get metadata on saved views
AFFINITY_GET_METADATA_ON_SAVED_VIEWSReturns metadata on the Saved Views on a List.
Get Notes for a Company
AFFINITY_GET_NOTES_FOR_A_COMPANYAffinity API v2 action. Get Notes for a Company. 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** | **Type** | **Allowed Operators** | **Examples** | |---|---|---|---| | `creator.id` | `int32` | `=` | `creator.id=1` | | `createdAt` | `datetime` | `>`, `<`, `>=`, `<=` | `createdAt<2025-02-04T10:48:24Z` | | `updatedAt` | `datetime` | `>`, `<`, `>=`, `<=` | `updatedAt>=2025-02-03T10:48:24Z` |
Get Notes for an Opportunity
AFFINITY_GET_NOTES_FOR_AN_OPPORTUNITYAffinity API v2 action. Get Notes for an Opportunity. Returns Notes for a given Opportunity which includes directly attached notes and those attached to persons on this Opportunity. 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** | **Type** | **Allowed Operators** | **Examples** | |---|---|---|---| | `creator.id` | `int32` | `=` | `creator.id=1` | | `createdAt` | `datetime` | `>`, `<`, `>=`, `<=` | `createdAt<2025-02-04T10:48:24Z` | | `updatedAt` | `datetime` | `>`, `<`, `>=`, `<=` | `updatedAt>=2025-02-03T10:48:24Z` |
Get Notes for a Person
AFFINITY_GET_NOTES_FOR_A_PERSONAffinity API v2 action. Get Notes for a Person. Returns notes for a given person id which includes directly attached notes, notes on meetings this person attended, and notes where this person is mentioned. 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** | **Type** | **Allowed Operators** | **Examples** | |---|---|---|---| | `creator.id` | `int32` | `=` | `creator.id=1` | | `createdAt` | `datetime` | `>`, `<`, `>=`, `<=` | `createdAt<2025-02-04T10:48:24Z` | | `updatedAt` | `datetime` | `>`, `<`, `>=`, `<=` | `updatedAt>=2025-02-03T10:48:24Z` |
Get Opportunities attached to a Note
AFFINITY_GET_OPPORTUNITIES_ATTACHED_TO_A_NOTEAffinity API v2 action. Get Opportunities attached to a Note. Returns directly attached opportunities for a given Note.
Get Person Merge
AFFINITY_GET_PERSON_MERGEAffinity API v2 action. Get Person Merge. Retrieve the status and details of a specific person merge. Returns information about the person merge including its current status, the persons involved, timestamps, and any error information if the merge failed. The `mergeId` can be obtained from the response of the [Get All Person Merges](/api-reference/person-merges/get-all-person-merges) endpoint, or by filtering person merges by task ID using `/v2/person-merges?filter=taskId={taskId}` after initiating a merge. Requires the "Manage duplicates" [permission](/pages/external-api-v2/permissions) and organization admin role.
Get Person Merge Task
AFFINITY_GET_PERSON_MERGE_TASKAffinity API v2 action. Get Person Merge Task. Retrieve the status and details of a specific task for person merges. Returns information about the person merges for a specific task including its overall status, number of merges in-progress, completed, and failed. Detailed information about individual merges for this task can be found by querying: `/v2/person-merges?filter=taskId={taskId}` See [Person Merges](/api-reference/person-merges/get-all-person-merges) for more details. Task statuses: - `in-progress`: The merge task is currently being processed. - `success`: The merge task completed successfully. - `failed`: The merge task failed. Requires the "Manage duplicates" [permission](/pages/external-api-v2/permissions) and organization admin role.
Get Persons attached to a Note
AFFINITY_GET_PERSONS_ATTACHED_TO_A_NOTEAffinity API v2 action. Get Persons attached to a Note. Returns directly attached persons for a given Note.
Get rate limit usage
AFFINITY_GET_RATE_LIMIT_USAGEBeta Affinity API v2 action. Get rate limit usage. Returns the current rate limit usage for the authenticated caller. `orgPerMonth` is included only for callers that have a monthly quota; it is absent for callers that don't have one.