Server SDKs
Build AI agents, control calls, send messages, and more
Return the given callId if provided, or generate a new random session identifier using base64url-encoded random bytes.
callId
base64url
Existing call ID to reuse. If omitted, a new random ID is generated.
string — The call ID string.
string
1import { SessionManager } from '@signalwire/sdk';23const sm = new SessionManager();4const id1 = sm.createSession('call-abc123'); // "call-abc123"5const id2 = sm.createSession(); // random base64url ID