Best Way To Manage Mutliple API Calls? | Community
Skip to main content
Answered

Best Way To Manage Mutliple API Calls?

  • May 19, 2023
  • 2 replies
  • 85 views

I have an which gets customer conversations and displays them in a Whatsapp-esque UI.

The problem is that in order to do this, I have to:

- Hit an endpoint that will get the contact information using their email
- Hit an endpoint using their contact id to create a conversation
- If this conversation creation is successful, hit the endpoint to fetch the conversation to display the latest message to the user.

This seems very inefficient at present. Is there a better way to use the API?

Thanks

Best answer by Paul M11

Hey there @Max De Burnay-Bastos 👋 

 

Paul here from Intercom Support!

 

Thank you for your patience here 🙏 . Let me raise this with our Support Team to see if there is anything we can offer here!

2 replies

Forum|alt.badge.img+3
  • Employee
  • Answer
  • May 31, 2023

Hey there @Max De Burnay-Bastos 👋 

 

Paul here from Intercom Support!

 

Thank you for your patience here 🙏 . Let me raise this with our Support Team to see if there is anything we can offer here!


Hey Paul, thanks so much! Looking forward to hearing back on this.