# Sequences API - SequenceError.EXTERNAL\_CLIENT\_EXCEPTION (status 500)

**URL:** <https://community.hubspot.com/t/sequences-api-sequenceerror-external-client-exception-status-500/127253>\
**Category:** APIs & Integrations\
**Tags:** workflows\
**Created:** [March 4, 2025, 2:59am UTC](https://community.hubspot.com/t/sequences-api-sequenceerror-external-client-exception-status-500/127253 "2025-03-04T02:59:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TSah](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@TSah](https://community.hubspot.com/u/TSah)\
**Post date:** [March 4, 2025, 2:59am UTC](https://community.hubspot.com/t/sequences-api-sequenceerror-external-client-exception-status-500/127253/1 "2025-03-04T02:59:25Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![TSah](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@TSah](https://community.hubspot.com/u/TSah)\
**Post date:** [March 4, 2025, 4:09am UTC](https://community.hubspot.com/t/sequences-api-sequenceerror-external-client-exception-status-500/127253/2 "2025-03-04T04:09:28Z")

</div>

Solved - make sure you are using the correct userId. There can be multiple userIds (check the getOwners API: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/reference/api/crm/owners)) 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.
