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

# List all agent jobs

> Returns a list of all agent jobs for the authenticated organization



## OpenAPI

````yaml https://interact.turntwo.com/api/openapi.json get /api/agents/jobs
openapi: 3.0.0
info:
  title: Turntwo Interact API
  description: API for managing agent jobs, chats, and triggering job executions
  version: 1.0.0
servers:
  - url: https://interact.turntwo.com
    description: Production server
security: []
tags:
  - name: Jobs
    description: Agent job management endpoints
  - name: Chats
    description: Agent chat endpoints
paths:
  /api/agents/jobs:
    get:
      tags:
        - Jobs
      summary: List all agent jobs
      description: Returns a list of all agent jobs for the authenticated organization
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JobsResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden - Missing required permission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - ApiKeyAuth: []
          OrganizationId: []
components:
  schemas:
    JobsResponse:
      type: object
      properties:
        organization:
          $ref: '#/components/schemas/Organization'
          description: Organization information
        jobs:
          type: array
          items:
            $ref: '#/components/schemas/Job'
      required:
        - organization
        - jobs
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
      required:
        - error
    Organization:
      type: object
      properties:
        id:
          type: string
          description: Organization ID
        name:
          type: string
          nullable: true
          description: Organization name
      required:
        - id
    Job:
      type: object
      properties:
        id:
          type: string
          description: Job ID
        name:
          type: string
          description: Job name
        status:
          type: string
          enum:
            - active
            - inactive
          description: Job status
        createdAt:
          type: string
          format: date-time
          description: Job creation timestamp
        agent:
          $ref: '#/components/schemas/Agent'
          description: Agent information
        runCount:
          type: integer
          description: Total number of runs
        isRunning:
          type: integer
          description: Number of currently running executions
        isScheduled:
          type: boolean
          description: Whether the job is scheduled
        lastRunAt:
          type: string
          format: date-time
          nullable: true
          description: Last run timestamp
      required:
        - id
        - name
        - status
        - createdAt
        - agent
        - runCount
        - isRunning
        - isScheduled
    Agent:
      type: object
      properties:
        id:
          type: string
          description: Agent ID
        name:
          type: string
          nullable: true
          description: Agent name
      required:
        - id
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication
    OrganizationId:
      type: apiKey
      in: header
      name: X-Organization-Id
      description: Organization ID associated with the API key

````