Skip to main content
POST
Requires version 2.0.1 or later of the Archetype platform.

Overview

This endpoint closes a running session. The session ends as cancelled, and its place under your organization’s limit for the model frees up at once.

Request

string
required
Session ses_ ID.

Response

Returns 200 with the session object, now cancelled.

Important Notes

  • 404 means the session doesn’t exist or isn’t visible to you.
  • 409 means the session has already ended, which can happen on its own, for example when it expires.
  • The call can take up to 15 seconds while the session’s in-flight work winds down. The cancel stands even if that can’t be confirmed.