Sessions
List sessions
List your conversations with agents, most recent activity first.
GET
Returns a page of your sessions, most recent activity first. Activity is compared to the second: sessions active within the same second come newest-created first, also compared to the second, and then in a fixed order by session id. So their
updated_at values, which keep milliseconds, may not be in strict order, but every page continues the same order without repeating or skipping a session. A session is one conversation with an agent. The list holds the sessions you started, in the Wordsmith app or through the API, as the app’s own session list does. To read a session someone shared with you, use Get session with its id.
Read a session’s messages with List messages. These endpoints are read-only. To ask a question, in a new session or an existing one, use Create question.
List items leave out message_count. Get session returns it.
Authentication
Requires an API key, or an OAuth token withsessions:read.
Query parameters
Only sessions with this agent. Find agent ids with List agents.
Search session titles and message text, up to 200 characters, as the app’s session search does. Results come best match first instead of most recent first.
Response
Returns200 with {"items": [...], "cursor": "..."}. Each item is a session. cursor is null on the last page.