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

# Get improve-scenarios progress

> Returns the status of an improve-scenarios session started with the improve-evaluator-scenarios endpoint.



## OpenAPI

````yaml /openapi/source/external/inference/inference-ai-tests.json get /ai/tests/test_framework/v1/scenarios/scenario-agent-progress
openapi: 3.1.0
info:
  version: 2.0.0
  title: Telnyx API
  x-latency-category: responsive
  x-endpoint-cost: light
  description: SIP trunking, SMS, MMS, Call Control and Telephony Data Services.
  contact:
    email: support@telnyx.com
servers:
  - url: https://api.telnyx.com/v2
    description: Version 2.0.0 of the Telnyx API
security:
  - bearerAuth: []
tags:
  - name: AI Tests
    description: >-
      Test agents, evaluator scenarios, metrics, and run results for the AI test
      framework.
paths:
  /ai/tests/test_framework/v1/scenarios/scenario-agent-progress:
    get:
      tags:
        - AI Tests
      summary: Get improve-scenarios progress
      description: >-
        Returns the status of an improve-scenarios session started with the
        improve-evaluator-scenarios endpoint.
      operationId: get_improve_scenarios_progress
      parameters:
        - name: progress_id
          in: query
          required: true
          description: Progress ID returned by the improve-evaluator-scenarios endpoint.
          schema:
            type: string
      responses:
        '200':
          description: Improvement session status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImproveScenariosProgress'
              example:
                progress_id: c8f5d2b3-4e5f-6a7b-9c0d-1f2a3b4c5d6e
                session_id: 417
                mode: improve
                status: completed
                result:
                  success: true
                  message: Applied changes to 2 scenarios.
                error: null
        '400':
          description: Bad Request. The AI Tests service rejected the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiTestsErrorResponse'
              example:
                errors:
                  - code: '10015'
                    title: Bad Request
                    detail: The AI Tests service rejected the request.
        '401':
          description: Unauthorized. Missing or invalid API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiTestsErrorResponse'
              example:
                errors:
                  - code: '10003'
                    title: Unauthorized
                    detail: The API key is missing or invalid.
        '404':
          description: >-
            Not Found. The requested resource does not exist or is not enabled
            for your account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiTestsErrorResponse'
              example:
                errors:
                  - code: '10005'
                    title: Not Found
                    detail: The requested resource or URL could not be found.
        '422':
          description: Unprocessable Entity. A validation error occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiTestsErrorResponse'
              example:
                errors:
                  - code: '10018'
                    title: Unprocessable Entity
                    detail: Validation failed for the request payload.
        '429':
          description: Too Many Requests. The AI Tests service rate-limited the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiTestsErrorResponse'
              example:
                errors:
                  - code: '10029'
                    title: Too Many Requests
                    detail: Too many requests; retry later.
        '503':
          description: Service Unavailable. The AI Tests service is unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiTestsErrorResponse'
              example:
                errors:
                  - code: '10063'
                    title: Service Unavailable
                    detail: The test framework service is temporarily unavailable.
components:
  schemas:
    ImproveScenariosProgress:
      type: object
      properties:
        progress_id:
          type: string
        session_id:
          type:
            - integer
            - 'null'
        mode:
          type: string
        status:
          type: string
        result:
          type:
            - object
            - 'null'
          properties:
            success:
              type: boolean
            session_id:
              type: integer
            message:
              type: string
            cancelled:
              type: boolean
            needs_clarification:
              type: boolean
            clarification_questions:
              type: array
              items:
                type: object
                properties:
                  question:
                    type: string
            conversation_history:
              type: array
              items:
                type: object
                properties:
                  role:
                    type: string
                  content:
                    type: string
                  timestamp:
                    type: string
            updated_scenarios:
              type: array
              items:
                type: object
                additionalProperties: true
        error:
          type:
            - string
            - 'null'
      example:
        progress_id: c8f5d2b3-4e5f-6a7b-9c0d-1f2a3b4c5d6e
        session_id: 417
        mode: improve
        status: completed
        result:
          success: true
          message: Applied changes to 2 scenarios.
        error: null
    AiTestsErrorResponse:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              code:
                type: string
                description: Telnyx error code.
              title:
                type: string
              detail:
                type: string
              source:
                type: object
                properties:
                  pointer:
                    type: string
            required:
              - code
              - title
      required:
        - errors
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````