Skip to main content
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.

Usage

The response includes information such as:
  • Job execution status and completion state
  • Branch information and pull request details
  • Session metadata and timestamps
curl -X GET https://api.mintlify.com/v1/agent/{projectId}/job/{id} \
  -H "Authorization: Bearer YOUR_API_KEY"

Endpoint

projectId
string
required
Your project ID. Can be copied from the API keys page in your dashboard.
id
string
required
The unique identifier of the agent job to retrieve.

Response

sessionId
string
The session ID for this job.
subdomain
string
The subdomain this session belongs to.
branch
string
Git branch name where changes were made.
haulted
boolean
Whether the session execution was halted (completed).
haultReason
string
Reason for session halt. One of: completed, github_missconfigured, error.
Link to the created pull request.
messageToUser
string
Message for the user about the session outcome.
todos
array
List of todo items from the session.
createdAt
string
ISO 8601 timestamp when the session was created.
{
  "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"
}

Authentication

This endpoint requires an admin API key (prefixed with mint_). Generate one on the API keys page in your dashboard.

Build docs developers (and LLMs) love