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

# List Jobs

> List background jobs with optional filters and pagination.

Args:
    status_filter: Filter by job status (pending, running, completed, etc.).
    queue: Filter by queue name.
    handler: Filter by handler identifier.
    limit: Maximum records to return (1-200, default 50).
    offset: Records to skip for pagination (default 0).

Returns:
    Paginated list of jobs with total count.



## OpenAPI

````yaml get /api/v1/admin/jobs
openapi: 3.1.0
info:
  title: SnackBase
  description: Open-source Backend-as-a-Service (BaaS)
  version: 0.1.0
servers: []
security: []
paths:
  /api/v1/admin/jobs:
    get:
      tags:
        - admin
        - jobs
        - Jobs
      summary: List Jobs
      description: |-
        List background jobs with optional filters and pagination.

        Args:
            status_filter: Filter by job status (pending, running, completed, etc.).
            queue: Filter by queue name.
            handler: Filter by handler identifier.
            limit: Maximum records to return (1-200, default 50).
            offset: Records to skip for pagination (default 0).

        Returns:
            Paginated list of jobs with total count.
      operationId: list_jobs_api_v1_admin_jobs_get
      parameters:
        - name: status
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Status
        - name: queue
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Queue
        - name: handler
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Handler
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 200
            minimum: 1
            default: 50
            title: Limit
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            minimum: 0
            default: 0
            title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobListResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    JobListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/JobResponse'
          type: array
          title: Items
        total:
          type: integer
          title: Total
      type: object
      required:
        - items
        - total
      title: JobListResponse
      description: Paginated list of jobs.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    JobResponse:
      properties:
        id:
          type: string
          title: Id
        queue:
          type: string
          title: Queue
        handler:
          type: string
          title: Handler
        payload:
          additionalProperties: true
          type: object
          title: Payload
        status:
          type: string
          title: Status
        priority:
          type: integer
          title: Priority
        run_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Run At
        started_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Started At
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        failed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Failed At
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        attempt_number:
          type: integer
          title: Attempt Number
        max_retries:
          type: integer
          title: Max Retries
        retry_delay_seconds:
          type: integer
          title: Retry Delay Seconds
        created_at:
          type: string
          format: date-time
          title: Created At
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        account_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Account Id
      type: object
      required:
        - id
        - queue
        - handler
        - payload
        - status
        - priority
        - run_at
        - started_at
        - completed_at
        - failed_at
        - error_message
        - attempt_number
        - max_retries
        - retry_delay_seconds
        - created_at
        - created_by
        - account_id
      title: JobResponse
      description: Response schema for a single job record.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````