Delay when fetching ticket messages using the API

[Problem/Question]
Hello.

I am doing an integration with Sendbird desk, where I need to retrieve the ticket messages and allow posting new messages.

The entire flow is working but I am noticed some delays when new message is sent (either via agent or customer), sometimes it takes some time to be returned in the API.

They appear on the Sendbird UI though and after a while, they also start being returned by the API.

Is the API not real time? I am using /platform/v1/tickets/${ticket_id}/chat_messages endpoint to retrieve the messages.

Thank you.

[Reproduction Steps]

  • Retrieve the conversation, send a new message as Agent (using the API), and retrieve the conversation again. The message I just sent is not returned back.
  • As a customer, I am sending messages in a Mobile App (which uses,the Sendbird mobile SDK). When I sent two or more consecutive messages, and then I do an API request to retrieve the conversation, only the first message is returned.

[Frequency]
Not always happening, but it seems more frequent when customer sends consecutive messages.

[Current impact]
It makes our integration almost unusable as we need to retrieve the messages as they are sent,