SCALIX help

← All tools

hubspot_list_pipelines

HubSpot read low risk

Part of the HubSpot Agent.

What it does

List all deal pipelines configured in the HubSpot portal. Returns the standard envelope {success:true,data} where data is HubSpot's {results:[...]}: the pipelines, each with id (the internal id required when creating/updating deals), label, displayOrder, createdAt/updatedAt, and its stages (id, label, displayOrder, metadata.isClosed/probability). Use to resolve a human pipeline name (e.g., 'Sales Pipeline') to the internal pipeline id before hubspot_create_deal / hubspot_update_deal, and to understand the stage layout for mapping LinkedIn-lead progression. [POLICY] Pipeline configuration is the authorizing client's own portal metadata; use it only to operate within that client's CRM and never to compare or move data across clients.

Inputs

NameTypeRequiredDescription
object_typestringnoCRM object type whose pipelines to list. Defaults to "deals".

Safeguards

Policy

Pipeline configuration is the authorizing client's own portal metadata; use it only to operate within that client's CRM. NEVER use it to compare, move, or commingle data across clients/unaffiliated accounts.

Reminder

Use the returned internal pipeline id (not the label) for deal create/update.

Errors

Error classMeansWhat to doRetry
authInvalid or expired OAuth token / session (401 Unauthorized).Refresh the HubSpot OAuth token and retry; do not reuse the rejected token.no
permissionToken lacks crm.objects.deals.read (pipelines read) scope (403 Forbidden).Grant the deals/pipelines read scope and reconnect; surface the missing scope.no
validationHubSpot 400: invalid object_type. Surface HubSpot's exact message.Use a valid object type (e.g., deals) and retry.no
not_foundNo pipelines exist for the object type, or object type not found (404).Confirm the object type; an empty deals portal is unusual -- report clearly.no
rate_limitHubSpot 429 Too Many Requests (TEN_SECONDLY_ROLLING or daily policy).Honor Retry-After/X-HubSpot-RateLimit-*; back off with jitter; cache results to avoid repeat calls.yes
platformHubSpot server error (500/502/503).Retry with exponential backoff; if persistent, report HubSpot unavailability.yes

Edge cases

  • Multiple pipelines: a portal may have several deal pipelines; pick the correct id, do not assume 'default'.
  • Stages are embedded in each pipeline response, ordered by displayOrder -- no separate call needed for a quick map.
  • label vs id: never pass the human label to create/update; only the id is accepted.
  • Configuration is mostly static -- safe to cache for the session to reduce rate-limit pressure.
  • Empty/edge: pipelines list is small and not paginated; treat the full data.results array as authoritative.