REST Client

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.

1from signalwire.rest import RestClient
2
3client = RestClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7)
8
9request = client.mfa.sms(**{"to": "+15551234567", "from": "+15559876543"})
10print(request["id"])

Methods