> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fluz.app/llms.txt
> Use this file to discover all available pages before exploring further.

# TerminateWidgetSessionInput

> Identifies the embedded widget session to terminate.

**Input object**

Identifies the embedded widget session to terminate. At least one field is required. Prefer the
operator token if you still hold it: it is verified against your application's secret, and its
expiry bounds how long the termination is remembered. Otherwise supply the jti.

Supplying both is allowed as long as they describe the same session; the token wins and the jti is
treated as an assertion about it. A jti that disagrees with the token's own jti is rejected rather
than silently ignored, so a mix-up cannot terminate the wrong session.

## Input fields

**token** `String`

The operator token you handed to the user to open the widget. Verified against your
application's secret; an already-expired token is still accepted, since terminating an expired
session is harmless and lets you terminate without tracking expiry yourself.

**jti** `String`

The 'jti' claim of the operator token that opened the session. Use this when the token itself is
no longer available. This is the same value returned to your callback URL as 'fluz\_jti'. If a
token is supplied too, this must match the jti inside it.

Terminating by jti alone works, but we cannot see the token's expiry, so the termination is
remembered for a fixed period rather than for exactly as long as the session could have been
used. Supply the token when you still have it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.