GET /api/v1/{context_id}/sessions/{session_id}/turns
Changed onList turns in a session, oldest first. Paginated: limit defaults to 100 and is capped at 500; follow page.nextCursor to walk the session.
Request
- The document declares no server URL.
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
context_idstring required
Spectron context id
session_idstring required
Session id
Query parameters
limitinteger
Max turns to return (default 100, max 500)
cursorstring
Continuation token from the previous page's page.nextCursor
countboolean
Also return page.totalSize (costs a full count of the session's turns)
offsetinteger
Deprecated: rows to skip. Use cursor.
Response
Changes
- info
added the new optional
queryrequest parametercount - info
added the new optional
queryrequest parametercursor - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the required property
to the response with the status
- info
- info
added the new optional
queryrequest parameterlimit - info
added the new optional
queryrequest parameteroffset
- info