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

Open in Claude
Open in ChatGPT

Import Agent

post/v1/agents/import

Import a serialized agent file and recreate the agent(s) in the system. Returns the IDs of all imported agents.

Header ParametersExpand Collapse
"x-override-embedding-model": optional string
ReturnsExpand Collapse
agent_ids: array of string

List of IDs of the imported agents

Import Agent
curl https://api.letta.com/v1/agents/import \
    -H 'Content-Type: multipart/form-data' \
    -H "Authorization: Bearer $LETTA_API_KEY" \
    -F file=undefined
{
  "agent_ids": [
    "string"
  ]
}
Returns Examples
{
  "agent_ids": [
    "string"
  ]
}