Read a session's pull request report (viewer or above, or the session itself)
const url = 'http://127.0.0.1:8080/v1/sessions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/report';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 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).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The report.
object
Why the risk is high. Empty when it is low.
What a reviewer should settle before merging.
object
object
object
Canonical repository path, once per snapshot.
A binary file has added and deleted 0.
object
Every path the session ever claimed, released ones included.
object
A later decision of the session supersedes it.
object
object
object
The pull request body.
The secret scan replaced something.
A list or the markdown was cut to fit.
Example
{ "risk": "low", "decisions": [ { "risk": "low", "status": "proposed" } ], "questions": [ { "status": "open" } ], "route": { "auth": "api_key" }}The request is malformed.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}No valid bearer token.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}The token may not do this.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}No such resource in the caller’s org.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}A rate limit or quota stopped the request. Retry-After gives seconds to wait.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}