Pistis
API referenceFollowing

List the decisions people made in a session

GET
/sessions/{id}/decisions

Every decision a person made that shaped the work, newest first: approvals and denials (the exact call), answers to the agent's questions, take-overs of the screen (how long, the note), annotations, retried stopped steps, pauses. Read from the session's own record, so a later message can't change it. Whoever may view the session may.

Authorization

bearer
headerAuthorizationBearer <token>

An API token

Path Parameters

id*string

A session id

Response Body

Decisions, newest first

application/json
  1. response
items*array<|||||>
Example Request
curl -X GET 'http://127.0.0.1:7777/sessions/ses_6c1f2a0b9d3e4f5a6b7c/decisions'
Example Response
{  "items": [    {      "kind": "approval",      "at": 0,      "by": {        "principal": "string",        "name": "string"      },      "seq": 0,      "approved": true,      "auto": true,      "tool": "string",      "args": "string",      "toolCallId": "string"    }  ]}