Error when adding to sequence via API

Hello!

I am trying to use the new Sequences API to enroll a contact to a sequence, using this endpoint.

However I get the following error:

User .. for Portal .. has no connected inboxes, which are required in order to enroll from the public API

I am aware that we need to connect an inbox, and have done so with that user. In fact, I can successfully enroll the same contact I tried with the API to the sequence via the UI.

I have triple checked userId, contactId, sequenceId and used the users’ e-mail as the senderEmail.

Any ideas?

Hey, @DevUserGems :waving_hand: Did you get this worked out? Or are you still running into the same issue? — Jaycee

Hello!

Thank you for looking into it. Yes, it did work now for the same payload I had on the script.

Edit: I realized the error was sending incorret “sendEmail”. It must match the linked inbox. I was sending the user’s e-mail, not the one connected as inbox.

Can I ask something else though? I was able to successfully enroll a contact using our production account. Then, I went to the developer account and did the same thing, but I get the same generic error with all contacts I try (HTTP 400).

{"status":"error","message":"Something went wrong.","errorType":"SequenceError.INTERNAL_ERROR","correlationId":"0a46e2ac-355c-4789-97a9-307adfcd20b0"}

Then, I went to the UI and tryed enrolling from there and saw that all contacts from the test account we use are showing this message:

I should add that I even created random domain e-mails and still got this message.

Are we not able to use the test accounts for developing sequence integration right now or is it something I can set up?

Hey, @DevUserGems :waving_hand: That’s a great question :light_bulb:

I believe I found our answer. It’s not documented under the Developer Test Account documentation, but it is in the Sandbox knowledge base. Essentially, with these test accounts, you can only make sends to other existing users in the test account. So you’ll need to create a Contact record using the same email you have set up for your user. Once you do that, the Contact record for your User should be an option in the Sequence enrollment.

Screenshot after I created a Contact for my User

Talk soon! — Jaycee

Thanks a lot for the help! That was indeed the case.

Boom :collision: Glad to hear that. Have a fantastic weekend! — Jaycee