Sequences API - SequenceError.EXTERNAL_CLIENT_EXCEPTION (status 500)

I am attempting to enroll a contact to a sequence via OAuth token but am getting status 500 error `SequenceError.EXTERNAL_CLIENT_EXCEPTION`.

I am quite certain that I am passing valid parameters for contactId, senderEmail, sequenceId, and userId (they should all exist within the portal). I don’t necessarily know if the email I am passing through is the specific email connected to the target sequence (though I’m not sure that this is a requirement for the API as the docs don’t specify).

Has anyone had any success with debugging SequenceError.EXTERNAL_CLIENT_EXCEPTION errors or have any suggestions regarding how to troubleshoot?

Solved - make sure you are using the correct userId. There can be multiple userIds (check the getOwners API: Accounts Dashboard | HubSpot) and if you use the wrong one, it will throw SequenceError.EXTERNAL_CLIENT_EXCEPTION. To leverage sequences enrollment API, you need to use the one stored under `userId` in the owners API response object.