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

# List all processes

> Get a list of all running and completed processes



## OpenAPI

````yaml /reference/sandbox-api/openapi.json get /process
openapi: 3.0.0
info:
  description: API for manipulating filesystem, processes and network.
  title: Sandbox API
  contact: {}
  version: 0.0.1
servers:
  - url: https://{sandbox_host}
    description: >-
      Host from the sandbox's returned url, without the scheme or trailing
      slash.
    variables:
      sandbox_host:
        default: sandbox.example.com
security:
  - BearerAuth: []
paths:
  /process:
    get:
      tags:
        - process
      summary: List all processes
      description: Get a list of all running and completed processes
      responses:
        '200':
          description: Process list
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ProcessResponse'
components:
  schemas:
    ProcessResponse:
      type: object
      required:
        - command
        - completedAt
        - exitCode
        - logs
        - name
        - pid
        - startedAt
        - status
        - stderr
        - stdout
        - workingDir
      properties:
        command:
          type: string
          example: ls -la
        completedAt:
          description: >-
            Completion time, same format as startedAt. Empty string while the
            process runs
          type: string
          example: Wed, 01 Jan 2023 12:01:00 GMT
        exitCode:
          type: integer
          example: 0
        keepAlive:
          description: Whether scale-to-zero is disabled for this process
          type: boolean
          example: false
        logs:
          type: string
          example: logs output
        maxRestarts:
          type: integer
          example: 3
        name:
          type: string
          example: my-process
        pid:
          type: string
          example: '1234'
        restartCount:
          type: integer
          example: 2
        restartOnFailure:
          type: boolean
          example: true
        startedAt:
          description: >-
            Start time as an HTTP date (RFC 1123, e.g. Wed, 01 Jan 2023 12:00:00
            GMT)
          type: string
          example: Wed, 01 Jan 2023 12:00:00 GMT
        status:
          type: string
          enum:
            - failed
            - killed
            - stopped
            - running
            - completed
          example: running
        stderr:
          type: string
          example: stderr output
        stdin:
          description: Whether the process was started with a writable stdin pipe
          type: boolean
          example: false
        stdout:
          type: string
          example: stdout output
        workingDir:
          type: string
          example: /home/user
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Sandbox access token created through POST /v1/token.

````