Get Assistant Task
curl --request GET \
--url https://api.scite.ai/api_partner/assistant/tasks/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scite.ai/api_partner/assistant/tasks/{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.scite.ai/api_partner/assistant/tasks/{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.scite.ai/api_partner/assistant/tasks/{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.scite.ai/api_partner/assistant/tasks/{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.scite.ai/api_partner/assistant/tasks/{task_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scite.ai/api_partner/assistant/tasks/{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{
"id": "<string>",
"info": {
"step": "<string>",
"stepNumber": 123,
"response": "<string>",
"structuredResponse": [
"<unknown>"
],
"searches": [
"<string>"
],
"publicationsUsed": [
"<string>"
],
"publicationsConsulting": [
"<string>"
],
"currentSearch": "<string>",
"dois": [
"<string>"
],
"factChecks": {
"used": [
"<unknown>"
],
"rejected": [
"<unknown>"
]
}
},
"status": "<string>",
"result": {
"slug": "<string>",
"title": "<string>",
"sessionId": 123,
"turns": [
{
"role": "<string>",
"content": "<string>",
"sections": [
"<string>"
],
"structuredResponse": [
"<unknown>"
],
"references": [
{
"answer": "<string>",
"texts": [
"<string>"
],
"context": "<string>",
"title": "<string>",
"doi": "<string>",
"link": "<string>",
"paper": {
"id": "<string>",
"doi": "<string>",
"title": "<string>",
"slug": "<string>",
"authors": [
{
"authorName": "<string>",
"authorSlug": "<string>",
"authorSequenceNumber": "<string>",
"affiliation": "<string>",
"affiliationSlug": "<string>"
}
],
"journal": "<string>",
"shortJournal": "<string>",
"publisher": "<string>",
"memberId": 123,
"abstract": "<string>",
"year": 123,
"date": "<string>",
"lastUpdate": 123,
"volume": "<string>",
"issue": "<string>",
"page": "<string>",
"tally": {
"citingPublications": 436,
"contradicting": 6,
"doi": "10.1016/j.biopsych.2005.08.012",
"mentioning": 308,
"supporting": 27,
"total": 347,
"unclassified": 6
},
"issns": [
"<string>"
],
"editorialNotices": [
{
"doi": "<string>",
"status": "<string>",
"date": "<string>",
"noticeDoi": "<string>",
"urls": [
"<string>"
]
}
],
"normalizedTypes": [
"<string>"
],
"isOa": false,
"oaStatus": "closed",
"meshTypes": [
{
"descriptorId": "<string>",
"descriptorName": "<string>",
"qualifierId": "<string>",
"qualifierName": "<string>"
}
],
"relevancyScore": 123,
"citations": [
{
"source": "<string>",
"target": "<string>",
"snippet": "<string>",
"id": 123,
"negative": 123,
"positive": 123,
"neutral": 123,
"section": "<string>",
"expertClassification": "<string>",
"type": "<string>",
"typeConfidence": 123,
"lang": "<string>",
"langConfidence": 123,
"refLocation": "<string>",
"memberId": 123,
"selfCites": [
{
"type": "<string>",
"family": "<string>",
"given": "<string>"
}
],
"snippetHidden": false
}
],
"fulltextExcerpts": [
"<string>"
],
"highlightedFields": [
"<string>"
]
},
"textSources": [
"<string>"
],
"type": "academic_paper",
"patent": {},
"refCheckId": "<string>",
"included": true,
"reason": "<string>"
}
],
"feedback": {
"feedbackType": "positive",
"reason": "<string>"
},
"searchStrategy": [
"<string>"
],
"warning": "<string>",
"model": "<string>",
"settings": {},
"publicationsConsulted": [
{}
],
"columns": [
{
"name": "<string>",
"slug": "<string>",
"instructions": "<string>",
"type": "response",
"order": 0,
"json_response_type": "concise"
}
]
}
],
"turnsTotal": 123,
"turnsOffset": 123,
"lastUpdated": "2023-12-25",
"shareToken": "<string>",
"createdAt": "2023-12-25",
"hasUploadedReferences": false
},
"error": "<string>",
"usage": {
"used": 123,
"max": 123
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}Assistant
Get Assistant Task
Poll the status and results of an assistant task. Call this endpoint repeatedly until the status is SUCCESS.
Task States
| Status | Description |
|---|---|
PENDING | Task is queued, not yet started |
STARTED | Task is actively processing — info contains progress details |
SUCCESS | Task completed — result contains the full response |
FAILURE | Task failed — error contains the error message |
CANCELLED | Task was cancelled via the cancel endpoint |
REVOKED | Task was revoked |
Progress Info (during STARTED)
While the task is running, the info field provides real-time progress:
{
"id": "abc123",
"status": "STARTED",
"info": {
"step": "EXECUTING_SEARCHES",
"stepNumber": 3,
"response": "partial response text...",
"searches": ["query 1", "query 2"],
"publicationsUsed": ["10.1234/example"],
"publicationsConsulting": ["Author et al., Title, Journal, 2024"],
"currentSearch": "current query being executed"
}
}
Processing steps in order:
SCHEDULING_ASSISTANT— task queuedGENERATING_SEARCH_STRATEGY— AI generating search queriesEXECUTING_SEARCHES— running queries against ElasticsearchRETRIEVING_UPLOADED_DOCUMENTS— loading reference check documents (if applicable)RETRIEVING_PRIMARY_SOURCES— enriching with primary source dataCOMPOSING_RESPONSE— preparing context for LLMGENERATING_RESPONSE— LLM generating the answer
Success Result
{
"id": "abc123",
"status": "SUCCESS",
"result": {
"title": "How does protein structure affect function?",
"sessionId": 42,
"slug": "how-does-protein-structure-affect-function-xK9mP",
"turns": [...],
"lastUpdated": "2025-01-15",
"createdAt": "2025-01-15",
"tooManySessions": false
}
}
Turn Structure
Each assistant turn in the turns array contains:
| Field | Type | Description |
|---|---|---|
role | str | "user" or "assistant" |
content | str | Response text with numbered citation markers like [1], [2] |
structuredResponse | list or null | Structured response data (when useStructuredResponse was true) |
references | list | Cited references (see below) |
searchStrategy | list[str] or null | Search queries that were used |
warning | str or null | Warning message if applicable |
model | str or null | The model that generated this response |
settings | dict or null | Settings applied (e.g., AI-suggested rankBy, yearFrom, yearTo) |
publicationsConsulted | list[dict] or null | All publications considered (including unused ones) |
Reference Structure
Each reference in the references array:
| Field | Type | Description |
|---|---|---|
answer | str | The relevant text passage (citation statement or abstract excerpt) |
texts | list[str] | Text passages used |
context | str | Surrounding context of the passage |
title | str | Paper title |
doi | str | Paper DOI |
link | str | Link to the Scite report page |
type | str | "abstract" or "citation_statement" |
paper | object | Full paper metadata (title, authors, journal, year, date, abstract, tally, DOI, etc.) |
patent | object or null | Patent data if from patent search |
refCheckId | str or null | Reference check task ID if from uploaded document |
GET
/
api_partner
/
assistant
/
tasks
/
{task_id}
Get Assistant Task
curl --request GET \
--url https://api.scite.ai/api_partner/assistant/tasks/{task_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scite.ai/api_partner/assistant/tasks/{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.scite.ai/api_partner/assistant/tasks/{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.scite.ai/api_partner/assistant/tasks/{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.scite.ai/api_partner/assistant/tasks/{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.scite.ai/api_partner/assistant/tasks/{task_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.scite.ai/api_partner/assistant/tasks/{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{
"id": "<string>",
"info": {
"step": "<string>",
"stepNumber": 123,
"response": "<string>",
"structuredResponse": [
"<unknown>"
],
"searches": [
"<string>"
],
"publicationsUsed": [
"<string>"
],
"publicationsConsulting": [
"<string>"
],
"currentSearch": "<string>",
"dois": [
"<string>"
],
"factChecks": {
"used": [
"<unknown>"
],
"rejected": [
"<unknown>"
]
}
},
"status": "<string>",
"result": {
"slug": "<string>",
"title": "<string>",
"sessionId": 123,
"turns": [
{
"role": "<string>",
"content": "<string>",
"sections": [
"<string>"
],
"structuredResponse": [
"<unknown>"
],
"references": [
{
"answer": "<string>",
"texts": [
"<string>"
],
"context": "<string>",
"title": "<string>",
"doi": "<string>",
"link": "<string>",
"paper": {
"id": "<string>",
"doi": "<string>",
"title": "<string>",
"slug": "<string>",
"authors": [
{
"authorName": "<string>",
"authorSlug": "<string>",
"authorSequenceNumber": "<string>",
"affiliation": "<string>",
"affiliationSlug": "<string>"
}
],
"journal": "<string>",
"shortJournal": "<string>",
"publisher": "<string>",
"memberId": 123,
"abstract": "<string>",
"year": 123,
"date": "<string>",
"lastUpdate": 123,
"volume": "<string>",
"issue": "<string>",
"page": "<string>",
"tally": {
"citingPublications": 436,
"contradicting": 6,
"doi": "10.1016/j.biopsych.2005.08.012",
"mentioning": 308,
"supporting": 27,
"total": 347,
"unclassified": 6
},
"issns": [
"<string>"
],
"editorialNotices": [
{
"doi": "<string>",
"status": "<string>",
"date": "<string>",
"noticeDoi": "<string>",
"urls": [
"<string>"
]
}
],
"normalizedTypes": [
"<string>"
],
"isOa": false,
"oaStatus": "closed",
"meshTypes": [
{
"descriptorId": "<string>",
"descriptorName": "<string>",
"qualifierId": "<string>",
"qualifierName": "<string>"
}
],
"relevancyScore": 123,
"citations": [
{
"source": "<string>",
"target": "<string>",
"snippet": "<string>",
"id": 123,
"negative": 123,
"positive": 123,
"neutral": 123,
"section": "<string>",
"expertClassification": "<string>",
"type": "<string>",
"typeConfidence": 123,
"lang": "<string>",
"langConfidence": 123,
"refLocation": "<string>",
"memberId": 123,
"selfCites": [
{
"type": "<string>",
"family": "<string>",
"given": "<string>"
}
],
"snippetHidden": false
}
],
"fulltextExcerpts": [
"<string>"
],
"highlightedFields": [
"<string>"
]
},
"textSources": [
"<string>"
],
"type": "academic_paper",
"patent": {},
"refCheckId": "<string>",
"included": true,
"reason": "<string>"
}
],
"feedback": {
"feedbackType": "positive",
"reason": "<string>"
},
"searchStrategy": [
"<string>"
],
"warning": "<string>",
"model": "<string>",
"settings": {},
"publicationsConsulted": [
{}
],
"columns": [
{
"name": "<string>",
"slug": "<string>",
"instructions": "<string>",
"type": "response",
"order": 0,
"json_response_type": "concise"
}
]
}
],
"turnsTotal": 123,
"turnsOffset": 123,
"lastUpdated": "2023-12-25",
"shareToken": "<string>",
"createdAt": "2023-12-25",
"hasUploadedReferences": false
},
"error": "<string>",
"usage": {
"used": 123,
"max": 123
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Set to Bearer <token> to pass token for authorization.
