> For the complete documentation index, see [llms.txt](https://docs.amigo.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.amigo.ai/developer-guide/classic-api/core-api/admin.md).

# 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. If an error stops the generation of the archive entirely, the stream ends early and the transmitted bytes do not constitute a valid zip file.

**Permissions:** There is no single endpoint-level permission. Each prompt log carries its own set of required read permissions. If you lack the permissions for a given log, the zip archive contains a `{log_key}-error` file describing the error in place of that log's contents - the request itself still succeeds.

{% 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 `---`                                                              |
| `{log_key}-error`   | An error description, in place of the log's contents, when you lack the permissions required to read that log |

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
