Get a Search Agent result
curl --request GET \
--url https://api.octen.ai/v1/agent/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.octen.ai/v1/agent/{task_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.octen.ai/v1/agent/{task_id}', 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.octen.ai/v1/agent/{task_id}",
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.octen.ai/v1/agent/{task_id}"
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.octen.ai/v1/agent/{task_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.octen.ai/v1/agent/{task_id}")
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{
"request_id": "20261016091305542P3VN8TQ6WE",
"task_id": "agent-7f3c2a9e4b1d4c6f8a0e5b2d9c1f6a37",
"tier": "low",
"status": "succeeded",
"previous_task_id": null,
"stop_reason": "schema_satisfied",
"choices": [
{
"message": {
"role": "assistant",
"content": "**The 2026 Nobel Prize in Physiology or Medicine was awarded jointly to Karl Deisseroth, Peter Hegemann, and Georg Nagel.**[^1] They were recognized “for their discoveries concerning light-gated ion channels and optogenetics.”[^1]",
"annotations": [
{
"type": "url_citation",
"url_citation": {
"url": "https://www.nobelprize.org/prizes/medicine/2026/press-release/",
"title": "Press release: Nobel Prize in Physiology or Medicine 2026 - NobelPrize.org",
"start_index": 123,
"end_index": 127
}
},
{
"type": "url_citation",
"url_citation": {
"url": "https://www.nobelprize.org/prizes/medicine/2026/press-release/",
"title": "Press release: Nobel Prize in Physiology or Medicine 2026 - NobelPrize.org",
"start_index": 226,
"end_index": 230
}
}
]
}
}
],
"created_at": 1793608513,
"completed_at": 1793608522,
"meta": {
"latency": 9376,
"billed_tier": "low",
"cost": 0.05
}
}Applications
Search Agent Result API Reference
Returns a Search Agent task by id.
GET
/
v1
/
agent
/
{task_id}
Get a Search Agent result
curl --request GET \
--url https://api.octen.ai/v1/agent/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.octen.ai/v1/agent/{task_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.octen.ai/v1/agent/{task_id}', 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.octen.ai/v1/agent/{task_id}",
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.octen.ai/v1/agent/{task_id}"
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.octen.ai/v1/agent/{task_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.octen.ai/v1/agent/{task_id}")
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{
"request_id": "20261016091305542P3VN8TQ6WE",
"task_id": "agent-7f3c2a9e4b1d4c6f8a0e5b2d9c1f6a37",
"tier": "low",
"status": "succeeded",
"previous_task_id": null,
"stop_reason": "schema_satisfied",
"choices": [
{
"message": {
"role": "assistant",
"content": "**The 2026 Nobel Prize in Physiology or Medicine was awarded jointly to Karl Deisseroth, Peter Hegemann, and Georg Nagel.**[^1] They were recognized “for their discoveries concerning light-gated ion channels and optogenetics.”[^1]",
"annotations": [
{
"type": "url_citation",
"url_citation": {
"url": "https://www.nobelprize.org/prizes/medicine/2026/press-release/",
"title": "Press release: Nobel Prize in Physiology or Medicine 2026 - NobelPrize.org",
"start_index": 123,
"end_index": 127
}
},
{
"type": "url_citation",
"url_citation": {
"url": "https://www.nobelprize.org/prizes/medicine/2026/press-release/",
"title": "Press release: Nobel Prize in Physiology or Medicine 2026 - NobelPrize.org",
"start_index": 226,
"end_index": 230
}
}
]
}
}
],
"created_at": 1793608513,
"completed_at": 1793608522,
"meta": {
"latency": 9376,
"billed_tier": "low",
"cost": 0.05
}
}Authorizations
bearerAuthapiKeyAuth
Response
Successful Search Agent task response
Why the task stopped. schema_satisfied: completed normally; stopped: stopped on request; budget_reached / time_limit_reached: wrapped up early after reaching an internal budget or time limit; cancelled: cancelled; error: failed.
Available options:
schema_satisfied, stopped, budget_reached, time_limit_reached, cancelled, error Was this page helpful?