Sessions
Interrupt a session
Changed onInterrupts a running agent loop. Idempotent if already idle. This feature is enabled for selected organizations only.
post/api/v0/sessions/{sessionId}/interrupt
Request
- Base URLhttps://api.factory.ai
- AuthHTTP 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
Interrupt Session200 Response Body required
status, 'idle' | 'pending' | 'running' required
Current session execution status
Changes
- info
added the non-success response with the status
- info
- breaking
the response's body type changed from
objectto no type for status - breaking
removed the required property
detailfrom the response with the status
34 more changes in this revision
- breaking