List agents across projects
Changed onLists agents in every project of the organization where the caller can read agents. Each agent carries its project_id. Items are ordered by created_at descending, then id descending. Pass activity_state to keep only agents in that activity.
Request
- Base URLhttps://api.omnara.com/v1
- Auth
- HTTP bearer
- or API key in cookie __Host-omnara_session
Path parameters
Organization ID (org_...).
Query parameters
Case-insensitive glob over the list's logical name. * matches zero or more characters, ? matches one character, and \ escapes a wildcard.
Return only agents launched from this agent profile.
Return only subagents spawned by this agent.
Include subagents alongside top-level agents. Defaults to false, so only agents without a parent are returned unless parent_agent_id is set.
Include archived agents. Defaults to false.
running while the agent has work in progress, which includes a custom tool call awaiting its result; waiting_on_interaction while it has an open question or permission request; idle otherwise; and archived once the agent is archived. Running processes and working subagents do not change it; see running_processes and working_subagents.
Return only agents whose current activity.state matches. archived includes archived agents even when include_archived is omitted.
Include each agent's usage, so a list can show costs without a request per agent.
Field to sort by; prefix with - for descending order. Defaults to -created_at (newest first).
Maximum number of items to return in one page.
Opaque pagination cursor from a previous response's next_cursor. Omit for the first page.
Response
Agents across the caller's readable projects, newest first.
Opaque cursor for the next page, or null when this is the last page.
Changes
- info
added the required property
data/items/usage/cost/effective_usdto the response with the status - info
added the required property
data/items/usage/cost/model_calls_with_effective_costto the response with the status
- info
- info
added the new optional
queryrequest parameteractivity_state
- info