curl --request GET \
--url https://api.mintlify.com/v2/agent/{projectId}/job/{id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"status": "active",
"source": {
"repository": "<string>",
"ref": "<string>"
},
"model": "<string>",
"prLink": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"archivedAt": "2023-11-07T05:31:56Z"
}轮询代理任务的状态和详细信息,包括 PR 链接(创建后)。
curl --request GET \
--url https://api.mintlify.com/v2/agent/{projectId}/job/{id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"status": "active",
"source": {
"repository": "<string>",
"ref": "<string>"
},
"model": "<string>",
"prLink": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"archivedAt": "2023-11-07T05:31:56Z"
}| 状态 | 描述 |
|---|---|
active | 任务正在运行 |
completed | 任务成功完成 |
failed | 任务遇到错误 |
archived | 任务已归档 |
active 时,每 5-10 秒轮询一次completed、failed 或 archived 后停止轮询prLink 字段会被填充The Authorization header expects a Bearer token. Use an admin API key (prefixed with mint_). This is a server-side secret key. Generate one on the API keys page in your dashboard.
The unique identifier of the agent job to retrieve.
Agent job details retrieved successfully.
Unique identifier for the agent job.
Current status of the agent job.
active, completed, archived, failed Information about the source repository.
显示 子属性
The AI model used for this job.
URL of the pull request created by the agent. Null until the PR is created.
Timestamp when the job was created.
Timestamp when the job was archived. Null if still active.
此页面对您有帮助吗?