> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# Messages

> Send SMS and MMS messages and redact message bodies.

[restclient]: /docs/server-sdks/reference/typescript/rest/client

[logs]: /docs/server-sdks/reference/typescript/rest/logs

[create]: /docs/server-sdks/reference/typescript/rest/messages/create

[update]: /docs/server-sdks/reference/typescript/rest/messages/update

Send SMS and MMS messages from a phone number on your project, and redact the
body of a message you already sent. To read message history, use the read-only
message logs under [`client.logs.messages`][logs] instead.

Access via `client.messages` on a [`RestClient`][restclient] instance.

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

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

const message = await client.messages.create("+15559876543", "+15551234567", {
  body: "Your Bayview Taxi van is 5 minutes away.",
});
console.log(message.id, message.status);
```

## **Methods**

#### [create](/docs/server-sdks/reference/typescript/rest/messages/create)

Send an SMS or MMS message.

#### [update](/docs/server-sdks/reference/typescript/rest/messages/update)

Redact the body of a sent message.