Retrieves the current status and details of an agent job. Poll this endpoint to track job progress.

Authenticate with an admin API key.

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

Request

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

Path parameters

projectIdstring required

Your project ID. Can be copied from the API keys page in your dashboard.

idstring required

The unique identifier of the agent job.

Response

Agent job details

idstring

Unique identifier for the agent job.

status'active' | 'completed' | 'archived' | 'failed'

Current status of the job. active — the agent is currently processing the prompt. completed — the agent finished successfully and a PR may have been created (check prLink). archived — the job has been archived. failed — the agent encountered an unrecoverable error. Poll until status is completed, archived, or failed.

modelstring

The AI model used for this job.

prLinkstring uri nullable

GitHub pull request URL created by the agent. null while the job is still active or if no files were changed. Populated once the agent successfully creates a PR.

createdAtstring date-time

Timestamp when the job was created.

archivedAtstring date-time nullable

Timestamp when the job was archived.

Example response

{
  "prLink": "https://github.com/org/repo/pull/123"
}

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