stop

View as MarkdownOpen in Claude

Stop the fax operation.

Returns

Promise<Record<string, unknown>> — Server acknowledgment.

Example

import { RelayClient } from '@signalwire/sdk';
const client = new RelayClient({
project: process.env.SIGNALWIRE_PROJECT_ID!,
token: process.env.SIGNALWIRE_API_TOKEN!,
contexts: ['default']
});
client.onCall(async (call) => {
await call.answer();
const action = await call.sendFax('https://example.com/invoice.pdf', {
identity: '+15559876543',
});
// Stop the fax operation
await action.stop();
});
await client.run();