Enrolling Contact in Workflow Through JSON

Hi folks,

I’m trying to understand how to enroll a contact in a workflow using JSON.

What is the most up to date way to do it? Every link I click seems to take me to another version of the API.

Thanks!

Hey, @nychd :waving_hand: Can you link me to one or two of the documentation pages for the Workflow API that you’ve found? I want to make sure I’m looking at the same resource you are looking at. For example, the endpoint Enroll a contact into a workflow, is the current stable and supported endpoint for workflow enrollment and contacts. This endpoint sends the email address as a query param and not as a JSON request body.

POST /automation/v2/workflows/:workflowId/enrollments/contacts/:email

Best,

Jaycee

I just solved the issue I was having - I was using the wrong workflow ID. It’s not the ID found in the URL like it is with contacts

This is the post that pointed me in the right direction:

https://community.hubspot.com/t5/APIs-Integrations/Enroll-to-workflow-via-API/td-p/660495