***

title: sms
slug: /reference/typescript/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**

```typescript {9}
import { RestClient } from "@signalwire/sdk";

const client = new RestClient({
  project: "your-project-id",
  token: "your-api-token",
  host: "your-space.signalwire.com"
});

const result = await client.mfa.sms({
    to: "+15559876543",
    from: "+15551234567",
    message: "Your code is: {code}",
});
const requestId = result.id;
console.log("MFA request:", requestId);
```