---
title: "Auto-fetch the agent configuration from its provider"
method: POST
path: "/test_framework/v2/aiagents/{id}/auto-fetch/"
tags: ["test_framework"]
---

# Auto-fetch the agent configuration from its provider

`POST /test_framework/v2/aiagents/{id}/auto-fetch/`

## Request

- Base URL: `https://api.cekura.ai`
- URL: `https://api.cekura.ai/test_framework/v2/aiagents/{id}/auto-fetch/`
- Auth: one of:
  - API key in header `X-CEKURA-API-KEY`
  - HTTP bearer
  - HTTP bearer

Re-fetch the full agent 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 files. Returns a `progress_id`; poll `auto-fetch-progress/` for staged status.

## Path parameters

- `id` integer, required

## Response `202`

- AgentAutoFetchResponse
  - `progress_id` string, required

## Other responses

- `400`

## Changes

- **2026-11-03** `a6fb6a739212`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cekura/apis/cekura-api/changes/test_framework/v2/aiagents/:id/auto-fetch/post.md)

---

[API](https://skmtc.dev/cekura/apis/cekura-api.md) - [All operations](https://skmtc.dev/cekura/apis/cekura-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cekura/apis/cekura-api/revisions/a6fb6a739212?raw)
