Chat API issues

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Some useful links to gather information about your Nextcloud Talk installation:
Information about Signaling server: /index.php/index.php/settings/admin/talk#signaling_server
Information about TURN server: /index.php/settings/admin/talk#turn_server
Information about STUN server: /index.php/settings/admin/talk#stun_server

Nextcloud version (eg, 24.0.1): 25.0.5
Talk Server version (eg, 14.0.2): 15.0.5
Custom Signaling server configured: yes 33dc5a554b496bd253bedbecc6755de514a64867
Custom TURN server configured: yes
Custom STUN server configured: yes

The issue you are facing:
Using OAuth2 credentials to use the Talk API in order to get the most recent chat messages inside a room. The Query lookIntoFuture=1 is read correctly, however lastKnownMessageId={messageId} is completely ignored and the readout of chat messages starts from Talk room origin point.

Is this the first time you’ve seen this error? (Y/N):

Steps to replicate it:

  1. Use OAuth2 authenticated http request to /ocs/v2.php/apps/spreed/api/v1/chat/{roomId}
  2. Pass lookIntoFuture=1 and lastKnownMessageId={messageId}
  3. Receive output of request from chat api, first message ID = Room origin message ID

The output of your Nextcloud log in Admin > Logging or errors in nextcloud.log in /var/www/:


The output of your Apache/nginx/system log in /var/log/____:


Your browser log if relevant (javascript console log, network log, etc.):