Get session messages
Changed onRetrieve projected messages for a session, optionally filtered by type. Items keep the requested order across pages; use cursor.next or cursor.previous to move through the ordered timeline, passing the same type filter on each page.
Request
- Base URLhttps://opencode.ai (the document declares no server; this is the origin it was published from)
- URLhttps://opencode.ai/api/session/{sessionID}/message
- Authnone required
Path parameters
Query parameters
Maximum number of messages to return. When omitted, the endpoint returns its default page size.
Message order for the first page. Use desc for newest first or asc for oldest first.
Opaque pagination cursor returned as cursor.previous or cursor.next in the previous response. Do not combine with order.
Filter by message type before pagination. When omitted, all message types are returned. Pass the same type when following cursors.
Response
SessionMessagesResponse
Changes
- warning
removed the optional property
//////from the response with the status
- warning
- info
added the optional property
//////to the response with the status
- info