Skip to main content
New to Corsair? See API access, authentication, and error handling.

Access Tokens

create

accessTokens.create Create token (Cloud-only). Create a new client side access token with the specified configuration. Mints a client-side access token (it expires after 5 minutes unless expires_at says otherwise). Risk: destructive · Irreversible
Input
Output

delete

accessTokens.delete Delete token (Cloud-only). Delete a client side access token. Letta Cloud refused every delete on 11-27 (400, its own body check fails even with no body); tokens expire on their own. Cannot be undone. Risk: destructive · Irreversible
Input Output: any \| object

list

accessTokens.list List tokens (Cloud-only). List all client side access tokens for the current account. This is only available for cloud users. Risk: read
Input Output: object[] \| object

Agents

archives.attach

agents.archives.attach Attach Archive To Agent. Attach an archive to an agent. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input Output: any \| object

archives.detach

agents.archives.detach Detach Archive From Agent. Detach an archive from an agent. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input Output: any \| object

blocks.attach

agents.blocks.attach Attach Block To Agent. Attach a core memory block to an agent. Risk: write
Input Output

blocks.detach

agents.blocks.detach Detach Block From Agent. Detach a core memory block from an agent. Risk: write
Input Output

blocks.get

agents.blocks.get Retrieve Block For Agent. Retrieve a core memory block from an agent. Risk: read
Input Output

blocks.list

agents.blocks.list List Blocks For Agent. Retrieve the core memory blocks of a specific agent. Risk: read
Input Output: object[]

blocks.update

agents.blocks.update Update Block For Agent. Updates a core memory block of an agent. Risk: write
Input
Output

create

agents.create Create Agent. Create an agent. (POST /v1/agents/) Risk: write
Input
Output

delete

agents.delete Delete Agent. Delete an agent. Cannot be undone. Risk: destructive · Irreversible
Input Output: any \| object

exportFile

agents.exportFile Export Agent. Export the serialized JSON representation of an agent, formatted with indentation. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output: any \| object

files.close

agents.files.close Close File For Agent. Closes a specific file for a given agent. This endpoint marks a specific file as closed in the agent’s file state. The file will be removed from the agent’s working memory view. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input Output: any \| object

files.closeAll

agents.files.closeAll Close All Files For Agent. 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. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input Output: any \| object

files.list

agents.files.list List Files For Agent. Get the files attached to an agent with their open/closed status. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output

files.open

agents.files.open Open File For Agent. Opens a specific file for a given agent. This endpoint marks a specific file as open in the agent’s file state. The file will be included in the agent’s working memory view. Returns a list of file names that were closed due to LRU eviction. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input Output: any \| object

folders.attach

agents.folders.attach Attach Folder To Agent. Attach a folder to an agent. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input Output

folders.detach

agents.folders.detach Detach Folder From Agent. Detach a folder from an agent. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input Output

folders.list

agents.folders.list List Folders For Agent. Get the folders associated with an agent. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output: object[]

get

agents.get Retrieve Agent. Get the state of the agent. Risk: read
Input Output

identities.attach

agents.identities.attach Attach Identity To Agent. Attach an identity to an agent. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input Output: any \| object

identities.detach

agents.identities.detach Detach Identity From Agent. Detach an identity from an agent. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input Output: any \| object

importFile

agents.importFile Import Agent. Import a serialized agent file and recreate the agent(s) in the system. Returns the IDs of all imported agents. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input
Output

list

agents.list List Agents. Get a list of all agents. (GET /v1/agents/) Risk: read
Input Output: object[]

messages.cancel

agents.messages.cancel Cancel Message. Cancel runs associated with an agent. If run_ids are passed in, cancel those in particular. Note to cancel active runs associated with an agent, redis is required. Risk: write
Input Output: any \| object

messages.compact

agents.messages.compact Summarize Messages. Summarize an agent’s conversation history. Risk: destructive · Irreversible
Input
Output

messages.create

