Agents

Lists the project's agents with their current activity, newest first by default. Archived agents and subagents are excluded unless requested. Pass activity_state to keep only agents in that activity.

get/orgs/{orgID}/projects/{projectID}/agents

Request

  • Base URL
    https://api.omnara.com/v1
  • Auth
    • HTTP bearer
    • or API key in cookie __Host-omnara_session

Path parameters

orgID, string required

Organization ID (org_...).

projectID, string required

Project ID (proj_...).

Query parameters

name, string

Case-insensitive glob over the list's logical name. * matches zero or more characters, ? matches one character, and \ escapes a wildcard.

agent_profile_id, string

Return only agents launched from this agent profile.

parent_agent_id, string

Return only subagents spawned by this agent.

include_subagents, boolean

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, boolean

Include archived agents. Defaults to false.

activity_state, 'running' | 'idle' | 'waiting_on_interaction' | 'archived'

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_usage, boolean

Include each agent's usage, so a list can show costs without a request per agent.

sort, 'name' | '-name' | '-updated_at' | 'updated_at' | '-created_at' | 'created_at'

Field to sort by; prefix with - for descending order. Defaults to -created_at (newest first).

limit, integer

Maximum number of items to return in one page.

cursor, string

Opaque pagination cursor from a previous response's next_cursor. Omit for the first page.

Response

Agents in the project, newest first.

ListAgentsResponse required
data, Agent[] required
next_cursor, string nullable required

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_usd to the response with the status

    • info

      added the required property data/items/usage/cost/model_calls_with_effective_cost to the response with the status

    • info

      added the new optional query request parameter activity_state