List Agents

Get a list of all agents.

Authentication

AuthorizationBearer

Header authentication of the form Bearer <token>

Query Parameters

namestring or nullOptional
Name of the agent
tagslist of strings or nullOptional
List of tags to filter agents by
match_all_tagsbooleanOptionalDefaults to false

If True, only returns agents that match ALL given tags. Otherwise, return agents that have ANY of the passed-in tags.

beforestring or nullOptional
Cursor for pagination
afterstring or nullOptional
Cursor for pagination
limitinteger or nullOptionalDefaults to 50
Limit for pagination
query_textstring or nullOptional
Search agents by name
project_idstring or nullOptional

Search agents by project ID - this will default to your default project on cloud

template_idstring or nullOptional
Search agents by template ID
base_template_idstring or nullOptional
Search agents by base template ID
identity_idstring or nullOptional
Search agents by identity ID
identifier_keyslist of strings or nullOptional
Search agents by identifier keys
include_relationshipslist of strings or nullOptional

Specify which relational fields (e.g., ‘tools’, ‘sources’, ‘memory’) to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.This is a legacy parameter, and no longer supported after 1.0.0 SDK versions.

includelist of enumsOptional
Specify which relational fields to include in the response. No relationships are included by default.
orderenumOptionalDefaults to desc
Sort order for agents by creation time. 'asc' for oldest first, 'desc' for newest first
Allowed values:
order_byenumOptionalDefaults to created_at
Field to sort by
Allowed values:
ascendingbooleanOptionalDefaults to falseDeprecated

Whether to sort agents oldest to newest (True) or newest to oldest (False, default)

sort_bystring or nullOptionalDefaults to created_atDeprecated

Field to sort by. Options: ‘created_at’ (default), ‘last_run_completion’

last_stop_reasonenum or nullOptional
Filter agents by their last stop reason.

Response

Successful Response
idstring
The id of the agent. Assigned by the database.
namestring
The name of the agent.
systemstring
The system prompt used by the agent.
agent_typeenum
The type of agent.
llm_configobject

Deprecated: Use model field instead. The LLM configuration used by the agent.

embedding_configobject

Deprecated: Use embedding field instead. The embedding configuration used by the agent.

memoryobject

Deprecated: Use blocks field instead. The in-context memory of the agent.

blockslist of objects
The memory blocks used by the agent.
toolslist of objects
The tools used by the agent.
sourceslist of objects
The sources used by the agent.
tagslist of strings
The tags associated with the agent.
created_by_idstring or null
The id of the user that made this object.
last_updated_by_idstring or null
The id of the user that made this object.
created_atstring or nullformat: "date-time"
The timestamp when the object was created.
updated_atstring or nullformat: "date-time"
The timestamp when the object was last updated.
tool_ruleslist of objects or null
The list of tool rules.
message_idslist of strings or null

The ids of the messages in the agent’s in-context memory.

modelobject or null
The model used by the agent.
embeddingobject or null
The embedding model used by the agent.
response_formatobject or null
The response format used by the agent
descriptionstring or null
The description of the agent.
metadatamap from strings to any or null
The metadata of the agent.
secretslist of objects or null
The environment variables for tool execution specific to this agent.
project_idstring or null
The id of the project the agent belongs to.
template_idstring or null
The id of the template the agent belongs to.
base_template_idstring or null
The base template id of the agent.
deployment_idstring or null
The id of the deployment.
entity_idstring or null
The id of the entity within the template.
identitieslist of objects or null
The identities associated with this agent.
message_buffer_autoclearboolean or nullDefaults to false

If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case.

enable_sleeptimeboolean or null
If set to True, memory management will move to a background agent thread.
managed_groupobject or null

The multi-agent group that this agent manages

last_run_completionstring or nullformat: "date-time"
The timestamp when the agent last completed a run.
last_run_duration_msinteger or null
The duration in milliseconds of the agent's last run.
last_stop_reasonenum or null
The stop reason from the agent's last run.
timezonestring or null

The timezone of the agent (IANA format).

max_files_openinteger or null
Maximum number of files that can be open at once for this agent. Setting this too high may exceed the context window, which will break the agent.
per_file_view_window_char_limitinteger or null

The per-file view window character limit for this agent. Setting this too high may exceed the context window, which will break the agent.

hiddenboolean or null
If set to True, the agent will be hidden.
tool_exec_environment_variableslist of objects or nullDeprecated

Deprecated: use secrets field instead.

identity_idslist of strings or nullDeprecated

Deprecated: Use identities field instead. The ids of the identities associated with this agent.

multi_agent_groupobject or nullDeprecated

Deprecated: Use managed_group field instead. The multi-agent group that this agent manages.

Errors