Before you start
- You need .NET 8+ installed on your machine.
- You need a Rewrite API key with the required permissions.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Learn how to use the C# SDK to send SMS with the API.
REWRITE_API_KEY=rw...
using RewriteToday;
var rewrite = new RewriteClient(Environment.GetEnvironmentVariable("REWRITE_API_KEY"));
var message = await rewrite.Messages.SendAsync(new SendMessageOptions
{
To = "+1234567890",
Content = "Your OTP code is 478201"
});
Console.WriteLine(message);