agents.messages.create Create Message. Process a user message and return the agent’s response. This endpoint accepts a message from a user and processes it through the agent. Note: Sending multiple concurrent requests to the same agent can lead to undefined behavior. Runs the agent: it calls its model (spending tokens) and may run tools. Risk: destructive · Irreversible
Input
Output

messages.createAsync

agents.messages.createAsync Create Message Async. Asynchronously process a user message and return a run object. The actual processing happens in the background, and the status can be checked using the run ID. This is “asynchronous” in the sense that it’s a background run and explicitly must be fetched by the run ID. Runs the agent in the background and returns a run to poll with runs.get. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: destructive · Irreversible
Input
Output

messages.list

agents.messages.list List Messages. Retrieve message history for an agent. Risk: read
Input Output: object[]

messages.reset

agents.messages.reset Reset Messages. Resets the messages for an agent. Clears the agent’s message history. Risk: destructive · Irreversible
Input Output

messages.stream

agents.messages.stream Create Message Streaming. Process a user message and return the agent’s response. Deprecated: Use the POST /{agent_id}/messages endpoint with streaming=true in the request body instead. Note: Sending multiple concurrent requests to the same agent can lead to undefined behavior. Runs the agent like agents.messages.create and returns the server-sent events as text. Risk: destructive · Irreversible
Input
Output

passages.create

agents.passages.create Create Passage. Insert a memory into an agent’s archival memory store. Risk: write
Input Output: object[]

passages.delete

agents.passages.delete Delete Passage. Delete a memory from an agent’s archival memory store. Cannot be undone. Risk: destructive · Irreversible
Input Output: any \| object

passages.list

agents.passages.list List Passages. Retrieve the memories in an agent’s archival memory store (paginated query). Risk: read
Input Output: object[] \| object

agents.passages.search Search Archival Memory. Search archival memory using semantic (embedding-based) search with optional temporal filtering. This endpoint allows manual triggering of archival memory searches, enabling users to query an agent’s archival memory store directly via the API. Risk: read
Input Output

recompile

agents.recompile Recompile Agent. Manually trigger system prompt recompilation for an agent. Risk: write
Input Output: any \| object

schedule.create

agents.schedule.create Schedule Agent Message. Schedule a message to be sent by the agent at a specified time or on a recurring basis. Risk: destructive · Irreversible
Input
Output

schedule.delete

agents.schedule.delete Delete Scheduled Agent Message. Delete a scheduled message by its ID for a specific agent. Cannot be undone. Risk: destructive · Irreversible
Input Output

schedule.get

agents.schedule.get Retrieve Scheduled Agent Message. Retrieve a scheduled message by its ID for a specific agent. Risk: read
Input Output

schedule.list

agents.schedule.list List Scheduled Agent Messages. List all scheduled messages for a specific agent. Risk: read
Input Output: object[] \| object

tools.attach

agents.tools.attach Attach Tool To Agent. Attach a tool to an agent. Risk: write
Input Output

tools.detach

agents.tools.detach Detach Tool From Agent. Detach a tool from an agent. Risk: write
Input Output

tools.list

agents.tools.list List Tools For Agent. Get tools from an existing agent. Risk: read
Input Output: object[]

tools.run

agents.tools.run Run Tool For Agent. Trigger a tool by name on a specific agent, providing the necessary arguments. This endpoint executes a tool that is attached to the agent, using the agent’s state and environment variables for execution context. Executes the tool with the arguments given; side effects are the tool’s own. Risk: destructive · Irreversible
Input
Output

tools.updateApproval

agents.tools.updateApproval Update Approval For Tool. Modify the approval requirement for a tool attached to an agent. Accepts requires_approval via request body (preferred) or query parameter (deprecated). Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input Output

update

agents.update Update Agent. Update an existing agent. (PATCH /v1/agents/{agent_id}) Risk: write
Input
Output

Archives

create

archives.create Create Archive. Create a new archive. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input
Output

delete

archives.delete Delete Archive. Delete an archive by its ID. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Cannot be undone. Risk: destructive · Irreversible
Input Output: any \| object

