跳转到主要内容
GET
Retrieve Task Run

请求规范

  • 方法与路径: GET /apis/v1/parallel/tasks/runs/{run_id}
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/parallel/tasks/runs/{run_id}
  • run_id: path; 必填
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

公开参考价格:每次成功请求 $0.012 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

run_id
string
必填

响应

Successful Response

Status of a task run.

created_at
string | null
必填

Timestamp of the creation of the task, as an RFC 3339 string.

示例:

"2025-04-24T18:56:22.513132Z"

interaction_id
string
必填

Identifier for this interaction. Pass this value as previous_interaction_id to reuse context for a future request.

示例:

"trun_e0083b6aac0544eb8686e8d2a76533d2"

is_active
boolean
必填

Whether the run is currently active, i.e. status is one of {'cancelling', 'queued', 'running'}.

modified_at
string | null
必填

Timestamp of the last modification to the task, as an RFC 3339 string.

示例:

"2025-04-24T18:56:22.513132Z"

processor
string
必填

Processor used for the run.

示例:

"base"

run_id
string
必填

ID of the task run.

示例:

"trun_e0083b6aac0544eb8686e8d2a76533d2"

status
enum<string>
必填

Status of the run.

可用选项:
queued,
action_required,
running,
completed,
failed,
cancelling,
cancelled
示例:

"queued"

"action_required"

"running"

"completed"

"failed"

"cancelling"

"cancelled"

error
Error · object | null

Error for the run, present only if status is 'failed'.

metadata
Metadata · object | null

User-provided metadata stored with the run.

示例:
taskgroup_id
string | null

ID of the taskgroup to which the run belongs.

warnings
Warning · object[] | null

Warnings for the run, if any.

示例: