Skip to content
Letta Platform Letta Platform Letta Docs
Sign up

Recompile Agent

post/v1/agents/{agent_id}/recompile

Manually trigger system prompt recompilation for an agent.

Path ParametersExpand Collapse
agent_id: string

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

minLength42
maxLength42
Query ParametersExpand Collapse
dry_run: optional boolean

If True, do not persist changes; still returns the compiled system prompt.

update_timestamp: optional boolean

If True, update the in-context memory last edit timestamp embedded in the system prompt.

Recompile Agent
curl https://api.letta.com/v1/agents/$AGENT_ID/recompile \
    -X POST \
    -H "Authorization: Bearer $LETTA_API_KEY"
"string"
Returns Examples
"string"