# Enrolling Contact in Workflow Through JSON

**URL:** <https://community.hubspot.com/t/enrolling-contact-in-workflow-through-json/93842>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [November 13, 2023, 6:56am UTC](https://community.hubspot.com/t/enrolling-contact-in-workflow-through-json/93842 "2023-11-13T06:56:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nychd](https://avatars.discourse-cdn.com/v4/letter/n/a9adbd/32.png) [@nychd](https://community.hubspot.com/u/nychd)\
**Post date:** [November 13, 2023, 6:56am UTC](https://community.hubspot.com/t/enrolling-contact-in-workflow-through-json/93842/1 "2023-11-13T06:56:00Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 13, 2023, 9:48pm UTC](https://community.hubspot.com/t/enrolling-contact-in-workflow-through-json/93842/2 "2023-11-13T21:48:08Z")

</div>

Hey, @nychd 👋 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**](https://legacydocs.hubspot.com/docs/methods/workflows/add_contact), 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

---

<div class="post-metadata">

**Author:** ![nychd](https://avatars.discourse-cdn.com/v4/letter/n/a9adbd/32.png) [@nychd](https://community.hubspot.com/u/nychd)\
**Post date:** [November 13, 2023, 9:50pm UTC](https://community.hubspot.com/t/enrolling-contact-in-workflow-through-json/93842/3 "2023-11-13T21:50:21Z")

</div>

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](https://community.hubspot.com/t5/APIs-Integrations/Enroll-to-workflow-via-API/td-p/660495)
