Hi there,
I am looking for advice on how to best manage API calls for our business application.
It appears that using the API, multiple calls will be necessary to be able to perform given actions. For example, if a user has signed into our application and wishes to start a conversation, from what I understand they will have to:
- Fetch their id with their email using the /contacts/search endpoint
- Create a conversation with their id using the /conversations endpoint
- If successful, we want to refresh our device to display the new message and created conversation, meaning we must hit the /conversations/id endpoint
For this flow, this is 3 calls per action, which could add up quite substantially if multiple users are operating simultaneously.
Is there a better way to do this? Perhaps I am not using the API as efficiently as I could be.
Thanks!