Core

End a session or terminate an agent runtime

Changed on

Closes the calling session. Workers may send X-Runtime-Instance-ID, the per-boot identifier of the calling process. It is ignored unless MULTI_RUNTIME_ENABLED is set. Pooled runtimes remain active unless runtimeShutdown is true. With multi-runtime mode on, the header is required and static runtimes retire independently. With the flag off, static agents are marked offline.

post/close

Request

  • Base URL
    http://localhost:3013
  • URL
    http://localhost:3013/close
  • Auth
    HTTP bearer

Headers

X-Runtime-Instance-IDstring

Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to retire a runtime when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise.

Request body

runtimeShutdownboolean

Response

Session closed or runtime retired

Changes