获取代理任务(v1)

Changed on

已废弃:请改用 v2 get agent job。按 ID 检索特定代理任务的详细信息和状态。

使用管理员 API 密钥进行身份验证。

get/v1/agent/{projectId}/job/{id}

Request

  • Base URL
    https://api.mintlify.com
  • Auth
    HTTP bearer

Path parameters

projectIdstring required

你的项目 ID。可从你的控制台中的 API keys 页面复制。

idstring required

要检索的代理任务的唯一标识符。

Response

已成功检索代理任务详细信息

sessionIdstring

此会话所属的子域。

subdomainstring

此会话所属的子域。

branchstring nullable

进行更改的 Git branch 名称。

haultedboolean

会话执行是否已中止。

haultReason'completed' | 'github_missconfigured' | 'error' | 'processing' | 'interrupted'

会话中止的原因。processing 表示任务仍在运行。interrupted 表示任务被手动中断。

pullRequestLinkstring

已创建的拉取请求(PR;亦称“合并请求”/Merge Request)链接。

messageToUserstring

向用户说明会话结果的消息。

userIdstring

创建此会话的用户 ID(如有)

titlestring

用于概括代理任务的生成标题

createdAtstring date-time

会话创建时的时间戳。

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    1 more change in this revision