---
title: "Get agent job (v1)"
method: GET
path: "/v1/agent/{projectId}/job/{id}"
deprecated: true
language: "en"
---

# Get agent job (v1)

`GET /v1/agent/{projectId}/job/{id}`

## Request

- Base URL: `https://api.mintlify.com`
- URL: `https://api.mintlify.com/v1/agent/{projectId}/job/{id}`
- Auth: HTTP bearer

> **Deprecated.**

Deprecated: use [v2 get agent job](/api/agent/v2/get-agent-job) instead. Retrieves the details and status of a specific agent job by its ID.

Authenticate with an admin API key.

## Path parameters

- `projectId` string, required
- `id` string, required

## Response `200`

Agent job details retrieved successfully

- object
  - `sessionId` string: The subdomain this session belongs to.
  - `subdomain` string: The subdomain this session belongs to.
  - `branch` string, nullable: Git branch name where changes were made.
  - `haulted` boolean: Whether the session execution was halted.
  - `haultReason` 'completed' | 'github_missconfigured' | 'error' | 'processing' | 'interrupted': Reason for session halt. `processing` indicates the job is still running. `interrupted` indicates the job was manually interrupted.
  - `pullRequestLink` string: Link to the created pull request.
  - `messageToUser` string: Message for the user about the session outcome.
  - `todos` object[]: List of todo items from the session.
    - `content` string: Brief description of the task.
    - `status` 'pending' | 'in_progress' | 'completed' | 'cancelled': Current status of the task.
    - `priority` 'high' | 'medium' | 'low': Priority level of the task.
    - `id` string: Unique identifier for the todo item.
  - `userId` string: The ID of the user who created this session, if available.
  - `title` string: A generated title summarizing the agent job.
  - `createdAt` string, date-time: Timestamp when the session was created.

## Other responses

- `400`: No agent job with this ID exists in this project, or the project ID is malformed.
- `401`: The API key is missing or invalid, or your plan doesn't include API access or the agent.
- `403`: Your request came from an IP address that isn't on your API key's allowlist.
- `404`: The project doesn't exist or doesn't belong to your organization.

## Changes

- **2026-10-30** `3eb6a2a4ba24`: 4 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
- **2026-03-23** `ee61746251b2`: 2 warning
  - added the new `interrupted` enum value to the `haultReason` response property for the response status `200`
  - added the new `processing` enum value to the `haultReason` response property for the response status `200`
- **2026-03-10** `2a52ec342266`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mintlify/apis/mintlify-admin-api/changes/v1/agent/:projectId/job/:id/get.md)

---

[API](https://skmtc.dev/mintlify/apis/mintlify-admin-api.md) - [All operations](https://skmtc.dev/mintlify/apis/mintlify-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mintlify/apis/mintlify-admin-api/revisions/20f9b4a4a842?raw)
