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.

1import { RestClient } from "@signalwire/sdk";
2
3const client = new RestClient({
4 project: "your-project-id",
5 token: "your-api-token",
6 host: "your-space.signalwire.com"
7});
8
9const request = await client.mfa.sms({ to: "+15551234567", from: "+15559876543" });
10console.log(request.id);

Methods