Skip to content
  • Auto
  • Light
  • Dark
DiscordForumGitHubSign up
View as Markdown
Copy Markdown

Open in Claude
Open in ChatGPT

Close All Files For Agent

patch/v1/agents/{agent_id}/files/close-all

Closes all currently open files for a given agent.

This endpoint updates the file state for the agent so that no files are marked as open. Typically used to reset the working memory view for the agent.

Path ParametersExpand Collapse
agent_id: string

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

minLength42
maxLength42
Close All Files For Agent
curl https://api.letta.com/v1/agents/$AGENT_ID/files/close-all \
    -X PATCH \
    -H "Authorization: Bearer $LETTA_API_KEY"
[
  "string"
]
Returns Examples
[
  "string"
]