APIs & Integrations

HRahem
Participant

Error 500 from Conversations inbox and messages APIs (BETA

SOLVE

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=12345https://api.hubapi.com/conversations/v3/conversations/threads?inboxId=12345

1 Accepted solution
HRahem
Solution
Participant

Error 500 from Conversations inbox and messages APIs (BETA

SOLVE

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.

View solution in original post

0 Upvotes
5 Replies 5
HRahem
Solution
Participant

Error 500 from Conversations inbox and messages APIs (BETA

SOLVE

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.

0 Upvotes
GRajput
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Error 500 from Conversations inbox and messages APIs (BETA

SOLVE

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!




Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


0 Upvotes
HRahem
Participant

Error 500 from Conversations inbox and messages APIs (BETA

SOLVE

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.

0 Upvotes
SteveHTM
Top Contributor | Partner
Top Contributor | Partner

Error 500 from Conversations inbox and messages APIs (BETA

SOLVE

@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

 

Steve Christian

HTM Solutions

https://info.htmsolutions.biz/meetings/stevec2

mobilePhone
+1 6195183009
emailAddress
stevec@htmsolutions.biz
website
www.htmsolutions.biz
address
San Diego, CA
Create Your Own Free Signature
HRahem
Participant

Error 500 from Conversations inbox and messages APIs (BETA

SOLVE

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.

0 Upvotes