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

# List Apps

> List all apps with the ability to filter by organization slug.




## OpenAPI

````yaml /api/machines/openapi.json get /v1/apps
openapi: 3.1.0
info:
  title: Machines API
  description: >-
    This site hosts documentation generated from the Fly.io Machines API OpenAPI
    specification. Visit our complete [Machines API
    docs](https://fly.io/docs/machines/api/) for how to get started, more
    information about each endpoint, parameter descriptions, and examples.
  contact: {}
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  version: '1.0'
servers:
  - url: https://api.machines.dev
security:
  - FlyBearerAuth: []
tags:
  - name: Apps
    description: >-
      This site hosts documentation generated from the Fly.io Machines API
      OpenAPI specification. Visit our complete [Machines API
      docs](https://fly.io/docs/machines/api/apps-resource/) for details about
      using the Apps resource.
  - name: Machines
    description: >-
      This site hosts documentation generated from the Fly.io Machines API
      OpenAPI specification. Visit our complete [Machines API
      docs](https://fly.io/docs/machines/api/machines-resource/) for details
      about using the Machines resource.
  - name: TLS Certificates
    description: >
      This site hosts documentation generated from the Fly.io Machines API
      OpenAPI specification. Visit our complete [Machines API
      docs](https://fly.io/docs/machines/api/certificates-resource/) for details
      about using the TLS Certificates resource.
  - name: Volumes
    description: >-
      This site hosts documentation generated from the Fly.io Machines API
      OpenAPI specification. Visit our complete [Machines API
      docs](https://fly.io/docs/machines/api/volumes-resource/) for details
      about using the Volumes resource.
  - name: Postgres Clusters
    description: >-
      Create and manage Postgres clusters, including databases, users,
      extensions, backups, and app attachments.
externalDocs:
  url: https://fly.io/docs/machines/working-with-machines/
paths:
  /v1/apps:
    get:
      tags:
        - Apps
      summary: List Apps
      description: |
        List all apps with the ability to filter by organization slug.
      operationId: Apps_list
      parameters:
        - name: org_slug
          in: query
          description: The org slug, or 'personal', to filter apps
          required: true
          schema:
            type: string
        - name: app_role
          in: query
          description: Filter apps by role
          schema:
            type: string
        - name: limit
          in: query
          description: >-
            The number of apps to fetch (must be between 1 and 5000). Providing
            a limit enables pagination. Without it, all apps are returned in one
            response.
          schema:
            type: integer
        - name: cursor
          in: query
          description: >-
            Value of next_cursor from the previous page. Requires limit. Later
            pages only include apps that existed when the first page was
            requested. Apps created in the seconds before the first page was
            requested may be missing. Cursors expire 30 minutes after the first
            page was requested.
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListAppsResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ListAppsResponse:
      type: object
      properties:
        apps:
          type: array
          description: The apps on this page, or all apps if `limit` was not provided.
          items:
            $ref: '#/components/schemas/App'
        next_cursor:
          type: string
          description: >-
            Pagination cursor for the next page. Absent when no more apps
            remain.

            Cursors expire 30 minutes after the first page was requested.
        total_apps:
          type: integer
          description: >-
            The number of apps matching the request, across all pages. When

            paginating, it is counted once when the first page is requested and
            not

            updated afterwards, so it may differ slightly from the number of
            apps

            returned: it excludes apps created later and includes apps deleted
            while

            paginating. Apps created in the seconds before the first page may
            also be

            counted but missing from the pages.
    ErrorResponse:
      type: object
      properties:
        details:
          type: object
          description: 'Deprecated: details about some errors. Do not rely on its contents.'
        error:
          type: string
          description: >-
            Human-readable description of the error. Its wording may change; use
            `status` to tell

            errors apart.
        status:
          type: object
          description: >-
            Machine-readable error code, set for some errors, such as
            `insufficient_capacity`,

            `volume_placement_capacity`, `name_taken`, `exec_request_too_large`,
            or

            `exec_output_too_large`.
          allOf:
            - $ref: '#/components/schemas/main.statusCode'
    App:
      type: object
      properties:
        id:
          type: string
          description: Unique ID of the app, as used by Fly.io's GraphQL API.
        internal_numeric_id:
          type: integer
          description: Fly.io's internal numeric ID of the app.
        machine_count:
          type: integer
          description: Number of the app's Machines that have not been destroyed.
        name:
          type: string
          description: Globally unique name of the app.
        network:
          type: string
          description: >-
            Name of the private network the app is attached to: `default` for
            the organization's

            default network, or the name given when the app was created.
        network_cidr:
          type: string
          description: >-
            The /48 IPv6 prefix of the private (6PN) network the app is attached
            to, such as

            `fdaa:0:1234::/48`. Apps on the same network share it.
        organization:
          type: object
          description: The organization that owns the app.
          allOf:
            - $ref: '#/components/schemas/AppOrganizationInfo'
        status:
          type: string
          description: >-
            State of the app. `pending` until one of its Machines changes state.
            After that, updated

            asynchronously whenever a Machine changes state: `deployed` if at
            least one Machine is

            started, and `suspended` otherwise.
          enum:
            - pending
            - deployed
            - suspended
        volume_count:
          type: integer
          description: >-
            Number of the app's volumes that have not been destroyed or
            scheduled for destruction.
    main.statusCode:
      type: string
      enum:
        - unknown
        - insufficient_capacity
        - volume_placement_capacity
        - exec_request_too_large
        - exec_output_too_large
        - name_taken
      x-enum-varnames:
        - unknown
        - capacityErr
        - volumePlacementCapacityErr
        - execRequestTooLargeErr
        - execOutputTooLargeErr
        - nameTakenErr
    AppOrganizationInfo:
      type: object
      properties:
        internal_numeric_id:
          type: integer
          description: Fly.io's internal numeric ID of the organization.
        name:
          type: string
          description: Display name of the organization.
        slug:
          type: string
          description: >-
            Slug of the organization, used to refer to it in API requests such
            as `org_slug`.
  securitySchemes:
    FlyBearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Fly API token with access to the requested organization or resource.
        Send it as `Authorization: Bearer <Fly API token>`.

````