v4

latestOpenAPI 3.1.02026-08-08221179273.1 KB
chatbot

Get Chat Messages

Get messages for a specific chat

Args: chat_id: The chat ID current_user: Authenticated user from dependency injection recent: If True, returns the most recent N messages. If False (default), returns oldest N messages. limit: Maximum number of messages to return (default 100)

get/api/chats/{chat_id}/messages

Path parameters

chat_idstring required

Query parameters

recentboolean
limitinteger

Headers

x-user-idstring nullable

Response

Successful Response

{"stackTrail":"paths:/api/chats/{chat_id}/messages:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}