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

# List an app's deployments

> Newest first, 20 a page, with each version's status, who started it, its build and start times, and which one is live. `inFlight` is true while any version is queued, building or starting.



## OpenAPI

````yaml https://dojo.frogbot.ai/api/openapi.json get /api/apps/{app}/deployments
openapi: 3.1.0
info:
  title: Dojo API
  version: '1'
  description: >-
    Everything Dojo's pages do, for scripts and agents. Sign in with an API key
    as `Authorization: Bearer fb_…`. Paying and accepting the terms happen at a
    link a route answers, for a person to open.
servers:
  - url: https://dojo.frogbot.ai
security:
  - apiKey: []
tags:
  - name: Sign-in
  - name: Workspaces
  - name: Projects
  - name: Apps
  - name: Templates
  - name: Sharing
  - name: Deployments
  - name: Environment variables
  - name: Domains
  - name: Data
  - name: Billing
  - name: API keys
paths:
  /api/apps/{app}/deployments:
    get:
      tags:
        - Deployments
      summary: List an app's deployments
      description: >-
        Newest first, 20 a page, with each version's status, who started it, its
        build and start times, and which one is live. `inFlight` is true while
        any version is queued, building or starting.
      operationId: get/api/apps/:app/deployments
      parameters:
        - name: app
          in: path
          required: true
          description: The app's slug, such as `deals`, or its id.
          schema:
            type: string
        - name: page
          in: query
          required: false
          description: The page, from 1.
          schema:
            type: integer
        - name: deployment
          in: query
          required: false
          description: Without `page`, return the page that lists this deployment.
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  rows:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: A document id.
                        status:
                          type: string
                          enum:
                            - queued
                            - building
                            - starting
                            - live
                            - previous
                            - failed
                            - cancelled
                            - replaced
                        current:
                          type: boolean
                          description: The version the app runs now.
                        startedBy:
                          anyOf:
                            - type: string
                            - type: 'null'
                          description: The starter's name, else email.
                        createdAt:
                          type: string
                          format: date-time
                        buildMs:
                          anyOf:
                            - type: integer
                            - type: 'null'
                        startMs:
                          anyOf:
                            - type: integer
                            - type: 'null'
                        error:
                          anyOf:
                            - type: string
                            - type: 'null'
                        rollbackOf:
                          anyOf:
                            - type: object
                              properties:
                                id:
                                  type: string
                                  description: A document id.
                                createdAt:
                                  anyOf:
                                    - type: string
                                      format: date-time
                                    - type: 'null'
                              required:
                                - id
                                - createdAt
                            - type: 'null'
                        canRollBack:
                          type: boolean
                      required:
                        - id
                        - status
                        - current
                        - startedBy
                        - createdAt
                        - buildMs
                        - startMs
                        - error
                        - rollbackOf
                        - canRollBack
                  page:
                    type: integer
                  totalPages:
                    type: integer
                  inFlight:
                    type: boolean
                required:
                  - rows
                  - page
                  - totalPages
                  - inFlight
        '401':
          description: '`unauthorized`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '403':
          description: '`forbidden`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '404':
          description: '`not_found`'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
components:
  schemas:
    Errors:
      type: object
      required:
        - errors
      properties:
        errors:
          type: array
          items:
            type: object
            required:
              - message
            properties:
              message:
                type: string
              data:
                type: object
                properties:
                  code:
                    type: string
                  url:
                    type: string
                    description: Where a person takes the next step, such as paying.
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: >-
        An API key from `frogbot deploy`'s sign-in, `/api/cli/device/token`, or
        the API keys page.

````

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