Skip to main content
POST
CRM
Read at POST /v1/tools/crm/<read> using a connection. Agent tools: oneshot_crm_<read>; writes have none. Pick connection_id from GET /v1/connections by system and account_label. Nothing fetched is stored or logged.

Input

Output

Records carry id, updated_at, source: { system, id }. Unavailable fields are null; owner/stage identify system values. HubSpot’s associated company: requested, else primary, else lowest id; a ticket’s is its primary company. Activity type: email, call, meeting, note, task; summary is at most 500 characters; direction covers emails, and calls when recorded. Filters apply per page; continue while next_cursor is present. Follow Up Boss and Affinity mappings and limitations.

Errors

Before payment: 404 connection_not_found, 400 connection_wrong_system, inactive 409, 503 not_configured; Salesforce tickets or activity 400 unsupported_read; a HubSpot sign-in missing the ticket or email permission 409 connection_scope_missing (Reconnect). Later: 503 rate_limited, 503 system_unavailable, 409 connection_expired, refunded as credit.

Write to the CRM

Writes need approval unless agent policy allows them; approval names the system, record and changed values. Send Idempotency-Key; after approval retry unchanged with X-Approval-Id. Same-key retries never repeat writes. Upserts change only supplied fields. A stage outside the deal’s pipeline returns 400 invalid_stage before approval. Salesforce: notes only. write_outcome_unknown: inspect the CRM before using another key. Only the approval keeps a note or task body. See Pricing.
Answers: id, source; created (upsert), updated_at (deal), created_at (others).