There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API Keys are being deprecated and are no longer supported. Continued use of HubSpot API Keys is a security risk to your account and data. Your API Keys could be deactivated at any time after Nov. 30th, and we recommend that you migrate to Private Apps as soon as possible so you do not lose business-critical functionality.

Enroll a contact into a workflow

Last updated June 17, 2020

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

Note: The Workflows API currently only supports contact-based workflows.

Method Details

HTTP Methods:


Content Type:


Response Format:


Requires Authentication?


Rate Limited?






Add a contact to a workflow.

You will want to use this in the event that a contact meets a set of criteria that makes enrolling them in a workflow relevant to them, for example downloading a whitepaper and then getting enrolled in a workflow that sends emails based on the content of that whitepaper.

Required Parameters How to use Description
OAuth Access Token or API Key Authorization: Bearer {token} header
or hapikey={key} query parameter.
Used to authenticate the request. Please see this page for more details about authentication.
Workflow ID Used in the request URL The ID of the workflow you wish to see metadata for.
Email Address Used in the request URL The email of the contact you wish to enroll in the workflow.
Optional Parameters How to use Description
None None No optional parameters for this method.

If the request succeeds, you'll get an HTTP 204 response.