agents

Migrate Agent

Migrate an agent to a new versioned agent template. This will only work for "classic" and non-multiagent agent templates.

post/v1/agents/{agent_id}/migrate

Request

  • Base URL
    https://app.letta.com
  • URL
    https://app.letta.com/v1/agents/{agent_id}/migrate
  • Auth
    HTTP bearer

Path parameters

agent_idstring required

Request body

to_templatestring required
preserve_core_memoriesboolean required
preserve_tool_variablesboolean

If true, preserves the existing agent's tool environment variables instead of using the template's variables

Response

200

successtrue required

Changes

No recorded changes to this operation across all 36 revisions of this API.