> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.usescout.sh/llms.txt.
> For full documentation content, see https://docs.usescout.sh/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.usescout.sh/_mcp/server.

# Task Get

GET https://core.usescout.sh/v1/tasks/{task_id}

Poll an async task. Returns the current run view (status, partial
output, citation basis once completed).

Reference: https://docs.usescout.sh/api-reference/scout/tasks/task-get-v-1-tasks-task-id-get

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: Scout
  version: 1.0.0
paths:
  /v1/tasks/{task_id}:
    get:
      operationId: task-get-v-1-tasks-task-id-get
      summary: Task Get
      description: |-
        Poll an async task. Returns the current run view (status, partial
        output, citation basis once completed).
      tags:
        - subpackage_tasks
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
        - name: Authorization
          in: header
          description: Your API key, sent as a Bearer token.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskRunView'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
servers:
  - url: https://core.usescout.sh
components:
  schemas:
    Citation:
      type: object
      properties:
        url:
          type: string
          description: URL of the cited source.
        title:
          type: string
          default: ''
          description: Title of the cited source.
        excerpts:
          type: array
          items:
            type: string
          description: Verbatim excerpts from the source supporting the field.
      required:
        - url
      title: Citation
    FieldBasis:
      type: object
      properties:
        field:
          type: string
          description: The output field this entry supports.
        citations:
          type: array
          items:
            $ref: '#/components/schemas/Citation'
          description: Citations supporting the field.
        reasoning:
          type: string
          default: ''
          description: How the cited sources support the field.
        confidence:
          type: string
          default: medium
          description: 'Confidence level: high, medium or low.'
      required:
        - field
      title: FieldBasis
    TaskUsage:
      type: object
      properties:
        tool_calls:
          type: integer
          default: 0
        search_queries:
          type: integer
          default: 0
        pages_fetched:
          type: integer
          default: 0
        tokens:
          type: object
          additionalProperties:
            type: integer
        planner_calls:
          type: integer
          default: 0
        grader_calls:
          type: integer
          default: 0
        synth_calls:
          type: integer
          default: 0
        scratchpad_mode:
          type:
            - string
            - 'null'
        scratchpad_chunks_indexed:
          type: integer
          default: 0
        scratchpad_chunks_used:
          type: integer
          default: 0
        scratchpad_searches:
          type: integer
          default: 0
        scratchpad_tool_turns:
          type: integer
          default: 0
      title: TaskUsage
    TaskRunView:
      type: object
      properties:
        task_id:
          type: string
          description: Opaque task identifier (alias of run_id).
        run_id:
          type: string
          description: Opaque run identifier (alias of task_id).
        status:
          type: string
          description: queued, running, completed, failed or cancelled.
        task:
          type: string
          description: The objective.
        query:
          type: string
          description: The objective verbatim (alias of `task`).
        processor:
          type: string
          default: core
          description: 'Processor tier used: base | core | ultra.'
        metadata:
          type:
            - object
            - 'null'
          additionalProperties:
            type: string
          description: Free-form user metadata, echoed back.
        fields:
          type: array
          items:
            type: string
          description: Output field names, derived from output_schema.
        output_schema:
          type:
            - object
            - 'null'
          additionalProperties:
            description: Any type
          description: The requested output spec, if any.
        output:
          description: >-
            The answer once completed. For type=json, the parsed JSON object.
            For text/auto, the string. Null until completed.
        basis:
          type: array
          items:
            $ref: '#/components/schemas/FieldBasis'
          description: Per-field citation basis (empty until completed).
        usage:
          oneOf:
            - $ref: '#/components/schemas/TaskUsage'
            - type: 'null'
          description: 'Usage stats: tool_calls, search_queries, pages_fetched, tokens.'
        answer:
          type: string
          default: ''
          description: The agent's answer text (empty until completed).
        sources:
          type: array
          items:
            type: string
          description: Sample of source URLs the agent read (empty until done).
        read:
          type: array
          items:
            type: string
          description: Source URLs read in full (empty until completed).
        considered:
          type: array
          items:
            type: string
          description: Source URLs considered (empty until completed).
        error:
          type:
            - string
            - 'null'
          description: Failure reason when status is failed.
        createdAt:
          type:
            - string
            - 'null'
          description: ISO-8601 creation timestamp.
        completedAt:
          type:
            - string
            - 'null'
          description: ISO-8601 completion timestamp.
        credits:
          type: integer
          description: Cost accumulated by the run.
        report:
          type:
            - string
            - 'null'
          description: >-
            Long-form markdown research report with inline [N] citations. Only
            present for research-tier runs.
        findings:
          type:
            - array
            - 'null'
          items:
            type: object
            additionalProperties:
              description: Any type
          description: >-
            Per-sub_query findings ({subquery, answer, citations, confidence,
            evidence}). Research-tier only.
        sources_detailed:
          type:
            - array
            - 'null'
          items:
            type: object
            additionalProperties:
              description: Any type
          description: >-
            Numbered sources list ({index, url, title, domain, fetched, quality,
            first_seen_subquery}). Research-tier only.
      required:
        - task_id
        - run_id
        - status
        - task
        - query
        - credits
      title: TaskRunView
    ValidationErrorLocItems:
      oneOf:
        - type: string
        - type: integer
      title: ValidationErrorLocItems
    ValidationErrorCtx:
      type: object
      properties: {}
      title: ValidationErrorCtx
    ValidationError:
      type: object
      properties:
        loc:
          type: array
          items:
            $ref: '#/components/schemas/ValidationErrorLocItems'
        msg:
          type: string
        type:
          type: string
        input:
          description: Any type
        ctx:
          $ref: '#/components/schemas/ValidationErrorCtx'
      required:
        - loc
        - msg
        - type
      title: ValidationError
    HTTPValidationError:
      type: object
      properties:
        detail:
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
      title: HTTPValidationError
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Your API key, sent as a Bearer token.

```

## SDK Code Examples

```python
import requests

url = "https://core.usescout.sh/v1/tasks/task_id"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.get(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://core.usescout.sh/v1/tasks/task_id';
const options = {
  method: 'GET',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://core.usescout.sh/v1/tasks/task_id"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("GET", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://core.usescout.sh/v1/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>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://core.usescout.sh/v1/tasks/task_id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://core.usescout.sh/v1/tasks/task_id', [
  'body' => '{}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://core.usescout.sh/v1/tasks/task_id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://core.usescout.sh/v1/tasks/task_id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```