get

archives.get Retrieve Archive. Get a single archive by its ID. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output

list

archives.list List Archives. Get a list of all archives for the current organization with optional filters and pagination. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output: object[]

passages.create

archives.passages.create Create Passage In Archive. Create a new passage in an archive. This adds a passage to the archive and creates embeddings for vector storage. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input
Output: object \| object[]

passages.createMany

archives.passages.createMany Create Passages In Archive. Create multiple passages in an archive. This adds passages to the archive and creates embeddings for vector storage. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input
Output

passages.delete

archives.passages.delete Delete Passage From Archive. Delete a passage from an archive. This permanently removes the passage from both the database and vector storage (if applicable). Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Cannot be undone. Risk: destructive · Irreversible
Input Output: any \| object

update

archives.update Update Archive. Update an existing archive’s name and/or description. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input Output

Blocks

agents.list

blocks.agents.list List Agents For Block. Retrieves all agents associated with the specified block. Raises a 404 if the block does not exist. Risk: read
Input Output: object[]

create

blocks.create Create Block. (POST /v1/blocks/) Risk: write
Input
Output

delete

blocks.delete Delete Block. Cannot be undone. (DELETE /v1/blocks/{block_id}) Risk: destructive · Irreversible
Input Output: any \| object

get

blocks.get Retrieve Block. (GET /v1/blocks/{block_id}) Risk: read
Input Output

list

blocks.list List Blocks. (GET /v1/blocks/) Risk: read
Input Output: object[]

update

blocks.update Update Block. (PATCH /v1/blocks/{block_id}) Risk: write
Input
Output

Client

health

client.health Check Health. Liveness endpoint; returns 200 when process is responsive. Risk: read
Input: empty object Output

Conversations

cancel

conversations.cancel Cancel Conversation. Cancel runs associated with a conversation. Note: To cancel active runs, Redis is required. Agent-direct mode: Pass conversation_id=“default” with agent_id query parameter to cancel runs for the agent’s default conversation. Risk: write
Input Output: any \| object

create

conversations.create Create Conversation. Create a new conversation for an agent. Risk: write
Input
Output

delete

conversations.delete Delete Conversation. Delete a conversation. The conversation will no longer appear in list operations. Cannot be undone. Risk: destructive · Irreversible
Input Output: any \| object

fork

conversations.fork Fork Conversation. Fork an existing conversation. Creates a new conversation that shares the same in-context messages as the source conversation, but with a newly compiled system message reflecting the latest memory block values. The forked conversation belongs to the same agent as the source. Risk: write
Input Output

get

conversations.get Retrieve Conversation. Retrieve a specific conversation. Risk: read
Input Output

list

conversations.list List Conversations. List all conversations for an agent (or all conversations if agent_id not provided). Risk: read
Input Output: object[] \| object

messages.compact

conversations.messages.compact Compact Conversation. Compact (summarize) a conversation’s message history. This endpoint summarizes the in-context messages for a specific conversation, reducing the message count while preserving important context. Risk: destructive · Irreversible
Input
Output

messages.create

conversations.messages.create Send Conversation Message. Send a message to a conversation and get a response. This endpoint sends a message to an existing conversation. By default (streaming=true), returns a streaming response (Server-Sent Events). Set streaming=false to get a complete JSON response. Runs the agent in this conversation: it calls its model and may run tools. Letta streams by default here: the answer is the server-sent event text as a string unless you pass streaming: false. Risk: destructive · Irreversible
Input
Output: object \| string

messages.list

conversations.messages.list List Conversation Messages. List all messages in a conversation. Returns LettaMessage objects (UserMessage, AssistantMessage, etc.) for all messages in the conversation, with support for cursor-based pagination. Risk: read
Input Output: object[]

messages.stream

conversations.messages.stream Retrieve Conversation Stream. Resume the stream for the most recent active run in a conversation. This endpoint allows you to reconnect to an active background stream for a conversation, enabling recovery from network interruptions. Risk: read
Input Output

