Sessions
List sessions
See the conversations Ollive has checked, newest first.
How it works
Each conversation has a state, and counts of the rules it passed and failed:
judged: checking is finished.judging: checking is still running.failed: the conversation couldn’t be checked.skipped: it wasn’t a real conversation, so it wasn’t checked.
Conversations you send appear here once checking begins. For the detailed results of one conversation, use List verdicts.
Request body
application/json
- deployment_idstring
Only show this deployment’s conversations.
- session_refsstring[]up to 100
Only show these conversations, by your IDs.
- statesstring[]
Only show conversations in these states.
judgedjudgingfailedskipped - sincestringdefault 30d
How far back to look, such as
30m,12h,7d, orallfor everything. - limitintegerdefault 25up to 100
How many to return per page.
- cursorstring
The
next_cursorfrom the previous page. - sourcesstring[]
Which conversations to include:
PLATFORMfor ones Ollive collected,APIfor ones you sent. Leave it out to include both.PLATFORMAPI
Response
The conversations found. An empty list if there are none.
- dataobject[]required
One entry per conversation.
- session_refstringrequired
Your ID for the conversation.
- sourcestringrequired
PLATFORMif Ollive collected it,APIif you sent it.PLATFORMAPI - deployment_idstringrequired
The deployment it belongs to.
- versionintegerrequired
Which review this is. Usually
1. - statestringrequired
Where checking has got to. See above.
judgedjudgingfailedskipped - started_atstring (date-time)
When the conversation started.
- ended_atstring (date-time)
When it ended.
- duration_msinteger
How long it lasted, in milliseconds.
- verified_atstring (date-time)
When checking finished.
- pass_countintegerrequired
How many rules it passed.
- fail_countintegerrequired
How many rules it failed.
- indeterminate_countintegerrequired
How many rules Ollive couldn’t decide on.
- total_countintegerrequired
How many results match, across all pages.
- has_morebooleanrequired
Whether there is another page.
- next_cursorstringrequired
Send this as
cursorto get the next page. Empty on the last page.
Something in the request is wrong. code and param tell you what.
Returns an error, for example with the code invalid_cursor.
The API key is missing, wrong, revoked or expired.
Returns an error, for example with the code authentication_failed.