> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mentionlab.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List the project's jobs

> Newest first by default.



## OpenAPI

````yaml https://api.mentionlab.io/api/docs/v2-json get /api/v2/projects/{projectId}/jobs
openapi: 3.0.0
info:
  title: MentionLab Public API v2
  description: ''
  version: 0.6.48
  contact: {}
servers:
  - url: https://api.mentionlab.io
security: []
tags: []
paths:
  /api/v2/projects/{projectId}/jobs:
    get:
      tags:
        - Jobs
      summary: List the project's jobs
      description: Newest first by default.
      operationId: JobsV2Controller_list_v2
      parameters:
        - name: page
          required: false
          in: query
          description: >-
            Which slice of the matched rows to return, counted from 1. Rows
            skipped are (page - 1) * limit.
          schema:
            minimum: 1
            maximum: 1000000
            default: 1
            example: 2
            type: integer
        - name: limit
          required: false
          in: query
          description: >-
            How many rows one page holds, capped at 100 to keep a single
            response bounded.
          schema:
            minimum: 1
            maximum: 100
            default: 25
            example: 50
            type: integer
        - name: status
          required: false
          in: query
          description: >-
            Any of these; repeat the key or separate with commas. A syncing job
            matches completed or partial_failed
          schema:
            type: array
            items:
              type: string
              enum:
                - pending
                - processing
                - completed
                - failed
                - partial_failed
        - name: createdBy
          required: false
          in: query
          description: Only jobs this user launched; a scheduled job matches none
          schema:
            format: uuid
            example: 7c9e6679-7425-40de-944b-e07fc1f90ae7
            type: string
        - name: createdAfter
          required: false
          in: query
          description: Only jobs launched at or after this time
          schema:
            format: date-time
            example: '2026-11-01T00:00:00.000Z'
            type: string
        - name: createdBefore
          required: false
          in: query
          description: Only jobs launched at or before this time
          schema:
            format: date-time
            example: '2026-11-30T23:59:59.999Z'
            type: string
        - name: sort
          required: false
          in: query
          description: >-
            Comma-separated field:asc|desc pairs. Sortable: createdAt,
            updatedAt, status.
          schema:
            example: createdAt:desc
            type: string
        - name: x-project-id
          in: header
          description: Project ID to specify the project context
          required: true
          schema:
            type: string
        - name: projectId
          required: true
          in: path
          schema:
            format: uuid
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/PagingResponse'
                properties:
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/JobV2Response'
                  page:
                    $ref: '#/components/schemas/Paging'
        '400':
          description: >-
            The request failed validation: the body, query or path parameters
            are malformed or out of range.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '401':
          description: The request is missing valid authentication credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
        '403':
          description: >-
            The authenticated principal lacks the required permission, or access
            to the requested organisation/project.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
components:
  schemas:
    PagingResponse:
      type: object
      properties:
        page:
          $ref: '#/components/schemas/Paging'
      required:
        - page
    JobV2Response:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Id of the job, used to poll it and to list its executions
        status:
          type: string
          enum:
            - pending
            - processing
            - syncing
            - completed
            - failed
            - partial_failed
          description: >-
            Where the job stands. `syncing`: every execution is over and the
            results are not all readable yet
        createdBy:
          nullable: true
          description: Who launched the job; null for a scheduled job or an API key
          type: object
          allOf:
            - $ref: '#/components/schemas/JobCreatorV2'
        scheduleId:
          type: string
          format: uuid
          nullable: true
          description: >-
            The schedule that launched the job; null for a manual launch or a
            deleted schedule
        spentCredits:
          type: integer
          nullable: true
          description: Credits charged at launch, before any refund; null when not recorded
        totalExecutionCount:
          type: integer
          description: 'Executions the job holds: one per query, model and repeat'
        pendingExecutionCount:
          type: integer
          description: Executions with no answer yet
        retryingExecutionCount:
          type: integer
          description: Executions that failed an attempt and wait for another
        succeededExecutionCount:
          type: integer
          description: Executions that came back with an answer
        failedExecutionCount:
          type: integer
          description: Executions that gave up, their attempts spent
        themeAnalysis:
          type: string
          enum:
            - pending
            - processing
            - done
          nullable: true
          description: >-
            Where the theme analysis of the job's answers stands; null when the
            project runs none
          example: done
        createdAt:
          type: string
          format: date-time
          description: When the job was launched
        updatedAt:
          type: string
          format: date-time
          description: When a counter or the status last moved; a poller watches this
      required:
        - id
        - status
        - createdBy
        - scheduleId
        - spentCredits
        - totalExecutionCount
        - pendingExecutionCount
        - retryingExecutionCount
        - succeededExecutionCount
        - failedExecutionCount
        - themeAnalysis
        - createdAt
        - updatedAt
    Paging:
      type: object
      properties:
        totalRecords:
          type: number
        limit:
          type: number
        currentPage:
          type: number
        totalPages:
          type: number
        nextPage:
          type: number
        prevPage:
          type: number
      required:
        - totalRecords
        - limit
        - currentPage
        - totalPages
        - nextPage
        - prevPage
    ApiErrorResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code of the error.
          example: 400
        message:
          type: string
          description: >-
            Human-readable description of the error. Validation failures return
            an array of per-field validation errors instead of a single string.
          example: Validation failed
        error:
          type: string
          description: Short name of the HTTP error.
          example: Bad Request
      required:
        - statusCode
    JobCreatorV2:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Id of the user who launched the job
          example: 9f1c2d3e-4a5b-4c6d-8e7f-0a1b2c3d4e5f
        firstName:
          type: string
          description: Given name on that user's profile
          example: Ada
        lastName:
          type: string
          description: Family name on that user's profile
          example: Lovelace
        email:
          type: string
          description: Address that user signs in with
          example: ada.lovelace@example.com
      required:
        - id
        - firstName
        - lastName
        - email

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.