Skip to content

Read a session's pull request report (viewer or above, or the session itself)

GET
/v1/sessions/{session_id}/report
curl --request GET \
--url http://127.0.0.1:8080/v1/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/report \
--header 'Authorization: Bearer <token>'

What the coordinator holds about the session: its intent, latest plan, changed files and public symbols, claimed paths, decisions, questions with their answers, overlap notices, and route. risk is never lower than the session’s highest decision risk, the keyword floor on its plan, or the risky areas its paths name. attention lists what is still open. markdown is the pull request body that zt done --pr sends; it starts with a <!-- zentri:report v1 ... --> marker and stays under 60,000 bytes. Every text field passes the secret scan. A peer session cannot read it, because it carries the session’s questions and answers (ADR-0020).

session_id
required
string format: uuid

The report.

Media typeapplication/json
object
session_id
required
string format: uuid
user_handle
required
string
status
required
string
risk
required
string
Allowed values: low high
risk_reasons
required

Why the risk is high. Empty when it is low.

Array<string>
attention
required

What a reviewer should settle before merging.

Array<string>
intent
required
object
id
required
string format: uuid
summary
required
string
ticket_ref
required
string
plan
required
object
summary
required
string
steps
required
Array<string>
files
required
Array<string>
files
required
Array<object>
object
path
required

Canonical repository path, once per snapshot.

string
added
required
integer
deleted
required
integer
binary

A binary file has added and deleted 0.

boolean
symbols
required
Array<object>
object
kind
required
string
name
required
string
path
required
string
signature
required
string
claimed_paths
required

Every path the session ever claimed, released ones included.

Array<string>
decisions
required
Array<object>
object
id
required
string format: uuid
title
required
string
risk
required
string
Allowed values: low high
risk_reason
string
status
required
string
Allowed values: proposed accepted rejected superseded
replaced
required

A later decision of the session supersedes it.

boolean
questions
required
Array<object>
object
id
required
string format: uuid
text
required
string
blocking
required
boolean
status
required
string
Allowed values: open answered expired
answer
string
reused
boolean
overlaps
required
Array<object>
object
kind
required
string
text
required
string
count
required
integer
>= 1
route
required
object
agent
required
string
auth
required
string
Allowed values: api_key subscription
tier
string
model
string
skipped
string
markdown
required

The pull request body.

string
redacted
required

The secret scan replaced something.

boolean
truncated
required

A list or the markdown was cut to fit.

boolean

Example

{
"risk": "low",
"decisions": [
{
"risk": "low",
"status": "proposed"
}
],
"questions": [
{
"status": "open"
}
],
"route": {
"auth": "api_key"
}
}

The request is malformed.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

No valid bearer token.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

The token may not do this.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

No such resource in the caller’s org.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}

A rate limit or quota stopped the request. Retry-After gives seconds to wait.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example generated

{
"error": {
"code": "example",
"message": "example"
}
}
Retry-After
integer