Version 4.0.26.4 (latest)
Search Agents
Returns an array of agent objects that match the specified search criteria.
The parameters limit, and offset are recommended for fetching results in page-size chunks.
Get a single agent by id with get_agent()
Request
GET
/agents/search
Datatype
Description
Request
query
Expand HTTP Query definition...
id
Match agent id. Can be a comma-separated list of ids.
name
Match agent name.
description
Match agent description.
created_by_user_id
Filter on agents created by a particular user.
fields
Requested fields.
limit
Number of results to return. (used with offset)
category
Filter on agent category. Can be a comma-separated list of categories.
offset
Number of results to skip before returning. (used with limit)
sorts
One or more fields to sort by. Sortable fields: [:id, :name, :description, :created_by_user_id, :created_at, :content_metadata_id, :category]
filter_or
Combine given search criteria in a boolean OR expression
not_owned_by
Filter out the agents owned by the user passed at the :created_by_user_id params
deleted
Filter on soft deleted agents.
Response
200: agents
Datatype
Description
(array)
can
lock
Operations the current user is able to perform on this object
id
lock
Agent unique identifier
created_by_user_id
lock
User that created the Agent
created_by_name
lock
Name of user that created the Agent
created_by_first_name
lock
Name of user that created the Agent
created_by_last_name
lock
Name of user that created the Agent
created_by_avatar_url
lock
Avatar URL of user that created the Agent
name
Agent name
description
Agent description
category
The category of the agent (e.g., dashboard, conversation)
sources
Expand Source definition...
model
Source model
explore
Source explore
has_inaccessible_source
lock
Has inaccessible source
context
Agent context
Expand Context definition...
instructions
Agent instructions
deleted
Is Agent soft deleted
created_at
lock
Agent created_at
updated_at
lock
Agent updated_at
content_metadata_id
lock
Content metadata ID for this Agent
code_interpreter
Enables Code Interpreter for this Agent
studio_agent_id
lock
Studio Agent ID (if this agent was migrated)
400: Bad Request
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
404: Not Found
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link
429: Too Many Requests
Datatype
Description
(object)
message
lock
Error details
documentation_url
lock
Documentation link