{ "opencollection": "1.0.0", "info": { "name": "Letta Admin Messages API", "version": "1.0.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Messages", "type": "folder" }, "items": [ { "info": { "name": "List All Messages", "type": "http" }, "http": { "method": "GET", "url": "https://api.letta.com/v1/messages/", "params": [ { "name": "before", "value": "", "type": "query", "description": "Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order" }, { "name": "after", "value": "", "type": "query", "description": "Message ID cursor for pagination. Returns messages that come after this message ID in the specified sort order" }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of messages to return" }, { "name": "order", "value": "", "type": "query", "description": "Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first" }, { "name": "conversation_id", "value": "", "type": "query", "description": "Conversation ID to filter messages by" }, { "name": "include_return_message_types", "value": "", "type": "query", "description": "Message types to include in response. When null, all message types are returned." } ] }, "docs": "List messages across all agents for the current user." }, { "info": { "name": "Search All Messages", "type": "http" }, "http": { "method": "POST", "url": "https://api.letta.com/v1/messages/search", "body": { "type": "json", "data": "{}" } }, "docs": "Search messages across the organization with optional agent filtering.\nReturns messages with FTS/vector ranks and total RRF score.\n\n\nThis is a cloud-only feature." }, { "info": { "name": "List Batches", "type": "http" }, "http": { "method": "GET", "url": "https://api.letta.com/v1/messages/batches", "params": [ { "name": "before", "value": "", "type": "query", "description": "Job ID cursor for pagination. Returns jobs that come before this job ID in the specified sort order" }, { "name": "after", "value": "", "type": "query", "description": "Job ID cursor for pagination. Returns jobs that come after this job ID in the specified sort order" }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of jobs to return" }, { "name": "order", "value": "", "type": "query", "description": "Sort order for jobs by creation time. 'asc' for oldest first, 'desc' for newest first" }, { "name": "order_by", "value": "", "type": "query", "description": "Field to sort by" } ] }, "docs": "List all batch runs." }, { "info": { "name": "Create Batch", "type": "http" }, "http": { "method": "POST", "url": "https://api.letta.com/v1/messages/batches", "body": { "type": "json", "data": "{}" } }, "docs": "Submit a batch of agent runs for asynchronous processing.\n\nCreates a job that will fan out messages to all listed agents and process them in parallel.\nThe request will be rejected if it exceeds 256MB." }, { "info": { "name": "Retrieve Batch", "type": "http" }, "http": { "method": "GET", "url": "https://api.letta.com/v1/messages/batches/:batch_id", "params": [ { "name": "batch_id", "value": "", "type": "path" } ] }, "docs": "Retrieve the status and details of a batch run." }, { "info": { "name": "List Messages for Batch", "type": "http" }, "http": { "method": "GET", "url": "https://api.letta.com/v1/messages/batches/:batch_id/messages", "params": [ { "name": "batch_id", "value": "", "type": "path" }, { "name": "before", "value": "", "type": "query", "description": "Message ID cursor for pagination. Returns messages that come before this message ID in the specified sort order" }, { "name": "after", "value": "", "type": "query", "description": "Message ID cursor for pagination. Returns messages that come after this message ID in the specified sort order" }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of messages to return" }, { "name": "order", "value": "", "type": "query", "description": "Sort order for messages by creation time. 'asc' for oldest first, 'desc' for newest first" }, { "name": "order_by", "value": "", "type": "query", "description": "Field to sort by" }, { "name": "agent_id", "value": "", "type": "query", "description": "Filter messages by agent ID" } ] }, "docs": "Get response messages for a specific batch job." }, { "info": { "name": "Cancel Batch", "type": "http" }, "http": { "method": "PATCH", "url": "https://api.letta.com/v1/messages/batches/:batch_id/cancel", "params": [ { "name": "batch_id", "value": "", "type": "path" } ] }, "docs": "Cancel a batch run." }, { "info": { "name": "Retrieve Message", "type": "http" }, "http": { "method": "GET", "url": "https://api.letta.com/v1/messages/:message_id", "params": [ { "name": "message_id", "value": "", "type": "path", "description": "The ID of the message in the format 'message-'" } ] }, "docs": "Retrieve a message by ID." } ] } ], "bundled": true }