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

# List Deployments

> List all deployments with pagination and optional filters.



## OpenAPI

````yaml https://api.dev-sgp.scale.com/openapi-versions/v5/openapi.json get /v5/agentex/deployments
openapi: 3.1.0
info:
  title: EGP API V5
  description: >-
    This is the parent API for all EGP APIs. If you are looking for the EGP API,
    please go to https://api.egp.scale.com/docs.
  contact:
    name: Scale Generative AI Platform
    url: https://scale.com/genai-platform
  version: 0.1.0
servers:
  - url: https://api.egp.scale.com
security: []
paths:
  /v5/agentex/deployments:
    get:
      tags:
        - Agentex Cloud Deploy
      summary: List Deployments
      description: List all deployments with pagination and optional filters.
      operationId: GET-V5-/agentex/deployments
      parameters:
        - name: build_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter deployments by build ID
            title: Build Id
          description: Filter deployments by build ID
        - name: agent_name
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Filter deployments by agent name (via associated build)
            title: Agent Name
          description: Filter deployments by agent name (via associated build)
        - name: preview_label
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Filter deployments by preview label (e.g. branch name). The label
              is non-unique — many deployments can share it. Combine with
              limit=1 to get the latest deploy for that label.
            title: Preview Label
          description: >-
            Filter deployments by preview label (e.g. branch name). The label is
            non-unique — many deployments can share it. Combine with limit=1 to
            get the latest deploy for that label.
        - name: starting_after
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Starting After
        - name: ending_before
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Ending Before
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            maximum: 10000
            minimum: 1
            default: 100
            title: Limit
        - name: sort_by
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Sort By
        - name: sort_order
          in: query
          required: false
          schema:
            anyOf:
              - $ref: '#/components/schemas/SortOrder'
              - type: 'null'
            default: asc
            title: Sort Order
        - name: x-selected-account-id
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Account ID Header
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedList_AgentexCloudDeploy_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    SortOrder:
      type: string
      enum:
        - asc
        - desc
      title: SortOrder
    PaginatedList_AgentexCloudDeploy_:
      properties:
        object:
          type: string
          const: list
          title: Object
          default: list
        items:
          items:
            $ref: '#/components/schemas/AgentexCloudDeploy'
          type: array
          title: Items
        limit:
          type: integer
          title: Limit
          description: The maximum number of items to return.
          default: 100
        total:
          type: integer
          title: Total
          description: >-
            The total of items that match the query. This is greater than or
            equal to the number of items returned.
        has_more:
          type: boolean
          title: Has More
          description: Whether there are more items left to be fetched.
      type: object
      required:
        - items
        - total
        - has_more
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AgentexCloudDeploy:
      properties:
        id:
          type: string
          title: Id
        object:
          type: string
          const: agentex_cloud_deploy
          title: Object
          default: agentex_cloud_deploy
        build_id:
          title: Build Id
          type: string
        namespace:
          type: string
          title: Namespace
        helm_release_name:
          title: Helm Release Name
          type: string
        manifest_file:
          type: string
          title: Manifest File
        environment_config:
          type: string
          title: Environment Config
        status:
          type: string
          title: Status
        account_id:
          type: string
          title: Account Id
        expires_at:
          title: Expires At
          type: string
          format: date-time
        preview_label:
          title: Preview Label
          type: string
        created_at:
          type: string
          format: date-time
          title: Created At
        created_by:
          $ref: '#/components/schemas/Identity'
          description: The identity that created the entity.
        deploy_events:
          items:
            $ref: '#/components/schemas/AgentexCloudDeployEvent'
          type: array
          title: Deploy Events
          description: Kubernetes events for this deployment.
      type: object
      required:
        - id
        - namespace
        - manifest_file
        - environment_config
        - status
        - account_id
        - created_at
        - created_by
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          title: Error Type
          type: string
        input:
          title: Input
        ctx:
          type: object
          title: Context
          additionalProperties: true
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    Identity:
      properties:
        id:
          type: string
          title: Id
        object:
          type: string
          const: identity
          title: Object
          default: identity
        type:
          $ref: '#/components/schemas/IdentityType'
      type: object
      required:
        - id
        - type
      title: Identity
    AgentexCloudDeployEvent:
      properties:
        type:
          title: Type
          description: Event type, e.g. 'Normal' or 'Warning'.
          type: string
        reason:
          title: Reason
          description: Short reason, e.g. 'Pulling', 'Scheduled'.
          type: string
        message:
          title: Message
          description: Full event message.
          type: string
        timestamp:
          title: Timestamp
          description: When the event was observed.
          type: string
          format: date-time
      type: object
      title: AgentexCloudDeployEvent
      description: Slim event representation for the API response.
    IdentityType:
      type: string
      enum:
        - user
        - service_account
      title: IdentityType
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````