Enroll contact to a workflow

Highlighted
Not applicable

Hi,
I’m trying to enrol a created contact to an existing workflow.
I’m using the API with the endpoint:

https://api.hubapi.com/automation/v2/workflows/XXXXXXX/enrollments/contacts/aa@aa.com?hapikey=YYYY

Where X is the workflow ID, aa@aa.com is the contact email and Y the Api key.

I’m getting the error 405 and no response or error messages.

This is a POST request, should I include the CURLOPT_POSTFIELDS with an array with the params? If yes, what should be the structure?

Thank you.

Rodrigo

Reply
0 Upvotes
3 Replies 3
Highlighted
HubSpot Moderator

Hi @Rodrigo_Alexsandro,

Can you send me a link to the workflow in question so that I can take a look? There aren’t any body parameters that need to be included for this endpoint.

Reply
0 Upvotes
Highlighted
Not applicable

Hi Derek.

The link to the workflow is
https://app.hubspot.com/workflows/2451837/flow/2580798/edit

Thank you.

Reply
0 Upvotes
Highlighted
HubSpot Moderator

Hi @Rodrigo_Alexsandro,

That workflow doesn’t appear to exist. Is it possible that the workflow in question was deleted by accident?

Reply
0 Upvotes