List calls
GET
/v1/calls
const url = 'https://api.pensievelabs.co/v1/calls?limit=20&model=grade-audit&source=pensieve';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.pensievelabs.co/v1/calls?limit=20&model=grade-audit&source=pensieve' \ --header 'Authorization: Bearer <token>'Decisions made by Pensieve and calls recorded with capture, newest first.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”limit
integer
cursor
string
The next_cursor of the page before.
model
string
Example
grade-auditkey
string
Your own reference for the case.
source
pensieve: an expert model answered. capture: your own code answered and the call was recorded.
string
Responses
Section titled “Responses”A page of calls.
Media typeapplication/json
object
object
required
has_more
required
boolean
next_cursor
required
string | null
data
required
Array<object>
object
id
required
string
object
required
model
required
string
source
required
pensieve: an expert model answered. capture: your own code answered and the call was recorded.
string
answer
required
string
version
required
The version that answered; null for captured calls.
string | null
confidence
required
number | null
provider_model
For captured calls, the model your code called.
string | null
key
required
string | null
outcome
required
correction
required
fallback
required
created_at
required
string format: date-time
Example
{ "object": "list", "data": [ { "object": "call", "source": "pensieve", "outcome": { "object": "outcome" }, "correction": { "object": "correction" } } ]}default
Section titled “default”Something went wrong; error.type says what.
Media typeapplication/json
object
error
required
object
type
required
string
message
required
string
param
The request field the error is about.
string | null
request_id
required
string
Example
{ "error": { "type": "invalid_request" }}