Sessions

Interrupt a session

Changed on

Interrupts a running agent loop. Idempotent if already idle. This feature is enabled for selected organizations only.

post/api/v0/sessions/{sessionId}/interrupt

Request

  • Base URL
    https://api.factory.ai
  • Auth
    HTTP bearer

Path parameters

sessionId, string required

Headers

X-Factory-Org-Id, string

Organization a JWT request acts in; required to act in a sub-organization. Without it, the request acts in the user's root organization, or is rejected with 403 when the user cannot access the root organization. API keys always act in their own organization and ignore this header.

Response

Response for status 200

InterruptSession200ResponseBody required
status, 'idle' | 'pending' | 'running' required

Current session execution status

Changes

    • info

      added the non-success response with the status

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property detail from the response with the status

    34 more changes in this revision