---
title: "POST /simulate/api/agent-definition-operations/fetch_assistant_from_provider/"
method: POST
path: "/simulate/api/agent-definition-operations/fetch_assistant_from_provider/"
tags: ["simulate"]
---

# POST /simulate/api/agent-definition-operations/fetch_assistant_from_provider/

`POST /simulate/api/agent-definition-operations/fetch_assistant_from_provider/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/simulate/api/agent-definition-operations/fetch_assistant_from_provider/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Fetches the details of agent from the provider and sends them to the client.
It DOES NOT create a new version.

## Request body

- FetchAssistantRequest
  - `assistant_id` string, required
  - `api_key` string, required
  - `agent_id` string, uuid, nullable
  - `provider` 'vapi' | 'retell' | 'eleven_labs' | 'bland' | 'others': Voice provider. One of: vapi, retell, eleven_labs, bland, others.

## Response `200`

OK

- FetchAssistantResponse
  - `name` string, nullable
  - `assistant_id` string
  - `prompt` string, nullable
  - `provider` string
  - `commit_message` string, nullable

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
