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

# List Cron Jobs

> List all cron jobs for an app environment.



## OpenAPI

````yaml https://api.getfloo.com/openapi.json get /v1/apps/{app_id}/cron
openapi: 3.1.0
info:
  title: floo API
  version: 0.1.0
servers:
  - url: https://api.getfloo.com
security: []
paths:
  /v1/apps/{app_id}/cron:
    get:
      tags:
        - cron
      summary: List Cron Jobs
      description: List all cron jobs for an app environment.
      operationId: cron_list_cron_jobs
      parameters:
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: App Id
        - name: env
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/EnvironmentName'
            default: dev
        - name: preview
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Preview
        - $ref: '#/components/parameters/X-Floo-Org-Id'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CronJobListResponse'
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    EnvironmentName:
      type: string
      enum:
        - dev
        - prod
        - preview
      title: EnvironmentName
      description: >-
        Enumerate the persisted development, production, and preview environment
        names.
    CronJobListResponse:
      properties:
        cron_jobs:
          items:
            $ref: '#/components/schemas/CronJobResponse'
          type: array
          title: Cron Jobs
        total:
          type: integer
          title: Total
      type: object
      required:
        - cron_jobs
        - total
      title: CronJobListResponse
      description: Response for listing cron jobs.
    ErrorResponse:
      properties:
        detail:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - detail
      title: ErrorResponse
      description: Body of every error response except request validation (422).
    CronJobResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        app_id:
          type: string
          format: uuid
          title: App Id
        env_id:
          type: string
          format: uuid
          title: Env Id
        name:
          type: string
          title: Name
        schedule:
          type: string
          title: Schedule
        command:
          type: string
          title: Command
        service_name:
          type: string
          title: Service Name
        timeout:
          type: integer
          title: Timeout
        enabled:
          type: boolean
          title: Enabled
        last_run_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Run At
        last_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Status
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - app_id
        - env_id
        - name
        - schedule
        - command
        - service_name
        - timeout
        - enabled
        - created_at
        - updated_at
      title: CronJobResponse
      description: Response for a single cron job.
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
      additionalProperties: true
      type: object
      required:
        - code
        - message
      title: ErrorDetail
      description: Standard error envelope with operation-specific JSON context.
  parameters:
    X-Floo-Org-Id:
      name: X-Floo-Org-Id
      in: header
      required: false
      schema:
        type: string
        format: uuid
      description: Organization to act in; defaults to the one joined most recently.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A `floo_` API key.

````

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