---
title: "List agents"
method: GET
path: "/orgs/{orgID}/projects/{projectID}/agents"
tags: ["Agents"]
---

# List agents

`GET /orgs/{orgID}/projects/{projectID}/agents`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/agents`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-omnara_session`

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.

## Path parameters

- `orgID` string, required
- `projectID` string, required

## Query parameters

- `name` string
- `agent_profile_id` string
- `parent_agent_id` string
- `include_subagents` boolean
- `include_archived` boolean
- `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.
- `include_usage` boolean
- `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
- `cursor` string

## Response `200`

Agents in the project, newest first.

- ListAgentsResponse
  - `data` Agent[], required
    - `id` string, required
    - `org_id` string, required
    - `project_id` string, required: Project ID (proj_...).
    - `agent_profile_id` string
    - `state` 'active' | 'archived', required
    - `name` string, required: Agent name. Empty means the agent is unnamed; non-empty values use the ResourceName policy.
    - `integration_target` IntegrationTarget: Selected question/approval destination. Automatic mode updates it when content inputs are admitted. Prompts use it only while the integration and handler remain eligible. It is not launch provenance or permission to post.
      - `provider` string, required
      - `conversation` IntegrationConversation, required: One concrete provider address, validated by the integration's capabilities.subscription.conversation_schema. Slack uses channel_id and optional thread_ts; Discord uses channel_id for a channel or thread_id for a thread; GitHub uses repository_id and pull_request. Discord accepts optional parent channel_id and guild_id alongside thread_id and validates their ID format, but subscription creation does not verify them against Discord or retain them as routing restrictions. Only thread_id is retained in a canonical thread address and returned by create/list responses. No credentials or runtime state.
      - `display_name` string, required
      - `provider_uri` string, uri
    - `current_config_id` string: Agent config ID (acfg_...).
    - `model` AgentModel
      - `provider_config` string, required: Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.
      - `name` string, required: Human-readable name. Spaces and punctuation are allowed; leading or trailing whitespace and invisible or control characters are not.
    - `parent_agent_id` string: Set when this agent is a subagent spawned by another agent.
    - `subagent_key` string: The `subagents` key this agent was spawned from.
    - `activity` AgentActivity: Current activity, present on list and get responses.
      - `state` 'running' | 'idle' | 'waiting_on_interaction' | 'archived', required: 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.
      - `last_activity_at` string, date-time, required: When the agent's latest event was recorded, or its creation time before any event.
      - `open_interactions` AgentOpenInteractions, required: The agent's open questions and permission requests.
        - `question_count` integer, required
        - `permission_request_count` integer, required
      - `running_processes` AgentRunningProcesses, required: Commands the agent left running that will send it a message when they end. process_ids lists the first 20, oldest first.
        - `count` integer, required
        - `process_ids` ProcessID[], required
      - `working_subagents` AgentWorkingSubagents, required: Active subagents that are still working, including through their own subagents or processes. agent_ids lists the first 20, oldest first.
        - `count` integer, required
        - `agent_ids` AgentID[], required
    - `usage` UsageTotals: All-time model usage by the agent and its subagents. Present when the list was requested with `include_usage`.
      - `model_calls` integer, required: Model calls that recorded token usage or a provider-reported cost.
      - `tokens` UsageTokenTotals, required: Summed token counts across the tallied model calls. Input totals are the sum of uncached, cache-read, and cache-write tokens; output totals include reasoning tokens.
        - `input_tokens_total` integer, required
        - `uncached_input_tokens` integer, required
        - `cache_read_input_tokens` integer, required
        - `cache_write_input_tokens` integer, required
        - `output_tokens_total` integer, required
        - `reasoning_output_tokens` integer, required
      - `cost` UsageCostTotals, required
        - `provider_reported_usd` string, required: Exact decimal sum in USD of the costs the provider reported for the tallied model calls. Calls whose provider reported no cost contribute nothing; compare model_calls_with_reported_cost against model_calls to see how complete the figure is.
        - `model_calls_with_reported_cost` integer, required
        - `effective_usd` string, required: Decimal sum in USD of the cost Omnara counts for each tallied model call: the model's own pricing when set, otherwise the provider-reported cost, otherwise a list-price estimate. Calls that could not be priced contribute nothing; compare model_calls_with_effective_cost against model_calls to see how complete the figure is.
        - `model_calls_with_effective_cost` integer, required
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required
    - `archived_at` string, date-time
  - `next_cursor` string, nullable, required: Opaque cursor for the next page, or null when this is the last page.

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `404`: The requested resource was not found or is not visible.
- `503`: The service dependency required to satisfy the request is unavailable.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-11-24** `69f93619121b`: 2 info
  - added the required property `data/items/usage/cost/effective_usd` to the response with the `200` status
  - added the required property `data/items/usage/cost/model_calls_with_effective_cost` to the response with the `200` status
- **2026-11-04** `74bd241dbb11`: 1 info
  - added the new optional `query` request parameter `activity_state`
- **2026-10-30** `e3a32bf8f2d7`: 3 info
  - added the required property `data/items/activity/open_interactions` to the response with the `200` status
  - added the required property `data/items/activity/running_processes` to the response with the `200` status
  - added the required property `data/items/activity/working_subagents` to the response with the `200` status
- **2026-10-07** `680248a0ba72`: 2 breaking, 1 info
  - removed the required property `data/items/integration_target/provider_ref` from the response with the `200` status
  - removed the required property `data/items/integration_target/provider_ref_kind` from the response with the `200` status
  - added the required property `data/items/integration_target/conversation` to the response with the `200` status
- **2026-10-06** `0a5562d0d229`: 2 info
  - added the new optional `query` request parameter `include_usage`
  - added the optional property `data/items/usage` to the response with the `200` status

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/projects/:projectID/agents/get.md)

---

[API](https://skmtc.dev/omnara/apis/omnara-api-2.md) - [All operations](https://skmtc.dev/omnara/apis/omnara-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/omnara/apis/omnara-api-2/revisions/343aebb1dff1?raw)
