Scope requirements
Scope requirements
- Get a list of sequences
- Get a specific sequence
- Enroll a contact in a sequence
- View a contact’s enrollment status
- Get a list of sequences
- Enroll a contact in a sequence
- Review the enrollment status
Fetch a sequence
To get details about a specific sequence in your account, make aGET request to /automation/sequences/2026-03/{sequenceId}?userId={userId}, where the sequenceId is the ID of an existing sequence in your account.
For example, to get details about a sequence that ID is 123456789 and your user ID is 2222222, make a GET request to /automation/sequences/2026-03/123456789?userId=2222222. Use the ID of the specific sequence as the sequenceId in the request URL and use your userId as a query parameter.
The response for fetching a sequence would resemble the following:
List sequences
To get details about a specific sequence in your account, make aGET request to /automation/sequences/2026-03?limit=#&userId={userId}. Use the amount of sequences you want returned as the limit in the request URL and use your userID as a query parameter.
For example, to get a list of four sequences and your user ID is 2222222, make a GET request to /automation/sequences/2026-03?limit=4&userId=2222222.
The response for fetching a list of sequences would resemble the following:
Enroll a contact in a sequence
To enroll a contact in a sequence, make aPOST request to /automation/sequences/2026-03/enrollments. Use your user ID as the query parameter. Specify the sequenceId, contactId, and senderEmail in the body. The senderEmail must be an email address that’s connected to your HubSpot account.
For example, to enroll a contact whose ID is 33333 in sequence that’s ID is 44444444, you’d make a POST request to /automation/sequences/2026-03/enrollments.
The body would resemble the following:
View a contact’s sequence enrollment status
A contact’s enrollment status will indicate if the contact is enrolled in any sequences at the time of the request. To get a contact’s enrollment status, make aGET request to /automation/sequences/2026-03/enrollments/contact/{contactId}.
For example, to view the enrollment status of a contact whose contact ID is 33333, make a GET request to /automation/sequences/2026-03/enrollments/contact/33333. Use the contact ID as the query parameter.
The response for viewing a contact’s sequence enrollment status would resemble the following: