> ## 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.

# Get Deployment

> Get a specific deployment by ID.



## OpenAPI

````yaml https://agentex.dev-sgp.scale.com/openapi.json get /agents/{agent_id}/deployments/{deployment_id}
openapi: 3.1.0
info:
  title: Agentex API
  version: 0.1.0
servers: []
security: []
paths:
  /agents/{agent_id}/deployments/{deployment_id}:
    get:
      tags:
        - Deployments
      summary: Get Deployment
      description: Get a specific deployment by ID.
      operationId: get_deployment_agents__agent_id__deployments__deployment_id__get
      parameters:
        - name: deployment_id
          in: path
          required: true
          schema:
            type: string
            title: Deployment Id
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Deployment'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Deployment:
      properties:
        id:
          type: string
          title: Id
          description: The unique identifier of the deployment.
        agent_id:
          type: string
          title: Agent Id
          description: The agent this deployment belongs to.
        docker_image:
          type: string
          title: Docker Image
          description: Full Docker image URI.
        registration_metadata:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Registration Metadata
          description: Git/build metadata from the agent pod.
        status:
          $ref: '#/components/schemas/DeploymentStatus'
          description: Current deployment status.
        acp_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Acp Url
          description: ACP URL set when agent registers.
        is_production:
          type: boolean
          title: Is Production
          description: Whether this is the production deployment.
        sgp_deploy_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Sgp Deploy Id
          description: Correlates to SGP's agentex_deploys.id.
        helm_release_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Helm Release Name
          description: Helm release name for cleanup.
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
          description: When the deployment was created.
        promoted_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Promoted At
          description: When promoted to production.
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
          description: When marked for cleanup.
      type: object
      required:
        - id
        - agent_id
        - docker_image
        - status
        - is_production
      title: Deployment
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DeploymentStatus:
      type: string
      enum:
        - Pending
        - Ready
        - Failed
      title: DeploymentStatus
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````