Get thread review evidence
Returns the bounded candidate-tree diff, changed-file and line summary, candidate_revision, and pull-request checks for project_repository_id in an owned thread.
Returns the bounded candidate-tree diff, changed-file and line summary, candidate_revision, and pull-request checks for project_repository_id in an owned thread.
Authorization
bearerAuth Create an API key in g2b Settings, then send it as a Bearer token.
In: header
Path Parameters
1 <= length <= 256Query Parameters
1 <= length <= 256Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/threads/string/review?project_repository_id=string"{ "thread_id": "string", "project_id": "string", "project_repository_id": "string", "diff": { "diff": "string", "files": [ { "path": "string", "status": "modified" } ], "status": "no_sandbox", "candidate_revision": "string", "truncated": true }, "stats": { "additions": 0, "deletions": 0 }, "publication": { "projectRepositoryId": "string", "repository": { "owner": "string", "name": "string" }, "prNumber": 1, "prUrl": "http://example.com", "branch": "string", "headSha": "string", "state": "open", "mergeable": true, "mergeableState": "string", "checks": [ { "id": 0, "name": "string", "status": "queued", "conclusion": "string", "detailsUrl": "string", "startedAt": "string", "completedAt": "string" } ], "commitStatuses": [ { "id": 0, "context": "string", "state": "error", "targetUrl": "string" } ], "checksAggregate": "none", "lastSyncedAt": "string" }}Read a thread file GET
Reads one repository-relative text file for project_repository_id up to 64 KiB. Traversal and symlink escapes are rejected.
Answer an agent interaction POST
Settles one owned pending question or plan approval. Settlement is one-shot; later attempts return a conflict, and sensitive answers are redacted from the response.