MFA

View as MarkdownOpen in Claude

Send and verify multi-factor authentication (MFA) codes via SMS or voice call. The typical flow is: request a code with sms() or call(), then confirm it with verify().

Access via client.mfa on a RestClient instance.

import { RestClient } from "@signalwire/sdk";
const client = new RestClient({
project: "your-project-id",
token: "your-api-token",
host: "your-space.signalwire.com"
});
const request = await client.mfa.sms({ to: "+15551234567", from: "+15559876543" });
console.log(request.id);

Methods