List Agents For Block
Retrieves all agents associated with the specified block. Raises a 404 if the block does not exist.
Path parameters
Query parameters
Agent ID cursor for pagination. Returns agents that come before this agent ID in the specified sort order
Agent ID cursor for pagination. Returns agents that come before this agent ID in the specified sort order
Agent ID cursor for pagination. Returns agents that come after this agent ID in the specified sort order
Agent ID cursor for pagination. Returns agents that come after this agent ID in the specified sort order
Maximum number of agents to return
Maximum number of agents to return
Sort order for agents by creation time. 'asc' for oldest first, 'desc' for newest first
Sort order for agents by creation time. 'asc' for oldest first, 'desc' for newest first
Field to sort by
Field to sort by
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.
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.
Response
Successful Response
Example response
[
{
"memory": {
"blocks": [
{
"id": "block-123e4567-e89b-12d3-a456-426614174000"
}
],
"file_blocks": [
{
"id": "block-123e4567-e89b-12d3-a456-426614174000"
}
]
},
"tools": [
{
"id": "tool-123e4567-e89b-12d3-a456-426614174000"
}
],
"sources": [
{
"id": "source-123e4567-e89b-12d3-a456-426614174000"
}
],
"tool_exec_environment_variables": [
{
"id": "agent-env-123e4567-e89b-12d3-a456-426614174000"
}
],
"secrets": [
{
"id": "agent-env-123e4567-e89b-12d3-a456-426614174000"
}
]
}
]