Skip to main content
Request a 2FA SMS verification code.

Signature

VastAI.tfa_send_sms(
    phone_number: Optional[str] = None
) -> dict

Parameters

phone_number
Optional[str]
Phone number to receive SMS code (E.164 format, e.g., +1234567890)

Returns

dict

Example

from vastai import VastAI

client = VastAI(api_key="YOUR_API_KEY")
result = client.tfa_send_sms()
print(result)