recompile

conversations.recompile Recompile Conversation. Manually trigger system prompt recompilation for a conversation. Risk: write
Input
Output: any \| object

update

conversations.update Update Conversation. Update a conversation. Risk: write
Input
Output

Environments

get

environments.get Get Environment Connection. Get a specific environment connection by deviceId. Risk: read
Input Output

list

environments.list List Environment Connections. List all active environment connections for the organization. Risk: read
Input Output: object[] \| object

sendMessage

environments.sendMessage Send Message to Environment. Send a message to a specific environment connection. Risk: destructive · Irreversible
Input
Output

Folders

agents.list

folders.agents.list List Agents For Folder. Get all agent IDs that have the specified folder attached. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output: any \| object

create

folders.create Create Folder. Create a new data folder. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input
Output

delete

folders.delete Delete Folder. Delete a data folder. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Cannot be undone. Risk: destructive · Irreversible
Input Output: any \| object

files.delete

folders.files.delete Delete File From Folder. Delete a file from a folder. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Cannot be undone. Risk: destructive · Irreversible
Input Output: any \| object

files.get

folders.files.get Retrieve File. Retrieve a file from a folder by ID. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output

files.list

folders.files.list List Files For Folder. List paginated files associated with a data folder. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output: object[]

files.upload

folders.files.upload Upload File To Folder. Upload a file to a data folder. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input
Output

get

folders.get Retrieve Folder. Get a folder by ID. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output

list

folders.list List Folders. List all data folders created by a user. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output: object[]

update

folders.update Update Folder. Update the name or documentation of an existing data folder. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input
Output

Mcp Servers

create

mcpServers.create Create Mcp Server. Add a new MCP server to the Letta MCP server config. Risk: write
Input
Output

delete

mcpServers.delete Delete Mcp Server. Delete an MCP server by its ID. Cannot be undone. Risk: destructive · Irreversible
Input Output: any \| object

get

mcpServers.get Retrieve Mcp Server. Get a specific MCP server. Risk: read
Input Output

list

mcpServers.list List Mcp Servers. Get a list of all configured MCP servers. Risk: read
Input: empty object Output: object[] \| object

refresh

mcpServers.refresh Refresh Mcp Server Tools. Refresh tools for an MCP server by: 1. Fetching current tools from the MCP server 1. Deleting tools that no longer exist on the server 1. Updating schemas for existing tools 1. Adding new tools from the server Returns a summary of changes made. Risk: write
Input Output: any \| object

tools.get

mcpServers.tools.get Retrieve Mcp Tool. Get a specific MCP tool by its ID. Risk: read
Input Output

tools.list

mcpServers.tools.list List Tools For Mcp Server. Get a list of all tools for a specific MCP server. Risk: read
Input Output: object[] \| object

tools.run

mcpServers.tools.run Run Mcp Tool. Execute a specific MCP tool The request body should contain the tool arguments in the ToolExecuteRequest format. Executes the MCP tool with the arguments given. Risk: destructive · Irreversible
Input
Output

update

mcpServers.update Update Mcp Server. Update an existing MCP server configuration. Risk: write
Input
Output

Messages

get

messages.get Retrieve Message. Retrieve a message by ID. Risk: read
Input Output: object[]

list

messages.list List All Messages. List messages across all agents for the current user. Risk: read
Input Output: object[]

messages.search Search All Messages. Search messages across the organization with optional agent filtering. Returns messages with FTS/vector ranks and total RRF score. This is a cloud-only feature. Risk: read
Input Output: object[]

Models

embeddings.list

models.embeddings.list List Embedding Models. List available embedding models using the asynchronous implementation for improved performance. Returns EmbeddingModel format which extends EmbeddingConfig with additional metadata fields. Legacy EmbeddingConfig fields are marked as deprecated but still available for backward compatibility. Risk: read
Input: empty object Output: object[] \| object

list

