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

Open in Claude
Open in ChatGPT

Cancel Message

post/v1/agents/{agent_id}/messages/cancel

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.

Path ParametersExpand Collapse
agent_id: string

The ID of the agent in the format 'agent-'

minLength42
maxLength42
Body ParametersExpand Collapse
run_ids: optional array of string

Optional list of run IDs to cancel

Cancel Message
curl https://api.letta.com/v1/agents/$AGENT_ID/messages/cancel \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer $LETTA_API_KEY"
{
  "foo": "bar"
}
Returns Examples
{
  "foo": "bar"
}