Skip to content
Sign up

List Agents For Folder

get/v1/folders/{folder_id}/agents

Get all agent IDs that have the specified folder attached.

Path ParametersExpand Collapse
folder_id: string

The ID of the source in the format 'source-'

minLength43
maxLength43
Query ParametersExpand Collapse
after: optional string

Agent ID cursor for pagination. Returns agents that come after this agent ID in the specified sort order

before: optional string

Agent ID cursor for pagination. Returns agents that come before this agent ID in the specified sort order

limit: optional number

Maximum number of agents to return

order: optional "asc" or "desc"

Sort order for agents by creation time. 'asc' for oldest first, 'desc' for newest first

Accepts one of the following:
"asc"
"desc"
order_by: optional "created_at"

Field to sort by

List Agents For Folder
curl https://api.letta.com/v1/folders/$FOLDER_ID/agents \
    -H "Authorization: Bearer $LETTA_API_KEY"
[
  "string"
]
Returns Examples
[
  "string"
]