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

# Poll Toggle Mock Tools Progress

> Poll the status of a toggle-mock-tools task. Returns the current status (in_progress, completed, failed), and on completion the registered mock endpoints.



## OpenAPI

````yaml get /test_framework/v2/aiagents/{id}/toggle-mock-tools-progress/
openapi: 3.1.0
info:
  title: Cekura API
  version: v1
  description: >-
    Complete API documentation for the Cekura platform. This API provides
    endpoints for testing, observing, and evaluating AI voice agents — including
    managing agents, running evaluators, defining metrics, and analyzing call
    quality.
servers:
  - url: https://api.cekura.ai
security: []
paths:
  /test_framework/v2/aiagents/{id}/toggle-mock-tools-progress/:
    get:
      tags:
        - test_framework
      summary: Poll status of a toggle-mock-tools task
      description: >-
        Poll the enable/disable task. The progress_id is unique, so we resolve
        it

        against both task namespaces and return whichever holds it.
      operationId: aiagents-toggle-mock-tools-progress-retrieve
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          description: A unique integer value identifying this ai agent.
          required: true
        - in: query
          name: progress_id
          schema:
            type: string
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentToggleMockToolsProgressResponse'
          description: ''
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentToggleMockToolsProgressErrorResponse'
          description: ''
      security:
        - api_key: []
components:
  schemas:
    AgentToggleMockToolsProgressResponse:
      type: object
      properties:
        status:
          enum:
            - in_progress
            - completed
            - failed
          type: string
          description: |-
            * `in_progress` - in_progress
            * `completed` - completed
            * `failed` - failed
          x-spec-enum-id: 6e9575e5767aaee0
        mock_enabled:
          type:
            - boolean
            - 'null'
        mcp_endpoints:
          type: array
          items:
            $ref: '#/components/schemas/ToggleMockToolsMCPEndpoint'
          description: >-
            MCP mock endpoints registered after enabling. Empty for agents
            without MCP tools or when disabling.
        message:
          type:
            - string
            - 'null'
        error:
          type:
            - string
            - 'null'
      required:
        - error
        - message
        - mock_enabled
        - status
    AgentToggleMockToolsProgressErrorResponse:
      type: object
      properties:
        detail:
          type: string
      required:
        - detail
    ToggleMockToolsMCPEndpoint:
      type: object
      properties:
        mock_index:
          type: integer
        url:
          type: string
        tool_names:
          type: array
          items:
            type: string
      required:
        - mock_index
        - tool_names
        - url
  securitySchemes:
    api_key:
      type: apiKey
      name: X-CEKURA-API-KEY
      in: header
      description: >-
        API Key Authentication. It should be included in the header of each
        request.

````