Enroll a HubSpot contact into a workflow programmatically using the Workflows API

domain: developers.hubspot.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Identify the workflow ID from the HubSpot UI (Settings > Workflows > workflow URL contains the ID) or via GET /automation/v3/workflows to list all workflows
  2. Verify the target workflow has enrollment trigger type set to allow manual enrollment — workflows with only list-based or property-based triggers may reject manual enrollments
  3. POST to /automation/v3/workflows/{workflowId}/enrollments/contacts/{contactId} with an empty body and your private app token as the Bearer token in the Authorization header
  4. Expect a 204 No Content response on success; a 400 indicates the contact is already enrolled or the workflow does not permit re-enrollment
  5. To unenroll, send DELETE to the same path — this removes the contact from the active workflow execution without marking them as completed
  6. For bulk enrollments across many contacts, rate-limit your requests to stay within HubSpot's API rate limits and use a queue with retry logic for 429 responses

Known gotchas

Related routes

Programmatically enroll a HubSpot contact into a workflow using the Automation API enrollment endpoint
developers.hubspot.com · 6 steps · unrated
Enroll a HubSpot contact into a specific workflow via API
developers.hubspot.com · 4 steps · unrated
Use the HubSpot Automation API to programmatically create a workflow with a Contact enrollment trigger and a sequence of actions including a delay and a property update
hubspot.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans