# Admin

Administrative endpoints for platform configuration and debugging.

## Get Available Models

Retrieve the list of LLM models currently supported by the Amigo platform. Use this to discover which models are available for configuring version sets.

**Permission required:** `Admin:GetModels`

{% openapi src="<https://api.amigo.ai/v1/openapi.json>" path="/v1/{organization}/admin/get\_models/" method="get" %}
<https://api.amigo.ai/v1/openapi.json>
{% endopenapi %}

## Get Prompt Logs

Download rendered prompt logs for debugging and auditing. Returns a zip file containing system prompts and history prompts for all matching log keys produced in the past 30 days.

**Permission required:** `Admin:GetPromptLogs`

{% hint style="warning" %}
**Prefix Limit** Only prefixes corresponding to 1,000 or fewer prompt logs are allowed. Use a more specific prefix if your query matches too many logs.
{% endhint %}

Each prompt log in the zip file contains up to two files:

| File                | Contents                                         |
| ------------------- | ------------------------------------------------ |
| `{log_key}-system`  | The rendered system prompt                       |
| `{log_key}-history` | The rendered history prompts, separated by `---` |

Query parameters:

| Parameter           | Type   | Required | Description                      |
| ------------------- | ------ | -------- | -------------------------------- |
| `prompt_log_prefix` | string | Yes      | Prefix to match against log keys |

{% openapi src="<https://api.amigo.ai/v1/openapi.json>" path="/v1/{organization}/admin/get\_prompt\_logs/" method="get" %}
<https://api.amigo.ai/v1/openapi.json>
{% endopenapi %}

## Related

* Getting Started → [Authentication](https://docs.amigo.ai/developer-guide/getting-started/authentication)
* Core API → [Services](https://docs.amigo.ai/developer-guide/classic-api/core-api/services) (model preferences in version sets)
