***

title: sms
slug: /reference/python/rest/mfa/sms
description: Send an MFA verification code via SMS.
max-toc-depth: 3
---------------------

For a complete index of all SignalWire documentation pages, fetch https://signalwire.com/docs/llms.txt

Send an MFA verification code via SMS.

<EndpointSchemaSnippet endpoint="POST /api/relay/rest/mfa/sms" />

## **Response Example**

<EndpointResponseSnippet endpoint="POST /api/relay/rest/mfa/sms" />

## **Example**

```python {9}
from signalwire.rest import RestClient

client = RestClient(
    project="your-project-id",
    token="your-api-token",
    host="your-space.signalwire.com",
)

result = client.mfa.sms(**{
    "to": "+15559876543",
    "from": "+15551234567",
    "message": "Your code is: {code}",
})
request_id = result["id"]
print("MFA request:", request_id)
```