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

# Get a config page by environment



## OpenAPI

````yaml GET /v1/agents/{agentId}/real-time-configs/{clientEnv}
openapi: 3.1.0
info:
  title: PolyAI Agents API
  version: 1.0.11
  description: Manage PolyAI agents, telephony, deployments, and real-time configs.
servers:
  - url: https://api.us.poly.ai
    description: US region
  - url: https://api.eu.poly.ai
    description: EU region
  - url: https://api.uk.poly.ai
    description: UK region
  - url: https://api.studio.poly.ai
    description: Studio region
security:
  - polyApiKey: []
paths:
  /v1/agents/{agentId}/real-time-configs/{clientEnv}:
    parameters:
      - name: agentId
        in: path
        required: true
        schema:
          type: string
      - name: clientEnv
        in: path
        required: true
        schema:
          type: string
    get:
      tags:
        - Real-Time Configs
      summary: Get a config page by environment
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetConfigPageResponse'
        '401':
          description: Unauthorized – missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden – insufficient permissions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error: Not authorized to access real-time configs.
                error_id: 550e8400-e29b-41d4-a716-446655440000
                error_code: REAL_TIME_CONFIG_FORBIDDEN_ACCESS
                error_message: Not authorized to access real-time configs.
                data: null
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    GetConfigPageResponse:
      description: A single config page for one environment.
      type: object
      properties:
        clientEnv:
          description: Environment (sandbox, pre-release, live)
          type: string
        variables:
          description: Config key-value pairs
          type: object
        schema:
          description: JSON Schema (Draft 7) definition
          type: object
        lastUpdated:
          description: ISO 8601 timestamp of last update
          type: string
      required:
        - clientEnv
    Error:
      type: object
      description: Standard PolyAI API error envelope.
      required:
        - success
        - error
        - error_id
        - error_code
        - error_message
        - data
      properties:
        success:
          type: boolean
          description: Always false for error responses.
          example: false
        error:
          type: string
          description: Human-readable error message.
        error_id:
          type: string
          description: >-
            Unique request identifier from the X-PolyAI-Correlation-Id header.
            Include this when contacting support.
        error_code:
          type: string
          description: Machine-readable error code in UPPER_SNAKE_CASE.
        error_message:
          type: string
          description: Human-readable error message.
        data:
          nullable: true
          description: Always null for error responses.
  securitySchemes:
    polyApiKey:
      type: apiKey
      in: header
      name: X-API-KEY

````