Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

HubSpot

HubSpot connects Yapr to your HubSpot CRM contacts, companies, deals, service tickets, object associations, record owners, pipelines, and property definitions.
See the HubSpot tools and API reference to match any Yapr hubspot_* tool to its HubSpot CRM API endpoint and access level.

How authentication works

HubSpot uses an Organization connection in Yapr. A workspace owner or admin saves a HubSpot Private App access token for the workspace. If you use managed customer workspaces, HubSpot is off by default for customer workspaces unless a workspace admin enables it.
Yapr sends requests to https://api.hubapi.com using the saved Access Token in the Authorization: Bearer header.

Prepare HubSpot

Create a dedicated HubSpot Private App with only the CRM scopes your team needs before connecting in Yapr.
  1. Confirm HubSpot permissions
    Sign in to HubSpot as a Super Admin (or an administrator allowed to create Private Apps) in the HubSpot account you want to connect.
  2. Create a Private App and choose scopes
    1. Open Settings → Integrations → Private Apps in HubSpot.
    2. Create a new Private App with a clear name (for example, Yapr).
    3. Under Scopes, select only the CRM read scopes matching the records your team needs (see the HubSpot API reference):
      • Contacts read access for hubspot_search_contacts and hubspot_get_contact
      • Companies read access for hubspot_search_companies and hubspot_get_company
      • Deals read access for hubspot_search_deals and hubspot_get_deal
      • Tickets read access for hubspot_search_tickets and hubspot_get_ticket
      • Owners read access for hubspot_list_owners
      • Deals write access only if your team plans to create deals with hubspot_create_deal
    4. Create the app and copy the generated Access Token.
    Keep the Private App access token out of chat messages and tickets. Use a dedicated Private App for Yapr so you can adjust scopes or rotate the token without affecting other integrations.

Connect in Yapr

  1. Save the HubSpot connection
    1. Open Apps → HubSpot in Yapr and select Add connection.
    2. Paste only the raw Private App token into Access Token (without a Bearer prefix).
    3. Select Connect.
    Yapr saves the connection as Configured and checks the token with HubSpot on the first real tool call.
  2. Verify with a read-only call
    1. Open Tools & access and assign a read-only tool such as hubspot_list_owners or hubspot_list_pipelines.
    2. From a connected AI client, list owners (hubspot_list_owners with a small limit) or deal pipelines (hubspot_list_pipelines with objectType: "deals"), then confirm the call succeeded in Audit.

Rotate credentials

  1. Rotate the token on your Yapr Private App under Settings → Integrations → Private Apps in HubSpot.
  2. Open Apps → HubSpot → Manage connection in Yapr, paste the new Access Token, and select Save changes.
  3. Run a small read call (such as hubspot_list_owners with limit: 5) and confirm it succeeds in Audit.

Permissions, confirmations, and access controls

  • Access controls: Connecting HubSpot does not grant every member every tool. Workspace owners and admins control which groups and users can run each HubSpot tool in Tools & access and App limits. See Understand access.
  • Reads vs. writes: 13 of the 14 HubSpot tools are read-only, including the four search tools (hubspot_search_contacts, hubspot_search_companies, hubspot_search_deals, and hubspot_search_tickets), which use POST only to query CRM records. The single write tool is hubspot_create_deal. Updating or deleting records stays in HubSpot.
  • Confirmations: When a person runs hubspot_create_deal interactively from an AI client, they approve the call in the client. Unattended calls require Yapr confirmation for write tools, and workspace policy can require confirmation on additional actions.
  • Paging and property selection: Search tools return 20 results by default (up to 100) and paginate with the after cursor. Pass properties to limit the fields returned on search and get calls.

What your AI client can work with

Yapr’s HubSpot app provides 14 tools (13 reads and 1 write):
AreaExamples
ContactsSearch contacts by name, email, phone, or company (hubspot_search_contacts) and inspect one contact by ID (hubspot_get_contact)
CompaniesSearch companies by name or domain (hubspot_search_companies) and inspect one company by ID (hubspot_get_company)
DealsSearch deals (hubspot_search_deals), inspect a deal (hubspot_get_deal), and create a new deal (hubspot_create_deal)
Service ticketsSearch HubSpot service tickets (hubspot_search_tickets) and inspect one ticket by ID (hubspot_get_ticket)
AssociationsList associations between two CRM object types (hubspot_list_associations) and inspect valid association labels (hubspot_list_association_labels)
CRM metadataList record owners (hubspot_list_owners), list pipelines and stages (hubspot_list_pipelines), and list property definitions (hubspot_list_properties)

Creating deals with valid IDs

hubspot_create_deal expects internal HubSpot IDs for pipeline, dealstage, and hubspot_owner_id, and an ISO 8601 date string for closedate (for example, 2026-06-30). Run hubspot_list_pipelines (with objectType: "deals") and hubspot_list_owners first to look up the exact IDs.
HubSpot tools and API reference
Search all 14 HubSpot tools and match each one to its HubSpot CRM API endpoint and access level.

Troubleshooting

Missing Access Token or insufficient workspace role
Missing required field: Access Token or Only owners and admins can configure org-level services
Cause: The Access Token field was left blank, or a non-admin member attempted to configure the shared organization connection.
Fix: Have a workspace owner or admin open Apps → HubSpot, paste the Private App token into Access Token, and save.
HubSpot returns 401 Unauthorized
Cause: The Private App Access Token is invalid, rotated, or revoked, or was pasted with a leading Bearer prefix.
Fix: Paste only the raw token from Settings → Integrations → Private Apps without Bearer in Apps → HubSpot → Manage connection, select Save changes, and retry a read call.
HubSpot returns 403 Forbidden on specific tools
Cause: The HubSpot Private App does not include the scope required for that CRM object or action (for example, Deals write scope for hubspot_create_deal, or Owners read scope for hubspot_list_owners).
Fix: Edit the Private App’s scopes under Settings → Integrations → Private Apps in HubSpot to add the needed scope, then retry the call.
Creating a deal fails with a validation error
Cause: pipeline, dealstage, or hubspot_owner_id used display names instead of internal HubSpot IDs, or closedate was not formatted as an ISO 8601 date.
Fix: Call hubspot_list_pipelines (objectType: "deals") and hubspot_list_owners to copy exact IDs, and pass closedate in YYYY-MM-DD or ISO 8601 format.
Teammates cannot see or run HubSpot tools
Cause: Saving the organization connection supplies the credential, but tool visibility is governed by workspace permissions.
Fix: Open Tools & access in Yapr and assign the required HubSpot tools to the appropriate groups or users. See Understand access.