Skip to Content
Asteria Docs
Chat & Discovery

List Agents

List available agents for the caller's organization. Returns the built-in Asteria orchestrator plus any shared custom agents that have a slug. The `id` field in each entry is the slug to pass as `agent` in POST /v1/chat/completions.

GET
/v1/agents

Authorization

ApiKey
headerAuthorization<token>

Your API key (sk-ast-...)

Response Body

List of available agents

application/json
  1. response

Response for GET /v1/agents.

data*array<>
first_id?string|null
last_id?string|null
has_more?Has More
Defaultfalse
Example Request
curl -X GET 'https://api.asteria-labs.com/v1/agents'
Example Response
{  "data": [    {      "id": "string",      "name": "string",      "description": "string",      "type": "builtin",      "author": {        "name": "string",        "email": "string"      },      "default_model": "string",      "created_at": "string"    }  ],  "first_id": "string",  "last_id": "string",  "has_more": false}

List Models

List models available to this project. Returns org-enabled models intersected with the project allow-list (if set). Follows Anthropic's model list shape: {data, first_id, last_id, has_more}. Does not include 'asteria' or agent slugs. Use GET /v1/agents for those.

Create Response

Create a model response, in OpenAI's Responses format. **Routing modes**, controlled by the `agent` field, exactly as on `/v1/chat/completions`: - **Gateway mode** (`agent` omitted): a pure LLM proxy, no system prompt and none of our tools. Rate limiting and budget enforcement still apply. Your own function tools work here: send `tools`, run the `function_call` output items you get back, and send each result as a `function_call_output` input item, with the conversation resent in `input`. A tool loop is not stored, so `store` and `previous_response_id` are refused on one. - **Orchestrator mode** (`agent: "asteria"`): the full Asteria agent, with RAG, web search, code execution and sub-agents. Its tools are ours, so client tools and function items are refused. - **Custom agent mode** (`agent: "<slug>"`): a shared custom agent by slug. **Which model**: send `model: "default"` to use the organization's default chat model and its fallback chain. Pinning a real model id is brittle, since an org admin can remove it later. **`store` defaults to off, and OpenAI's defaults it on.** That inversion is the one thing to know before chaining. An unstored call retains nothing, so a chain built on it has nothing to continue from. `store: true` keeps the response and its history: fetch it back with `GET /v1/responses/{id}`, erase it with `DELETE /v1/responses/{id}`, and it expires on its own after the retention window (30 days by default, configurable per project and per organization). An organization can also disable storage outright, in which case `store: true` is overridden: the response comes back with `store: false` and an `X-Asteria-Warning` header saying so. **`previous_response_id` continues a stored response.** Its history is replayed for you, so send only what is new in `input`. The new turn joins the same conversation, which is what lets a chain keep one scratchpad and one sandbox workspace across turns, and the whole chain's retention runs from its most recent turn rather than its first. An id that names no stored response is a `404` that says so and names `store: true`, never an empty chain answered with a `200`. Streaming is not available here yet; `/v1/chat/completions` streams today. **Storing changes which tools the run has.** A stored call has a conversation, so the tools that need one are offered: `scratchpad_*`, `measure_*` and the background sandbox verbs. An unstored call has none of them, though `sandbox_run` still answers inside the turn either way. `add_to_user_bio` and `search_past_conversations` are never available on this surface, which has no signed-in user. **Non-standard parameters need `extra_body`.** `agent`, `collection_uuid`, `enable_fallback` and `include_org_context` are ours, and an OpenAI SDK builds typed request params, so passing one as a keyword is a client-side `TypeError` that never reaches us. In `openai-python`: ```python client.responses.create( model="default", input="Hello", extra_body={"agent": "asteria"}, ) ```