Run a Scientific Review of a Task
curl --request POST \
--url https://api.phylo.bio/v1/experimental/tasks/{task_id}/review \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.phylo.bio/v1/experimental/tasks/{task_id}/review"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.phylo.bio/v1/experimental/tasks/{task_id}/review', 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.phylo.bio/v1/experimental/tasks/{task_id}/review",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.phylo.bio/v1/experimental/tasks/{task_id}/review"
req, _ := http.NewRequest("POST", 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.post("https://api.phylo.bio/v1/experimental/tasks/{task_id}/review")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.phylo.bio/v1/experimental/tasks/{task_id}/review")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"type": "task_review",
"id": "tsk_014MUnN99MEVcklVXXfFbxXb",
"status": "running"
}Tasks
Run a scientific review
Check a completed task’s analysis for scientific accuracy.
POST
/
experimental
/
tasks
/
{task_id}
/
review
Run a Scientific Review of a Task
curl --request POST \
--url https://api.phylo.bio/v1/experimental/tasks/{task_id}/review \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.phylo.bio/v1/experimental/tasks/{task_id}/review"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.phylo.bio/v1/experimental/tasks/{task_id}/review', 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.phylo.bio/v1/experimental/tasks/{task_id}/review",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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.phylo.bio/v1/experimental/tasks/{task_id}/review"
req, _ := http.NewRequest("POST", 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.post("https://api.phylo.bio/v1/experimental/tasks/{task_id}/review")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.phylo.bio/v1/experimental/tasks/{task_id}/review")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"type": "task_review",
"id": "tsk_014MUnN99MEVcklVXXfFbxXb",
"status": "running"
}A reviewer agent re-reads a completed task’s analysis and checks it for scientific accuracy, correct use of the data, unsupported claims, and stated limitations. A task that is
idle or still running has nothing to review.
The review runs in the background. This call returns immediately with status: "running" and does not return the review itself. When it finishes, a new entry appears in reviews on GET /tasks/{task_id}. Read the findings with GET /tasks/{task_id}/messages/{message_id} using that entry’s exact message_id.
Calling this while a review is running returns the running state. Calling it after a review finishes starts a new one that replaces the previous result.Authorizations
Requires an API key. See the Authentication guide.
