Server SDKs
Build AI agents, control calls, send messages, and more
Clear all digit bindings, optionally filtered by realm.
If provided, only clear bindings in this realm. If omitted, all bindings are cleared.
Promise<Record<string, unknown>> — Server response confirming the bindings were cleared.
Promise<Record<string, unknown>>
1import { RelayClient } from '@signalwire/sdk';23const client = new RelayClient({4 project: process.env.SIGNALWIRE_PROJECT_ID!,5 token: process.env.SIGNALWIRE_API_TOKEN!,6 contexts: ['default']7});89client.onCall(async (call) => {10 await call.answer();1112 // Bind some digit shortcuts13 await call.bindDigit('*0', 'calling.transfer', {14 bindParams: { dest: 'operator' },15 realm: 'shortcuts',16 });1718 // Later, remove all shortcut bindings19 const result = await call.clearDigitBindings('shortcuts');20 console.log(`Bindings cleared: ${JSON.stringify(result)}`);21});2223await client.run();