Get everything recorded as proof of a pull request
curl --request GET \
--url https://api.runaether.dev/pull-requests/{pullRequestID}/proof \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/pull-requests/{pullRequestID}/proof"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/pull-requests/{pullRequestID}/proof', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.runaether.dev/pull-requests/{pullRequestID}/proof",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/pull-requests/{pullRequestID}/proof"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runaether.dev/pull-requests/{pullRequestID}/proof")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/pull-requests/{pullRequestID}/proof")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"can_hide": true,
"published": [
{
"linked_at": "2023-11-07T05:31:56Z",
"media": [
{
"capture": {
"actions": [
{
"at_ms": 1,
"kind": "click",
"label": "<string>"
}
],
"chapters": [
{
"at_ms": 1,
"title": "<string>",
"description": "<string>"
}
],
"description": "<string>",
"duration_ms": 1,
"height": 2,
"kind": "recording",
"pages": [
"<string>"
],
"source": "browser",
"title": "<string>",
"width": 2,
"ending": "stopped",
"notes": [
"<string>"
]
},
"content_type": "image/png",
"created_at": "2023-11-07T05:31:56Z",
"head_sha": "<string>",
"hidden": {
"at": "2023-11-07T05:31:56Z",
"by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"hideable": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"public_url": "<string>",
"tracks": [
{
"byte_size": 26214400,
"format": "aether.cpu.v2",
"kind": "cpu",
"url": "<string>"
}
]
}
],
"steerers": [
{
"first_turn": {
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"person": {
"display_name": "<string>",
"github_login": "<string>",
"kind": "user",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
],
"task_creator": {
"first_turn": {
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"person": {
"display_name": "<string>",
"github_login": "<string>",
"kind": "user",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_name": "<string>"
}
],
"pull_request": {
"head_sha": "<string>",
"html_url": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merged_at": "2023-11-07T05:31:56Z",
"pr_number": 2,
"repository": "<string>",
"title": "<string>"
},
"review_runs": [
{
"linked_at": "2023-11-07T05:31:56Z",
"media": [
{
"capture": {
"actions": [
{
"at_ms": 1,
"kind": "click",
"label": "<string>"
}
],
"chapters": [
{
"at_ms": 1,
"title": "<string>",
"description": "<string>"
}
],
"description": "<string>",
"duration_ms": 1,
"height": 2,
"kind": "recording",
"pages": [
"<string>"
],
"source": "browser",
"title": "<string>",
"width": 2,
"ending": "stopped",
"notes": [
"<string>"
]
},
"content_type": "image/png",
"created_at": "2023-11-07T05:31:56Z",
"head_sha": "<string>",
"hidden": {
"at": "2023-11-07T05:31:56Z",
"by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"hideable": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"public_url": "<string>",
"tracks": [
{
"byte_size": 26214400,
"format": "aether.cpu.v2",
"kind": "cpu",
"url": "<string>"
}
]
}
],
"reviewed_head_sha": "<string>",
"run_number": 2,
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_name": "<string>",
"verdict": "COMMENT"
}
],
"reviewer_confirmations": [
{
"line": 2,
"path": "<string>",
"reviewed_at": "2023-11-07T05:31:56Z",
"reviewed_head_sha": "<string>",
"run": {
"run_number": 2,
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"side": "LEFT",
"text": "<string>"
}
],
"shown_claims": [
{
"created_at": "2023-11-07T05:31:56Z",
"evidence": {
"capture_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "capture"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>"
}
],
"visibility": {
"changed": {
"at": "2023-11-07T05:31:56Z",
"by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"by_name": "<string>"
},
"visibility": "public"
}
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Pull Requests
Get everything recorded as proof of a pull request
Reads everything recorded as proof of a pull request, with nothing fetched from GitHub: the captures of every task that published it and what those tasks claim the captures show, its review runs with the verdict each posted, the head it reviewed and its captures, the findings those reviews confirmed, and who may watch it.
Use this tool when you need to:
- Judge whether a pull request’s work was demonstrated: its screenshots, recordings and traces, and the claims made about them
- See each Aether review run’s verdict and the findings it confirmed at the head it reviewed
- Check whether the proof is public or private to the organization before sharing its link
Examples:
- GET /pull-requests//proof
- GET /pull-requests/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21/proof?org_id=0b9d3e57-2c1a-4f6e-8d7b-5a4c3e2f1d09
Hints:
- pullRequestID is the pull request’s uuid and org_id (uuid) names an organization whose task links the pull request; the schema answers 422 for either when malformed.
- pull_request has id, pr_number, title, html_url, repository (owner/repo), head_sha and merged_at. published lists each task that published it with its captures, creator and steerers; review_runs lists each review run (task_id and run_number) with its captures, verdict (the event of its newest posted review) and reviewed_head_sha. Each task contributes its newest 50 captures.
- reviewer_confirmations are the findings the newest posted review of each run confirmed; shown_claims are what the writing tasks claim their unhidden captures show.
- visibility is public or org, with changed (at, by, by_name) or null while nobody decided, when the organization’s new_pull_request_proof_public default applies. can_hide says whether the caller may curate the proof: only then do hidden captures reach them and only then may they change the visibility.
- Use patchPullRequestProof instead to make the proof private or public, patchTaskMedia to hide one capture, getPublicPullRequestProof for what a reader without an account sees, and listPullRequestVerificationEvents for the checks the agents recorded.
- Any member of an organization whose task published or reviewed the pull request may call it, a viewer included, and no GitHub connection is needed; an organization that only has a project on the repository does not own the proof.
- A pull request that does not exist, one no organization of the caller owns and an org_id that does not own it answer the same 404, and omitting org_id while more than one of the caller’s organizations owns it is 422 org_id_required.
- When no owner admits the caller, a billing member is refused with 403 org_role_insufficient and a member of a suspended organization with 403 org_suspended; an agent host’s grant is refused with 403 agent_host_route_not_allowed, and 503 answers when the membership check is unavailable.
GET
/
pull-requests
/
{pullRequestID}
/
proof
Get everything recorded as proof of a pull request
curl --request GET \
--url https://api.runaether.dev/pull-requests/{pullRequestID}/proof \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/pull-requests/{pullRequestID}/proof"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/pull-requests/{pullRequestID}/proof', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.runaether.dev/pull-requests/{pullRequestID}/proof",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/pull-requests/{pullRequestID}/proof"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.runaether.dev/pull-requests/{pullRequestID}/proof")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/pull-requests/{pullRequestID}/proof")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"can_hide": true,
"published": [
{
"linked_at": "2023-11-07T05:31:56Z",
"media": [
{
"capture": {
"actions": [
{
"at_ms": 1,
"kind": "click",
"label": "<string>"
}
],
"chapters": [
{
"at_ms": 1,
"title": "<string>",
"description": "<string>"
}
],
"description": "<string>",
"duration_ms": 1,
"height": 2,
"kind": "recording",
"pages": [
"<string>"
],
"source": "browser",
"title": "<string>",
"width": 2,
"ending": "stopped",
"notes": [
"<string>"
]
},
"content_type": "image/png",
"created_at": "2023-11-07T05:31:56Z",
"head_sha": "<string>",
"hidden": {
"at": "2023-11-07T05:31:56Z",
"by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"hideable": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"public_url": "<string>",
"tracks": [
{
"byte_size": 26214400,
"format": "aether.cpu.v2",
"kind": "cpu",
"url": "<string>"
}
]
}
],
"steerers": [
{
"first_turn": {
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"person": {
"display_name": "<string>",
"github_login": "<string>",
"kind": "user",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
],
"task_creator": {
"first_turn": {
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"turn_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"person": {
"display_name": "<string>",
"github_login": "<string>",
"kind": "user",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
},
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_name": "<string>"
}
],
"pull_request": {
"head_sha": "<string>",
"html_url": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"merged_at": "2023-11-07T05:31:56Z",
"pr_number": 2,
"repository": "<string>",
"title": "<string>"
},
"review_runs": [
{
"linked_at": "2023-11-07T05:31:56Z",
"media": [
{
"capture": {
"actions": [
{
"at_ms": 1,
"kind": "click",
"label": "<string>"
}
],
"chapters": [
{
"at_ms": 1,
"title": "<string>",
"description": "<string>"
}
],
"description": "<string>",
"duration_ms": 1,
"height": 2,
"kind": "recording",
"pages": [
"<string>"
],
"source": "browser",
"title": "<string>",
"width": 2,
"ending": "stopped",
"notes": [
"<string>"
]
},
"content_type": "image/png",
"created_at": "2023-11-07T05:31:56Z",
"head_sha": "<string>",
"hidden": {
"at": "2023-11-07T05:31:56Z",
"by": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"hideable": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"public_url": "<string>",
"tracks": [
{
"byte_size": 26214400,
"format": "aether.cpu.v2",
"kind": "cpu",
"url": "<string>"
}
]
}
],
"reviewed_head_sha": "<string>",
"run_number": 2,
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"task_name": "<string>",
"verdict": "COMMENT"
}
],
"reviewer_confirmations": [
{
"line": 2,
"path": "<string>",
"reviewed_at": "2023-11-07T05:31:56Z",
"reviewed_head_sha": "<string>",
"run": {
"run_number": 2,
"task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"side": "LEFT",
"text": "<string>"
}
],
"shown_claims": [
{
"created_at": "2023-11-07T05:31:56Z",
"evidence": {
"capture_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"kind": "capture"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"text": "<string>"
}
],
"visibility": {
"changed": {
"at": "2023-11-07T05:31:56Z",
"by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"by_name": "<string>"
},
"visibility": "public"
}
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "account_deleting",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Authorizations
Query Parameters
The pull request's owning organization to act in: the org_id the PullRequest carries. Omitted, getPullRequest and the review page's operations (its review, file, head snapshot and stack) act in the owning organization getPullRequest ranks first, and a console operation refuses with 422 org_id_required when more than one of the caller's organizations owns the pull request.
Response
OK