> ## Documentation Index
> Fetch the complete documentation index at: https://idunlabs.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> HTTP API of every idun-agent-standalone deployment. 42 endpoints, rendered from a snapshot of the live FastAPI app's OpenAPI spec.

Every `idun-agent-standalone` deployment exposes the same HTTP API. This reference is rendered from a snapshot of the live FastAPI app's OpenAPI spec (refreshed manually on releases — see [Spec source](#spec-source) below), so every shape on every page matches what the server returns at that snapshot.

## Authentication

The auth model is pinned at boot via `IDUN_ADMIN_AUTH_MODE`. Pick the row that matches your deployment.

> [card] None
>
> Default for local dev. Every endpoint is open. No header, no cookie, no token.

> [card] Password
>
> Admin endpoints need a signed session cookie. Set it with `POST /admin/api/v1/auth/login`. Runtime stays open.

> [card] SSO
>
> Admin and runtime accept an OIDC Bearer token. Runtime falls back to `X-Idun-User-Id` for trace scoping.

> [!NOTE]
>
> Full setup, claim mapping, and edge cases on the [auth overview](https://idunlabs.mintlify.site/auth/overview.md).

## Surfaces

The 42 endpoints group into seven surfaces. Pick one from the left sidebar.

> [card] Runtime
>
> The chat surface. `POST /agent/run` (AG-UI streaming), session listing, graph introspection, health.

> [card] Agent configuration
>
> CRUD on the live agent config: model, prompts, tools. Writes hot-reload the engine.

> [card] Auth & SSO
>
> Password login and logout, OIDC provider config, `GET /auth/me`.

> [card] Dashboard
>
> Aggregated counters and traffic series sourced from the local trace store.

> [card] Integrations & tools
>
> MCP servers, prompts, guardrails, integrations. Everything a tool needs to be reachable from the agent.

> [card] Observability
>
> Wire and unwire external exporters: Phoenix, Langfuse, OTel collectors.

> [card] Traces
>
> Read, filter, and delete locally-captured traces and spans.

## A first call

The shortest "hello world": stream a single message through the AG-UI protocol.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
curl -N -X POST http://localhost:8000/agent/run \
  -H "Content-Type: application/json" \
  -H "Accept: text/event-stream" \
  -d '{
    "threadId": "demo-thread",
    "runId": "demo-run",
    "messages": [
      { "role": "user", "content": "Say hello in one sentence." }
    ]
  }'
```

Each event is a JSON line; pipe through `jq` to follow the run. Drill into [`POST /agent/run`](https://idunlabs.mintlify.site/api-reference/runtime/run) on the left for the full event vocabulary.

## Spec source

This reference reflects a snapshot of `GET /openapi.json` from a running standalone. To refresh the spec before a release, run `curl -sS http://localhost:8000/openapi.json > docs/standalone/openapi.json` and commit the result; the API pages regenerate automatically on the next deploy.

> [card] [Standalone overview](https://idunlabs.mintlify.site/standalone/overview.md)
>
> How the standalone wraps the engine, what ships in the wheel, when to use it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.