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

> Re-fetch the agent's configuration from its connected provider (Retell, VAPI, ElevenLabs, Synthflow, Bland) — system prompt, call settings, phone number, tools with mock data, dynamic variables and knowledge base — and return the import result. Updates the agent in place. Usually takes under 2 minutes.



## OpenAPI

````yaml post /test_framework/v3/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/v3/aiagents/{id}/auto-fetch/:
    post:
      tags:
        - test_framework
      summary: Auto-fetch agent from provider
      description: >-
        Re-fetch the agent's configuration from its connected provider (Retell,
        VAPI, ElevenLabs, Synthflow, Bland) — system prompt, call settings,
        phone number, tools with mock data, dynamic variables and knowledge base
        — and return the import result. Updates the agent in place. Usually
        takes under 2 minutes.
      operationId: aiagents-v3-auto-fetch
      parameters:
        - in: path
          name: id
          schema:
            type: string
            pattern: ^\d+$
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - completed
                      - failed
                    description: >-
                      `failed` when the job could not produce its result; see
                      `error` / `errors`.
                  agent_id:
                    type: integer
                  current_stage:
                    type: string
                  stages:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                        label:
                          type: string
                        status:
                          type: string
                          enum:
                            - pending
                            - in_progress
                            - completed
                            - failed
                            - skipped
                        detail:
                          type:
                            - string
                            - 'null'
                  error:
                    type:
                      - string
                      - 'null'
                    description: Why the job failed, when it did.
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  field_name:
                    type: array
                    items:
                      type: string
          description: ''
        '403':
          description: No access to the agent, project or metric the job runs on.
        '504':
          description: >-
            The job did not finish within 15 minutes. It may still complete in
            the background.
      security:
        - api_key: []
        - oauth2: []
        - supabase_session: []
components:
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: X-CEKURA-API-KEY
      description: >-
        API Key Authentication. It should be included in the header of each
        request.
    oauth2:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth access token issued by Cekura for connected apps.
    supabase_session:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Cekura dashboard session token. Not a customer API credential.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.