The Affinity connector lets your AI agent act in each user's Affinity account. Each user connects their own Affinity access token once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 49 tools.
- Tools
- 49
- What they doRead · write · destructive
- 33 · 11 · 533 read11 write5 destructive
- Users sign in with
- Access token
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the Affinity connection
In AgentKit > Connections, create an Affinity connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'affinity'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize Affinity:', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'affinity_v2_get_current_user',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "affinity"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Affinity:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="affinity_v2_get_current_user",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user opens the link once and enters their Affinity credentials there. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolaffinity_get_opportunityRetrieve full details of a deal or opportunity in Affinity including current stage, owner, associated persons and organizations, custom field values, and list membership.Read-onlyGet Opportunity
Retrieve full details of a deal or opportunity in Affinity including current stage, owner, associated persons and organizations, custom field values, and list membership. Use this before updating a deal or generating a deal memo.
Inputs
opportunity_idintegerrequired- Unique numeric ID of the opportunity to retrieve
affinity_get_organizationRetrieve an organization's full profile from Affinity including domain, team member connections, associated people, deal history, and interaction metadata.Read-onlyGet Organization
Retrieve an organization's full profile from Affinity including domain, team member connections, associated people, deal history, and interaction metadata. Use this for deep company diligence or to understand team relationships before an investment.
Inputs
organization_idintegerrequired- Unique numeric ID of the organization to retrieve
with_interaction_datesboolean- Include first and last interaction dates in the response
affinity_get_personRetrieve a person's full profile from Affinity including contact information, email addresses, phone numbers, organization memberships, interaction history, and relationship score.Read-onlyGet Person
Retrieve a person's full profile from Affinity including contact information, email addresses, phone numbers, organization memberships, interaction history, and relationship score. Use this to deeply evaluate a contact before a meeting or investment decision.
Inputs
person_idintegerrequired- Unique numeric ID of the person to retrieve
with_interaction_datesboolean- Include first and last interaction dates in the response
affinity_get_relationship_strengthRetrieve relationship strength scores between your team members and an external contact (person) in Affinity.Read-onlyGet Relationship Strength
Retrieve relationship strength scores between your team members and an external contact (person) in Affinity. Scores reflect email and meeting interaction frequency and recency. Use this to identify the best warm introduction path to a founder, LP, or co-investor.
Inputs
external_idintegerrequired- Affinity person ID of the external contact to evaluate relationship strength against
internal_idinteger- Affinity person ID of the internal team member (optional — omit to get scores for all team members)
affinity_list_listsRetrieve all Affinity lists available in the workspace, including people lists, organization lists, and opportunity/deal pipeline lists.Read-onlyList All Lists
Retrieve all Affinity lists available in the workspace, including people lists, organization lists, and opportunity/deal pipeline lists. Returns list IDs, names, types, and owner information. Use this to discover list IDs before adding entries or filtering opportunities.
Inputs
This tool takes no inputs.
affinity_list_notesRetrieve notes associated with a specific person, organization, or opportunity in Affinity.Read-onlyList Notes
Retrieve notes associated with a specific person, organization, or opportunity in Affinity. Returns paginated note records including content, creator, and creation timestamp. Use this to review interaction history, meeting summaries, or due diligence logs on a CRM entity.
Inputs
opportunity_idinteger- Filter notes by opportunity ID
organization_idinteger- Filter notes by organization ID
page_sizeinteger- Number of results to return per page (max 500)
page_tokenstring- Pagination token from a previous response to fetch the next page
person_idinteger- Filter notes by person ID
affinity_list_opportunitiesList pipeline opportunities in Affinity with optional filters by list ID, owner, or stage.Read-onlyList Opportunities
List pipeline opportunities in Affinity with optional filters by list ID, owner, or stage. Returns paginated deal records including stage, value, associated people and organizations, and custom field values. Designed for deal flow monitoring and portfolio tracking.
Inputs
list_idinteger- Filter opportunities belonging to a specific Affinity list ID
page_sizeinteger- Number of results to return per page (max 500)
page_tokenstring- Pagination token from a previous response to fetch the next page
affinity_search_organizationsSearch for companies and organizations in the Affinity network by name or domain.Read-onlySearch Organizations
Search for companies and organizations in the Affinity network by name or domain. Returns a paginated list of matching organization records including team connections, domain info, and interaction metadata. Useful for deal sourcing and company diligence lookups.
Inputs
page_sizeinteger- Number of results to return per page (max 500)
page_tokenstring- Pagination token from a previous response to fetch the next page
termstring- Search term to filter organizations by name or domain
with_interaction_datesboolean- Include first and last interaction dates in the response
affinity_search_personsSearch for people in the Affinity network by name, email, or relationship strength.Read-onlySearch Persons
Search for people in the Affinity network by name, email, or relationship strength. Returns a paginated list of matching person records including contact information and relationship metadata. Ideal for finding contacts before creating notes or evaluating deal connections.
Inputs
page_sizeinteger- Number of results to return per page (max 500)
page_tokenstring- Pagination token from a previous response to fetch the next page
termstring- Search term to filter persons by name or email address
with_interaction_datesboolean- Include first and last interaction dates in the response
affinity_v2_get_companyRetrieves basic information for a single company using the V2 API.Read-onlyGet Company (V2)
Retrieves basic information for a single company using the V2 API. Pass field_ids or field_types to also receive field data.
Inputs
company_idintegerrequired- The unique numeric ID of the company.
field_idsarray- Specific field IDs to return field data for. Mutually exclusive with field_types.
field_typesarray- Category of fields to return field data for. Mutually exclusive with field_ids.
affinity_v2_get_company_field_dropdown_optionsReturns the dropdown options for a specific dropdown or ranked-dropdown company field.Read-onlyGet Company Field Dropdown Options (V2)
Returns the dropdown options for a specific dropdown or ranked-dropdown company field. Use the returned option IDs when writing dropdown field values.
Inputs
field_idstringrequired- The ID of the dropdown field.
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
limitinteger- Number of items to return per page (max 100).
affinity_v2_get_company_field_valueRetrieves a single field's value on a company.Read-onlyGet Company Field Value (V2)
Retrieves a single field's value on a company.
Inputs
company_idintegerrequired- The unique numeric ID of the company.
field_idstringrequired- The ID of the field to retrieve.
affinity_v2_get_current_userReturns information about the authenticated user, their current organization, and the permissions granted to the API key in use.Read-onlyGet Current User (V2)
Returns information about the authenticated user, their current organization, and the permissions granted to the API key in use. Useful for verifying authentication before making other V2 API calls.
Inputs
This tool takes no inputs.
affinity_v2_get_personRetrieves basic information for a single person using the V2 API.Read-onlyGet Person (V2)
Retrieves basic information for a single person using the V2 API. Pass field_ids or field_types to also receive field data.
Inputs
person_idintegerrequired- The unique numeric ID of the person.
field_idsarray- Specific field IDs to return field data for. Mutually exclusive with field_types.
field_typesarray- Category of fields to return field data for. Mutually exclusive with field_ids.
affinity_v2_get_person_field_dropdown_optionsReturns the dropdown options for a specific dropdown or ranked-dropdown person field.Read-onlyGet Person Field Dropdown Options (V2)
Returns the dropdown options for a specific dropdown or ranked-dropdown person field. Use the returned option IDs when writing dropdown field values.
Inputs
field_idstringrequired- The ID of the dropdown field.
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
limitinteger- Number of items to return per page (max 100).
affinity_v2_get_person_field_valueRetrieves a single field's value on a person.Read-onlyGet Person Field Value (V2)
Retrieves a single field's value on a person.
Inputs
field_idstringrequired- The ID of the field to retrieve.
person_idintegerrequired- The unique numeric ID of the person.
affinity_v2_list_companiesPaginates through companies in your Affinity organization using the V2 API.Read-onlyList Companies (V2)
Paginates through companies in your Affinity organization using the V2 API. Returns basic information; pass field_ids or field_types to also receive field data (omit both to skip field data entirely).
Inputs
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
field_idsarray- Specific field IDs to return field data for. Mutually exclusive with field_types.
field_typesarray- Category of fields to return field data for. Mutually exclusive with field_ids.
idsarray- Filter to specific company IDs.
limitinteger- Number of items to return per page (max 100).
affinity_v2_list_company_field_valuesPaginates through field values on a single company.Read-onlyList Company Field Values (V2)
Paginates through field values on a single company. Enriched, global, and relationship-intelligence fields are included by default; use ids or types to filter. List fields are not returned here — use the list entry fields endpoints instead.
Inputs
company_idintegerrequired- The unique numeric ID of the company.
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
idsarray- Field IDs to filter the returned field values to. Mutually exclusive with types.
limitinteger- Number of items to return per page (max 100).
typesarray- Field type categories to filter the returned field values to. Mutually exclusive with ids.
affinity_v2_list_company_fieldsReturns metadata on non-list-specific company fields, including each field's ID and value type.Read-onlyList Company Fields (V2)
Returns metadata on non-list-specific company fields, including each field's ID and value type. Use the returned field IDs with the list/get company endpoints to request field data.
Inputs
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
filterstring- Filter expression restricting the results. See Affinity's filtering syntax docs for the fields and operators supported by this endpoint.
affinity_v2_list_company_list_entriesPaginates through the list entries (rows) for a given company across all lists it appears on, including list-specific field data and creation metadata.Read-onlyList Company List Entries (V2)
Paginates through the list entries (rows) for a given company across all lists it appears on, including list-specific field data and creation metadata.
Inputs
company_idintegerrequired- The unique numeric ID of the company.
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
limitinteger- Number of items to return per page (max 100).
affinity_v2_list_company_listsPaginates through all lists where the given company appears as an entry and that the caller has access to view.Read-onlyList Company's Lists (V2)
Paginates through all lists where the given company appears as an entry and that the caller has access to view.
Inputs
company_idintegerrequired- The unique numeric ID of the company.
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
limitinteger- Number of items to return per page (max 100).
affinity_v2_list_company_notesReturns notes for a given company, including directly attached notes, notes on meetings the company attended (for persons), and notes where the company is mentioned.Read-onlyList Company Notes (V2)
Returns notes for a given company, including directly attached notes, notes on meetings the company attended (for persons), and notes where the company is mentioned. Supports filtering via the filter parameter.
Inputs
company_idintegerrequired- The unique numeric ID of the company.
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
filterstring- Filter expression restricting the results. See Affinity's filtering syntax docs for the fields and operators supported by this endpoint.
limitinteger- Number of items to return per page (max 100).
affinity_v2_list_company_relationshipsReturns the relationships for a given company, including an interaction score (0.0-1.0) measuring relationship strength based on emails, meetings, and other interactions.Read-onlyList Company Relationships (V2)
Returns the relationships for a given company, including an interaction score (0.0-1.0) measuring relationship strength based on emails, meetings, and other interactions. Useful for finding the best warm introduction path.
Inputs
company_idintegerrequired- The unique numeric ID of the company.
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
limitinteger- Number of items to return per page (max 100).
affinity_v2_list_list_entriesPaginates through every entry (row) on a given list — a list's actual contents/pipeline view.Read-onlyList List Entries (V2)
Paginates through every entry (row) on a given list — a list's actual contents/pipeline view. The existing V2 tools only go the opposite direction (affinity_v2_list_company_list_entries / affinity_v2_list_person_list_entries list which lists a company/person appears on); there was no way to browse what's ON a list.
Inputs
list_idintegerrequired- The unique numeric ID of the list.
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
limitinteger- Number of items to return per page (max 100).
affinity_v2_list_person_field_valuesPaginates through field values on a single person.Read-onlyList Person Field Values (V2)
Paginates through field values on a single person. Enriched, global, and relationship-intelligence fields are included by default; use ids or types to filter. List fields are not returned here — use the list entry fields endpoints instead.
Inputs
person_idintegerrequired- The unique numeric ID of the person.
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
idsarray- Field IDs to filter the returned field values to. Mutually exclusive with types.
limitinteger- Number of items to return per page (max 100).
typesarray- Field type categories to filter the returned field values to. Mutually exclusive with ids.
affinity_v2_list_person_fieldsReturns metadata on non-list-specific person fields, including each field's ID and value type.Read-onlyList Person Fields (V2)
Returns metadata on non-list-specific person fields, including each field's ID and value type. Use the returned field IDs with the list/get person endpoints to request field data.
Inputs
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
filterstring- Filter expression restricting the results. See Affinity's filtering syntax docs for the fields and operators supported by this endpoint.
affinity_v2_list_person_list_entriesPaginates through the list entries (rows) for a given person across all lists it appears on, including list-specific field data and creation metadata.Read-onlyList Person List Entries (V2)
Paginates through the list entries (rows) for a given person across all lists it appears on, including list-specific field data and creation metadata.
Inputs
person_idintegerrequired- The unique numeric ID of the person.
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
limitinteger- Number of items to return per page (max 100).
affinity_v2_list_person_listsPaginates through all lists where the given person appears as an entry and that the caller has access to view.Read-onlyList Person's Lists (V2)
Paginates through all lists where the given person appears as an entry and that the caller has access to view.
Inputs
person_idintegerrequired- The unique numeric ID of the person.
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
limitinteger- Number of items to return per page (max 100).
affinity_v2_list_person_notesReturns notes for a given person, including directly attached notes, notes on meetings the person attended (for persons), and notes where the person is mentioned.Read-onlyList Person Notes (V2)
Returns notes for a given person, including directly attached notes, notes on meetings the person attended (for persons), and notes where the person is mentioned. Supports filtering via the filter parameter.
Inputs
person_idintegerrequired- The unique numeric ID of the person.
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
filterstring- Filter expression restricting the results. See Affinity's filtering syntax docs for the fields and operators supported by this endpoint.
limitinteger- Number of items to return per page (max 100).
affinity_v2_list_person_relationshipsReturns the relationships for a given person, including an interaction score (0.0-1.0) measuring relationship strength based on emails, meetings, and other interactions.Read-onlyList Person Relationships (V2)
Returns the relationships for a given person, including an interaction score (0.0-1.0) measuring relationship strength based on emails, meetings, and other interactions. Useful for finding the best warm introduction path.
Inputs
person_idintegerrequired- The unique numeric ID of the person.
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
limitinteger- Number of items to return per page (max 100).
affinity_v2_list_personsPaginates through persons in your Affinity organization using the V2 API.Read-onlyList Persons (V2)
Paginates through persons in your Affinity organization using the V2 API. Returns basic information; pass field_ids or field_types to also receive field data (omit both to skip field data entirely).
Inputs
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
field_idsarray- Specific field IDs to return field data for. Mutually exclusive with field_types.
field_typesarray- Category of fields to return field data for. Mutually exclusive with field_ids.
idsarray- Filter to specific person IDs.
limitinteger- Number of items to return per page (max 100).
affinity_v2_search_companiesSearches companies matching a combination of filters, sorts, and a search term.Read-onlySearch Companies (V2)
Searches companies matching a combination of filters, sorts, and a search term. Omitting the request body is equivalent to listing all companies with default pagination. Requires the appropriate export permission.
Inputs
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
field_idsarray- Specific field IDs to return field data for. Mutually exclusive with field_types.
field_typesarray- Category of fields to return field data for. Mutually exclusive with field_ids.
filtersobject- A logical group of filter conditions combined with AND/OR, optionally nested. Up to 50 items per group.
limitinteger- Number of items to return per page (max 100).
searchobject- A single keyword or phrase to match against field values.
sortsarray- Up to 5 sort criteria, applied in order.
total_countboolean- When true, includes the total matching count in the pagination response. Adds query cost; use only when needed.
affinity_v2_search_personsSearches persons matching a combination of filters, sorts, and a search term.Read-onlySearch Persons (V2)
Searches persons matching a combination of filters, sorts, and a search term. Omitting the request body is equivalent to listing all persons with default pagination. Requires the appropriate export permission.
Inputs
cursorstring- Pagination cursor from a previous response's nextUrl/cursor.
field_idsarray- Specific field IDs to return field data for. Mutually exclusive with field_types.
field_typesarray- Category of fields to return field data for. Mutually exclusive with field_ids.
filtersobject- A logical group of filter conditions combined with AND/OR, optionally nested. Up to 50 items per group.
limitinteger- Number of items to return per page (max 100).
searchobject- A single keyword or phrase to match against field values.
sortsarray- Up to 5 sort criteria, applied in order.
total_countboolean- When true, includes the total matching count in the pagination response. Adds query cost; use only when needed.
affinity_add_to_listAdd a person or organization to an Affinity list by creating a new list entry.WriteAdd to List
Add a person or organization to an Affinity list by creating a new list entry. Use this to add a founder to a deal pipeline, add a company to a watchlist, or track a new contact in a relationship list. Provide either entity_id for persons/organizations.
Inputs
entity_idintegerrequired- ID of the person or organization to add to the list
list_idintegerrequired- ID of the Affinity list to add the entity to
affinity_create_noteCreate a note on a person, organization, or opportunity in Affinity.WriteCreate Note
Create a note on a person, organization, or opportunity in Affinity. Notes support plain text content and can be attached to multiple entity types simultaneously. Use this to log meeting summaries, due diligence findings, or relationship context directly on a CRM record.
Inputs
contentstringrequired- Plain text content of the note
opportunity_idsarray- List of opportunity IDs to attach this note to
organization_idsarray- List of organization IDs to attach this note to
person_idsarray- List of person IDs to attach this note to
affinity_create_opportunityCreate a new deal or opportunity record in Affinity and add it to a pipeline list.WriteCreate Opportunity
Create a new deal or opportunity record in Affinity and add it to a pipeline list. Supports associating persons and organizations, setting the deal name, and assigning an owner. Ideal for logging inbound deals or sourcing new investment targets.
Inputs
list_idintegerrequired- ID of the Affinity list to add this opportunity to
namestringrequired- Name of the opportunity or deal
organization_idsarray- List of Affinity organization IDs to associate with this opportunity
person_idsarray- List of Affinity person IDs to associate with this opportunity
affinity_create_organizationCreate a new organization/company record in Affinity.WriteCreate Organization
Create a new organization/company record in Affinity. The connector could already search and get organizations but had no way to create one. Optionally link the new organization to existing persons immediately.
Inputs
namestringrequired- Name of the organization to create.
domainstring- The organization's primary web domain.
person_idsarray- List of Affinity person IDs to associate with this organization.
affinity_create_personCreate a new person record in Affinity.WriteCreate Person
Create a new person record in Affinity. The connector could already search and get persons but had no way to create one.
Inputs
emailsarrayrequired- Email addresses for the person. Pass an empty array if none are known.
first_namestringrequired- The person's first name.
last_namestringrequired- The person's last name.
organization_idsarray- List of Affinity organization IDs to associate with this person.
affinity_note_updateUpdate the text content of an existing note in Affinity.WriteUpdate Note
Update the text content of an existing note in Affinity. affinity_create_note and affinity_list_notes exist but there was no way to edit a note afterward.
- Idempotent
Inputs
contentstringrequired- The new plain text content of the note, replacing the existing content.
note_idintegerrequired- Unique numeric ID of the note to update.
affinity_update_opportunityUpdate an existing deal or opportunity in Affinity.WriteUpdate Opportunity
Update an existing deal or opportunity in Affinity. Supports renaming the deal, adding or removing associated persons and organizations. Use this to reflect changes in deal status, team assignment, or company involvement during a pipeline review.
- Idempotent
Inputs
opportunity_idintegerrequired- Unique numeric ID of the opportunity to update
namestring- Updated name for the opportunity
organization_idsarray- Updated list of Affinity organization IDs associated with this opportunity
person_idsarray- Updated list of Affinity person IDs associated with this opportunity
affinity_update_organizationUpdate an existing organization's name, domain, or person associations in Affinity.WriteUpdate Organization
Update an existing organization's name, domain, or person associations in Affinity.
- Idempotent
Inputs
organization_idintegerrequired- Unique numeric ID of the organization to update.
domainstring- Updated primary web domain for the organization.
namestring- Updated name for the organization.
person_idsarray- Updated list of Affinity person IDs associated with this organization. Replaces the full set of linked persons.
affinity_update_personUpdate an existing person's name, emails, or organization associations in Affinity.WriteUpdate Person
Update an existing person's name, emails, or organization associations in Affinity.
- Idempotent
Inputs
person_idintegerrequired- Unique numeric ID of the person to update.
emailsarray- Updated list of email addresses for the person. Replaces the full set.
first_namestring- Updated first name.
last_namestring- Updated last name.
organization_idsarray- Updated list of Affinity organization IDs associated with this person. Replaces the full set.
affinity_v2_update_company_field_valueUpdates a single field's value on a company.WriteUpdate Company Field Value (V2)
Updates a single field's value on a company. Only non-list fields can be written this way; use the list entry field endpoints for list-specific fields.
- Idempotent
Inputs
company_idintegerrequired- The unique numeric ID of the company.
field_idstringrequired- The ID of the field to update.
valuestring- The new value for the field. Shape depends on the field's value type (string, number, date, dropdown option ID, etc).
affinity_v2_update_person_field_valueUpdates a single field's value on a person.WriteUpdate Person Field Value (V2)
Updates a single field's value on a person. Only non-list fields can be written this way; use the list entry field endpoints for list-specific fields.
- Idempotent
Inputs
field_idstringrequired- The ID of the field to update.
person_idintegerrequired- The unique numeric ID of the person.
valuestring- The new value for the field. Shape depends on the field's value type (string, number, date, dropdown option ID, etc).
affinity_delete_opportunityPermanently delete a deal or opportunity from Affinity.DestructiveDelete Opportunity
Permanently delete a deal or opportunity from Affinity. Create/Get/List/Update already exist for opportunities (affinity_create_opportunity, affinity_get_opportunity, affinity_list_opportunities, affinity_update_opportunity) but Delete did not.
- Idempotent
Inputs
opportunity_idintegerrequired- Unique numeric ID of the opportunity to delete.
affinity_delete_organizationPermanently delete an organization from Affinity.DestructiveDelete Organization
Permanently delete an organization from Affinity. This also removes it from any lists and detaches it from associated notes and opportunities.
- Idempotent
Inputs
organization_idintegerrequired- Unique numeric ID of the organization to delete.
affinity_delete_personPermanently delete a person from Affinity.DestructiveDelete Person
Permanently delete a person from Affinity. This also removes them from any lists and detaches them from associated notes and opportunities.
- Idempotent
Inputs
person_idintegerrequired- Unique numeric ID of the person to delete.
affinity_note_deletePermanently delete a note from Affinity.DestructiveDelete Note
Permanently delete a note from Affinity.
- Idempotent
Inputs
note_idintegerrequired- Unique numeric ID of the note to delete.
affinity_remove_from_listRemove a person, organization, or opportunity from a list by deleting its list entry.DestructiveRemove from List
Remove a person, organization, or opportunity from a list by deleting its list entry. affinity_add_to_list creates entries with no corresponding removal tool until now.
- Idempotent
Inputs
list_entry_idintegerrequired- The ID of the list entry to remove.
list_idintegerrequired- ID of the Affinity list the entry belongs to.
No tools match.