# Admin

Administrative endpoints for platform configuration and debugging.

## Get Available Models

Retrieve the list of LLM models currently supported by the platform. Use this to discover which models are available when 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. The response is a zip archive containing system prompts and history prompts for all matching log keys produced in the past 30 days. Each prompt log includes an `errored` field that indicates whether the LLM interaction produced an error, so you can filter failed interactions without inspecting the full log content.

**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](/developer-guide/getting-started/authentication.md)
* Core API → [Services](/developer-guide/classic-api/core-api/services.md) (model preferences in version sets)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.amigo.ai/developer-guide/classic-api/core-api/admin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
