Entry points
Common UI options
Accepted by bothcreateFloating and createBar.
Floating only
Bar only
UI controllers
RingeeDialer methods
call(input)
Authentication states
AuthState: checking, anonymous, sending_code, awaiting_code, verifying, authenticated, expired, signed_out, error.
Call states
DialerState: uninitialized, initializing, ready, connecting, dialing, ringing, active, held, reconnecting, ending, ended, error.
Events
Every subscription returns an unsubscribe function:Persistence
The agent session is stored insessionStorage under a key scoped by integration and origin. It survives reloads in the same tab and is removed when the tab closes or signOut() runs.
WebRTC credentials live only in memory and are minted again on restore. If a browser blocks sessionStorage, the SDK still works but asks for a code after every reload.
What happens under the hood
During initialization
During initialization
- The SDK reads
window.location.origin. - It sends the publishable key and origin to Ringee.
- The backend validates the signature, that the integration is active, and the exact origin.
- The SDK checks
sessionStoragefor an agent session. - If present, Ringee revalidates it and returns a fresh WebRTC credential.
- Otherwise it requests email OTP authentication.
During agent authentication
During agent authentication
- The agent enters an email address.
- Ringee sends a one-time code without revealing whether the email exists.
- The agent verifies the code.
- The backend validates workspace membership and calling permissions.
- The browser receives a Ringee session and temporary WebRTC credentials.
- The SDK connects the engine and emits
ready.
During a call
During a call
- The SDK validates E.164 locally.
- It acquires a lock so another tab cannot start a call.
- The backend validates the session, caller ID, credit, Do Not Call, blocks and contact.
- Ringee creates the call record and returns a signed correlation token.
- The browser requests microphone permission.
- The SDK starts the WebRTC call and maps provider states to Ringee states.
- On completion it releases audio and the lock, computes duration, and emits
endedorfailed.
Next steps
Errors
Every code and how to react
Security
CSP, iframes and self-hosting

