agents
Retrieve Agent
Changed onGet the state of the agent.
get/v1/agents/{agent_id}
Request
- Base URLhttps://app.letta.com
- URLhttps://app.letta.com/v1/agents/{agent_id}
- AuthHTTP bearer
Path parameters
agent_idstring required
Query parameters
include_relationshipsstring[] nullable
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"
}
]
}Changes
- info
added the optional property
//to the response with the status - info
added the optional property
//to the response with the status
- info
- info
added the optional property
////to the response with the status
- info