---
title: "List agent jobs (v1)"
method: GET
path: "/v1/agent/{projectId}/jobs"
deprecated: true
language: "en"
---

# List agent jobs (v1)

`GET /v1/agent/{projectId}/jobs`

## Request

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

> **Deprecated.**

Deprecated: use [v2 get agent job](/api/agent/v2/get-agent-job) instead. Retrieves all agent jobs for the specified domain, including their status and details.

Authenticate with an admin API key.

## Path parameters

- `projectId` string, required

## Query parameters

- `skip` integer
- `take` integer

## Response `200`

All agent jobs retrieved successfully

- object
  - `allSessions` object[]: Array of all agent sessions for the domain.
    - `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`: 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, 2 info
  - added the new `interrupted` enum value to the `allSessions/items/haultReason` response property for the response status `200`
  - added the new `processing` enum value to the `allSessions/items/haultReason` response property for the response status `200`
  - added the new optional `query` request parameter `skip`
  - added the new optional `query` request parameter `take`
- **2026-03-10** `2a52ec342266`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mintlify/apis/mintlify-admin-api/changes/v1/agent/:projectId/jobs/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)
