Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Add a List Entry to a List
AFFINITY_ADD_A_LIST_ENTRY_TO_A_LISTBeta Affinity API v2 action. Add a List Entry to a List. Adds a Company or Person to a List as a new List Entry. Opportunities cannot be added with this endpoint. The type of the entity referenced by `entity.id` is determined by the List's type: a Company ID for a company List, a Person ID for a person List. If no entity of the List's type exists with the given ID, the request is rejected with `400 Bad Request`. Only the List's own required fields are checked. Required fields on the entity itself were already enforced when the entity was created, so they are not re-checked here. If the List has a required field, the request is rejected with `400 Bad Request` and the missing field IDs are returned in the response body. This endpoint does not accept field values, so there is no API-level remediation: populate such a List through a UI flow that provides values at add time, or remove the required flag from the List's field configuration.
Create a Company Field
AFFINITY_CREATE_A_COMPANY_FIELDBeta Affinity API v2 action. Create a Company Field. Creates a Company Field. A Company Field is available on every company in the organization. Values for the new Field can be set on each company via `POST /v2/companies/{companyId}/fields/{fieldId}`. Requires the Manage global fields permission. Fields of value type `dropdown`, `dropdown-multi`, and `ranked-dropdown` are created without any dropdown options.
Create a dropdown option for a List Field
AFFINITY_CREATE_A_DROPDOWN_OPTION_FOR_A_LIST_FIELDAffinity API v2 action. Create a dropdown option for a List Field. Create a dropdown option for a List Field.
Create a List
AFFINITY_CREATE_A_LISTAffinity API v2 action. Create a List. Create a new List. The List type determines the kind of entities (Companies, Persons, or Opportunities) that can be added. The requester is recorded as the creator and the owner.
Create a List Field
AFFINITY_CREATE_A_LIST_FIELDBeta Affinity API v2 action. Create a List Field. | This endpoint is currently in BETA | |--| Creates a list-specific Field on a List. Values for the new Field can be set on each List Entry via `POST /v2/lists/{listId}/list-entries/{listEntryId}/fields/{fieldId}`. Requires the Standard role or higher on the List. Creating a field with `isRequired` set to `true` requires the Admin role on the List. Fields of value type `dropdown`, `dropdown-multi`, and `ranked-dropdown` are created without any dropdown options.
Create an Opportunity
AFFINITY_CREATE_AN_OPPORTUNITYBeta Affinity API v2 action. Create an Opportunity. | This endpoint is currently in BETA | |--| Creates an Opportunity on an opportunity List. The Opportunity is added to the List as a List Entry. When `listId` is not an opportunity List, the request fails. The new List Entry gets the default values of the List. When the List has a Status Field, the Status is the first open status. When the List has an Owners Field, the requester is added as an Owner. The name must be unique on the List. The request cannot include Field values, so the required Fields of the List are not checked. When `isRestricted` is `true`, the Opportunity is restricted, and the requester is added to its allow list. When a Person Field of the List sets the allow list, the requester is added to that Field. When the requester cannot access the new Opportunity, the response is redacted. When your organization does not allow the requested type of Opportunity, the request fails. Requires access to the List.
Create a Note
AFFINITY_CREATE_A_NOTEAffinity API v2 action. Create a Note. Create a new note. By default it is authored by the calling user; set `creator` to attribute it to a different internal person in your organization. Notes can be attached directly to entities (`Persons`, `Companies`, `Opportunities`), anchored to an interaction (`meeting`, `call`, or `chat message`), or written as a reply to an existing note. The `type` field selects the shape of the request body. AI Notetaker note types (`ai-notetaker`, `ai-notetaker-reply`) are system-generated and cannot be created through this endpoint.
Create a Person
AFFINITY_CREATE_A_PERSONBeta Affinity API v2 action. Create a Person. This endpoint is currently in BETA. Creates a new Person. Setting `fields` values requires the "Edit Global Field Values" permission and returns a 403 error if the caller lacks it.
Create a Person Field
AFFINITY_CREATE_A_PERSON_FIELDBeta Affinity API v2 action. Create a Person Field. Creates a Person Field. A Person Field is available on every person in the organization. Values for the new Field can be set on each person via `POST /v2/persons/{personId}/fields/{fieldId}`. Requires the Manage global fields permission. Fields of value type `dropdown`, `dropdown-multi`, and `ranked-dropdown` are created without any dropdown options.
Create a Reminder
AFFINITY_CREATE_A_REMINDERAffinity API v2 action. Create a Reminder. Creates a new Reminder. Exactly one of `company`, `person`, or `opportunity` must be provided. The `creator` of the new reminder is the user associated with the API key.