跳转到主要内容
GET
/
agent
/
{projectId}
/
jobs
Get all agent jobs
curl --request GET \
  --url https://api.mintlify.com/v1/agent/{projectId}/jobs \
  --header 'Authorization: Bearer <token>'
{
  "allSessions": [
    {
      "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"
    }
  ]
}

用法

此端点会检索指定 domain 的所有代理任务,提供代理活动及其当前状态的总体概览。适用于监控和管理并发或历史的多项代理任务。

响应

使用此端点获取所有以往代理会话的完整概览。

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.

Response

200 - application/json

All agent jobs retrieved successfully

allSessions
object[]

Array of all agent sessions for the domain.

I