There's a new version of the HubSpot API

We're also working on a new documentation website, you're invited to check it out and give us your feedback.

Get workflow

Last updated May 15, 2023

GET /automation/v3/workflows/:workflowId

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

Method Details

HTTP Methods:

GET

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

Marketing

Returns metadata for a workflow, including the starting conditions and workflow steps. Workflow IDs can be found by using the get all workflows endpoint.

When using this API, only certain actions are supported. If unsupported actions are included, the action type returned will be UNSUPPORTED_ACTION. For a list of supported actions, refer to the Supported Actions table

Required Parameters How to use Description
OAuth access token or private app access token Authorization: Bearer {token} header 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.
Optional Parameters How to use Description
errors=true Used in the request URL includes coded workflow validation errors and warnings at various points throughout the workflow structure.
stats=true Used in the request URL includes the number of contacts enrolled, active, completed and that have joined the goal list within the metaData object; also includes the CTR of email actions in the workflow within those action objects as a "clickThroughRatio” field

Example URL to GET:  https://api.hubapi.com/automation/v3/workflows/10900