agents
List Agent Sources
Changed onGet the sources associated with an agent.
get/v1/agents/{agent_id}/sources
Request
- Base URLhttps://app.letta.com
- URLhttps://app.letta.com/v1/agents/{agent_id}/sources
- AuthHTTP bearer
Path parameters
agent_idstring required
Query parameters
beforestring nullable
Source ID cursor for pagination. Returns sources that come before this source ID in the specified sort order
afterstring nullable
Source ID cursor for pagination. Returns sources that come after this source ID in the specified sort order
limitinteger nullable
Maximum number of sources to return
order'asc' | 'desc'
Sort order for sources by creation time. 'asc' for oldest first, 'desc' for newest first
order_by'created_at'
Field to sort by
Response
Successful Response
Example response
[
{
"id": "source-123e4567-e89b-12d3-a456-426614174000"
}
]Changes
- info
added the new optional
queryrequest parameterafter - info
added the new optional
queryrequest parameterbefore - info
added the new optional
queryrequest parameterlimit - info
added the new optional
queryrequest parameterorder - info
added the new optional
queryrequest parameterorder_by
- info