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

# Auto-fetch Agent from Provider

> Re-fetch the full agent configuration from its connected provider (Retell, VAPI, ElevenLabs, Synthflow): system prompt, call settings, phone number, tools with mock data, dynamic variables and knowledge base files. Returns a `progress_id`; poll the import-progress endpoint for staged status.



## OpenAPI

````yaml post /test_framework/v2/aiagents/{id}/auto-fetch/
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}/auto-fetch/:
    post:
      tags:
        - test_framework
      summary: Auto-fetch the agent configuration from its provider
      description: >-
        Re-fetch the full agent configuration from its connected provider
        (Retell, VAPI, ElevenLabs, Synthflow): system prompt, call settings,
        phone number, tools with mock data, dynamic variables and knowledge base
        files. Returns a `progress_id`; poll `auto-fetch-progress/` for staged
        status.
      operationId: aiagents-auto-fetch-create
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          description: A unique integer value identifying this ai agent.
          required: true
      responses:
        '202':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentAutoFetchResponse'
          description: ''
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentAutoFetchErrorResponse'
          description: ''
      security:
        - api_key: []
components:
  schemas:
    AgentAutoFetchResponse:
      type: object
      properties:
        progress_id:
          type: string
      required:
        - progress_id
    AgentAutoFetchErrorResponse:
      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.

````