curl -X GET https://api.mintlify.com/v1/agent/{projectId}/job/{id} \ -H "Authorization: Bearer YOUR_API_KEY"
{ "sessionId": "abc123xyz789", "subdomain": "example", "branch": "agent-update-docs", "haulted": true, "haultReason": "completed", "pullRequestLink": "https://github.com/your-org/your-repo/pull/123", "messageToUser": "Successfully updated the introduction page with new API endpoint information.", "todos": [ { "content": "Update introduction.mdx with new API endpoint", "status": "completed", "priority": "high", "id": "todo-1" }, { "content": "Create pull request", "status": "completed", "priority": "medium", "id": "todo-2" } ], "createdAt": "2024-01-15T10:30:00.000Z"}
Agent
Get agent job
Retrieve the details and status of a specific agent job
This endpoint retrieves the details and status of a specific agent job by its unique identifier. Use this to check the progress, status, and results of a previously created agent job.