Skip to content
Letta Platform Letta Platform Letta Docs
Sign up

Open File For Agent

PATCH/v1/agents/{agent_id}/files/{file_id}/open

Opens a specific file for a given agent.

This endpoint marks a specific file as open in the agent’s file state. The file will be included in the agent’s working memory view. Returns a list of file names that were closed due to LRU eviction.

Path ParametersExpand Collapse
agent_id: string

The ID of the agent in the format ‘agent-

minLength42
maxLength42
file_id: string

The ID of the file in the format ‘file-

minLength41
maxLength41

Open File For Agent

curl https://api.letta.com/v1/agents/$AGENT_ID/files/$FILE_ID/open \
    -X PATCH \
    -H "Authorization: Bearer $LETTA_API_KEY"
[
  "string"
]
Returns Examples
[
  "string"
]