using System;
using System.Collections.Generic;
using System.Net.Http;

public class Program
    public static void Main()
        String URI = "https://api.puretext.us/service/sms/send";
        String resultContent;

        using (var client = new HttpClient())
            var values = new Dictionary < string, string > 
                            // To Number is the number you will be sending the text to
                            { "toNumber", "+X-XXX-XXX-XXXX" },
                            // From number is the number you will buy from your admin dashboard
                            { "fromNumber", "+X-XXX-XXX-XXXX" },
                            //Sign up for an account to get an API Token
                            { "apiToken", "XXXXX" },
                            // Text Content
                            { "smsBody", "SENDING TEXT USING .NET" }


            var content = new FormUrlEncodedContent(values);
            var result = client.PostAsync(URI, content).Result;
            resultContent = result.Content.ReadAsStringAsync().Result;

        Console.Read(); //to keep console window open if trying in visual studio

How to get an API token?

What is fromNumber?

Can I use my existing mobile number as fromNumber?

More questions?