Cancel Session
Session Control
Cancel Session
Cancel the current task execution.
POST
Cancel Session
Overview
Cancel the current task execution. The session remains active and can receive new messages to start a different task. Use this when you want to abandon the current task but keep the session.Request
The UUID of the session
Bearer token for authentication
Response
Whether the operation completed successfully
Result message
Example
Use Cases
Emergency Stop
User Rejection
Task Abandonment
Cancel vs Delete
| Operation | Effect | Use When |
|---|---|---|
| Cancel | Stop task, session stays active | Want to abandon current task |
| Delete | Destroy entire session | Completely done with session |
Best Practices
After cancelling, the session remains active. Send a new message to start a different task, or delete the session to clean up.
Cancelled sessions can still receive new messages to start fresh tasks. Deleted sessions are permanently removed.