models.list List Llm Models. List available LLM models using the asynchronous implementation for improved performance. Returns Model format which extends LLMConfig with additional metadata fields. Legacy LLMConfig fields are marked as deprecated but still available for backward compatibility. Risk: read
Input Output: object[] \| object

Passages

search

passages.search Search Passages. Search passages across the organization with optional agent and archive filtering. Returns passages with relevance scores. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output

Runs

get

runs.get Retrieve Run. Get the status of a run. (GET /v1/runs/{run_id}) Risk: read
Input Output

list

runs.list List Runs. List all runs. (GET /v1/runs/) Risk: read
Input Output: object[]

messages.list

runs.messages.list List Messages For Run. Get response messages associated with a run. Risk: read
Input Output: object[]

messages.stream

runs.messages.stream Retrieve Stream For Run. Reattaches to a background run’s stream; returns the server-sent events as text. Risk: read
Input Output

steps.list

runs.steps.list List Steps For Run. Get steps associated with a run with filtering options. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output: object[]

trace.get

runs.trace.get Retrieve Trace For Run. Retrieve OTEL trace spans for a run. Returns a filtered set of spans relevant for observability: - agent_step: Individual agent reasoning steps - tool executions: Tool call spans - Root span: The top-level request span - time_to_first_token: TTFT measurement span Requires ClickHouse to be… Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output: any \| object

usage.get

runs.usage.get Retrieve Usage For Run. Get usage statistics for a run. Risk: read
Input Output

Steps

feedback.create

steps.feedback.create Modify Feedback For Step. Modify feedback for a given step. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input Output

get

steps.get Retrieve Step. Get a step by ID. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output

list

steps.list List Steps. List steps with optional pagination and date filters. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output: object[]

messages.list

steps.messages.list List Messages For Step. List messages for a given step. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output: object[]

metrics.get

steps.metrics.get Retrieve Metrics For Step. Get step metrics by step ID. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output

trace.get

steps.trace.get Retrieve Trace For Step. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: read
Input Output

Tags

list

tags.list List Tags. Get the list of all tags (from agents and blocks) that have been created. Risk: read
Input Output: any \| object

Templates

agents.create

templates.agents.create Create Agents From Template. Creates an Agent or multiple Agents from a template. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input
Output

create

templates.create Create template (Cloud-only). Creates a new template from an existing agent or agent file. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input
Output

delete

templates.delete Delete template (Cloud-only). Deletes all versions of a template with the specified name. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Cannot be undone. Risk: destructive · Irreversible
Input Output

rollback

templates.rollback Rollback template to previous version (Cloud-only). Rollback the current working version of a template to a previous saved version. If the current version has unsaved changes, they will be automatically saved as a new version before rollback. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: destructive · Irreversible
Input Output

save

templates.save Save template version (Cloud-only). Saves the current version of the template as a new version. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input Output

update

templates.update Update current template from agent file (Cloud-only). Updates the current working version of a template from an agent file. Letta Cloud answered 404 with no such route for this on 11-27 (free account); it may need a paid plan or have been retired. Risk: write
Input
Output

Tools

create

tools.create Create Tool. Create a new tool. (POST /v1/tools/) Risk: write
Input
Output

delete

tools.delete Delete Tool. Delete a tool by ID. Cannot be undone. Risk: destructive · Irreversible
Input Output: any \| object

get

tools.get Retrieve Tool. Get a tool by ID. (GET /v1/tools/{tool_id}) Risk: read
Input Output

list

tools.list List Tools. Get a list of all tools available to agents. Risk: read
Input Output: object[]

search

tools.search Search Tools. Search tools using semantic search. Requires tool embedding to be enabled (embed_tools=True). Uses vector search, full-text search, or hybrid mode to find tools matching the query. Returns tools ranked by relevance with their search scores. Risk: read
Input Output: object[]

update

tools.update Update Tool. Update an existing tool. (PATCH /v1/tools/{tool_id}) Risk: write
Input
Output

upsert

tools.upsert Upsert Tool. Create or update a tool. (PUT /v1/tools/) Risk: write
Input
Output