Messages

View as MarkdownOpen in Claude

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 instead.

Access via client.messages on a RestClient instance.

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