跳转到主要内容
GET
/
agent
/
{projectId}
/
job
/
{id}
Get agent job by ID
curl --request GET \
  --url https://api.mintlify.com/v1/agent/{projectId}/job/{id} \
  --header 'Authorization: Bearer <token>'
{
  "sessionId": "<string>",
  "subdomain": "<string>",
  "branch": "<string>",
  "haulted": true,
  "haultReason": "completed",
  "pullRequestLink": "<string>",
  "messageToUser": "<string>",
  "todos": [
    {
      "content": "<string>",
      "status": "pending",
      "priority": "high",
      "id": "<string>"
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z"
}

用法

此端点可通过唯一标识符获取特定代理任务的详细信息与状态。可用于查看之前创建的代理任务的进度、状态和结果。

作业详情

响应包含以下信息:
  • 作业执行状态与完成情况
  • branch 信息与拉取请求(PR;亦称“合并请求”/Merge Request)详情
  • 会话 metadata 与时间戳

Authorizations

Authorization
string
header
required

The Authorization header expects a Bearer token. Create an Admin API Key here.

Path Parameters

projectId
string
required

The ID of your project. Can be retrieved from your dashboard.

id
string
required

The unique identifier of the agent job to retrieve.

Response

200 - application/json

Agent job details retrieved successfully

sessionId
string

The subdomain this session belongs to.

subdomain
string

The subdomain this session belongs to.

branch
string | null

Git branch name where changes were made.

haulted
boolean

Whether the session execution was halted.

haultReason
enum<string>

Reason for session halt.

Available options:
completed,
github_missconfigured,
error

Link to the created pull request.

messageToUser
string

Message for the user about the session outcome.

todos
object[]

List of todo items from the session.

createdAt
string<date-time>

Timestamp when the session was created.

I