Import Agent Serialized
Import a serialized agent file and recreate the agent(s) in the system. Returns the IDs of all imported agents.
Headers
Authorization
Header authentication of the form Bearer <token>
x-override-embedding-model
Request
This endpoint expects a multipart form containing a file.
file
append_copy_suffix
If set to True, appends “_copy” to the end of the agent name.
override_existing_tools
If set to True, existing tools can get their source code overwritten by the uploaded tool definitions. Note that Letta core tools can never be updated externally.
override_embedding_handle
Override import with specific embedding handle.
project_id
The project ID to associate the uploaded agent with.
strip_messages
If set to True, strips all messages from the agent before importing.
env_vars_json
Environment variables as a JSON string to pass to the agent for tool execution.
Response
Successful Response
agent_ids
List of IDs of the imported agents