Error 500 from Conversations inbox and messages APIs (BETA

In the Conversations inbox and messages APIs, specifically the api used to Get threads. when I specify an inboxId as a param, I get a server error. I have attached the full message shown.


https://api.hubapi.com/conversations/v3/conversations/threads?inboxId=12345

@HRahem - Quick response here, but others may have better information.

I have had to experiment quite a bit with the APIs and responses in ths space - the documentation is missing a lot of detail.

My working approach is to use Thread ID as the foundation (and this can be obtained in the context of a Conversation workflow triggered on a specific Inbox.

Then, in Python, you can construct the right query URL:

base_url=“https://api.hubapi.com/conversations/v3/conversations/threads/

request_url = base_url+threadID+‘/’+‘messages’

Hope this is helpful.

Steve

This is a good solution, However, my goal was to get all the conversation history from a specific inbox. Which would require me to fetch all the threads from all inboxes, and then filter by the specific inboxId.

Hi @HRahem

If you want to get thread of inbox then you can get all thread of your inbox using below CURL:

curl --request GET \

--url https://api.hubapi.com/conversations/v3/conversations/threads \

--header ‘authorization: Bearer YOUR_ACCESS_TOKEN’

Hope this will helps you out. Please mark it as Solution Accepted & Upvote to help other Community member.
Thanks!

Hi @GRajput,

Thanks for the input. As I mentioned in my reply to @SteveHTM’s reply. I want to get all the threads from a specific inbox, not from all the inboxes, which your request does. And in order to do that, I have to specify the ‘inboxId’ param in my request. However, this combination will result in the server returning an error 500.

Update: I have found out that the error has nothing to do with the API itself, but with the configuration of my inbox which somehow resulted in it timing out and returning a 500 error. I have tested with other inboxes and they worked fine.