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

# Toggle Mock Tools

> Enable or disable mock-tool mode on the agent's provider. `enabled=true` replaces the provider tools with Cekura-hosted mocks; `enabled=false` restores the originals (mock data is preserved). Returns a `progress_id`; poll the toggle-mock-tools-progress endpoint.



## OpenAPI

````yaml post /test_framework/v2/aiagents/{id}/toggle-mock-tools/
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/:
    post:
      tags:
        - test_framework
      summary: Enable or disable mock tools on the provider
      description: >-
        Toggle mock-tool mode on the agent's provider. `enabled=true` replaces
        the provider tools with Cekura-hosted mocks; `enabled=false` restores
        the originals (mock data is preserved). Returns a `progress_id`; poll
        `toggle-mock-tools-progress/`. Run `auto-fetch` first to populate mock
        tool data before enabling.
      operationId: aiagents-toggle-mock-tools-create
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          description: A unique integer value identifying this ai agent.
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentToggleMockToolsRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AgentToggleMockToolsRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AgentToggleMockToolsRequest'
        required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentToggleMockToolsResponse'
          description: ''
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentToggleMockToolsErrorResponse'
          description: ''
      security:
        - api_key: []
components:
  schemas:
    AgentToggleMockToolsRequest:
      type: object
      properties:
        enabled:
          type: boolean
          description: True to enable mock mode, false to disable.
        api_key:
          type: string
          description: Optional API key. If not provided, stored credentials are used.
      required:
        - enabled
    AgentToggleMockToolsResponse:
      type: object
      properties:
        progress_id:
          type: string
      required:
        - progress_id
    AgentToggleMockToolsErrorResponse:
      type: object
      properties:
        detail:
          type: string
      required:
        - detail
  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.

````