Skip to main content

Create

Every create request requires an idempotency key between 1 and 200 characters:
Reuse the same key only when retrying the same logical request. A new intended session needs a new key. The SDK does not retry automatically.

Connect

An active or connectable session contains session.connection:
Return that value to the authorized browser. Avoid storing the participant token as durable application state.

Refresh access

Read the session from your server when the browser needs fresh connection credentials:
The connection is null after a session reaches a terminal state.

Observe state

Sessions use these states:

End

Ending an already terminal session is safe. Ending a session does not erase its historical record.
A browser disconnect does not necessarily end the API session. End it from your server when your product knows the experience is finished.