List Agents

List all agents associated with a given user.

This endpoint retrieves a list of all agents and their configurations associated with the specified user ID.

Headers

AuthorizationstringRequired

Header authentication of the form Bearer <token>

Query parameters

namestringOptional

Name of the agent

tagsstringOptional

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.

beforestringOptional

Cursor for pagination

afterstringOptional

Cursor for pagination

limitintegerOptional

Limit for pagination

query_textstringOptional

Search agents by name

project_idstringOptional

Search agents by project ID

template_idstringOptional

Search agents by template ID

base_template_idstringOptional

Search agents by base template ID

identity_idstringOptional

Search agents by identity ID

identifier_keysstringOptional

Search agents by identifier keys

include_relationshipsstringOptional

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.

ascendingbooleanOptionalDefaults to false

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

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.

Allowed values:
llm_configobject

The LLM configuration used by the agent.

embedding_configobject

The embedding configuration used by the agent.

memoryobject

The in-context memory of 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_idstringOptional

The id of the user that made this object.

last_updated_by_idstringOptional

The id of the user that made this object.

created_atdatetimeOptional

The timestamp when the object was created.

updated_atdatetimeOptional

The timestamp when the object was last updated.

tool_ruleslist of objectsOptional

The list of tool rules.

message_idslist of stringsOptional

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

descriptionstringOptional

The description of the agent.

metadatamap from strings to anyOptional

The metadata of the agent.

tool_exec_environment_variableslist of objectsOptional

The environment variables for tool execution specific to this agent.

project_idstringOptional

The id of the project the agent belongs to.

template_idstringOptional

The id of the template the agent belongs to.

base_template_idstringOptional

The base template id of the agent.

identity_idslist of stringsOptional

The ids of the identities associated with this agent.

message_buffer_autoclearbooleanOptionalDefaults 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_sleeptimebooleanOptional

If set to True, memory management will move to a background agent thread.

multi_agent_groupobjectOptional

The multi-agent group that this agent manages

Errors