> ## 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 Exec Sessions

> List active exec sessions.



## OpenAPI

````yaml /sprites/api/openapi.json get /v1/sprites/{name}/exec
openapi: 3.1.0
info:
  title: Sprites API
  version: 0.1.12
  x-sprite-env-version: 0.0.5
servers:
  - url: https://api.sprites.dev
security: []
paths:
  /v1/sprites/{name}/exec:
    get:
      tags:
        - Exec
      summary: List Exec Sessions
      description: List active exec sessions.
      operationId: sprite_env_list__exec__sessions
      parameters:
        - in: path
          name: name
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              example:
                - bytes_per_second: 125.5
                  command: bash
                  created: '2026-01-05T10:30:00Z'
                  id: 1847
                  is_active: true
                  last_activity: '2026-01-05T10:35:00Z'
                  tty: true
                  workdir: /home/sprite/myproject
                - bytes_per_second: 0
                  command: python -m http.server 8000
                  created: '2026-01-05T09:15:00Z'
                  id: 1923
                  is_active: false
                  last_activity: '2026-01-05T09:20:00Z'
                  tty: false
                  workdir: /home/sprite/webapp
              schema:
                $ref: '#/components/schemas/ExecSessionListResponse'
          description: Success
        '404':
          description: Not Found - Resource not found
        '500':
          description: Internal Server Error
      security:
        - bearerAuth: []
components:
  schemas:
    ExecSessionListResponse:
      properties:
        count:
          description: Number of active sessions
          type: integer
        error:
          description: Present when the session manager is unavailable
          type: string
        sessions:
          description: Active exec sessions
          items:
            $ref: '#/components/schemas/ExecSession'
          type: array
      required:
        - sessions
        - count
      type: object
    ExecSession:
      properties:
        bytes_per_second:
          description: Recent output rate
          type: number
        command:
          description: Command being executed
          type: string
        created:
          description: Session creation time
          format: date-time
          type: string
        id:
          description: Session identifier
          type: string
        is_active:
          description: Whether the session has recent output or attached clients
          type: boolean
        last_activity:
          description: Time of the most recent output
          format: date-time
          type:
            - string
            - 'null'
        tty:
          description: Whether the session has a TTY
          type: boolean
        workdir:
          description: Working directory
          type: string
      required:
        - id
        - created
        - command
        - workdir
        - tty
        - bytes_per_second
        - is_active
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````