How Do I Send an SMS Using cURL?
This tutorial will guide you on how to send an SMS using the karix.io message API using cURL.
We will demonstrate how you can:
- Send an SMS to a single phone number
- Send an SMS to multiple phone numbers (Bulk SMS)
To follow this tutorial, you would need:
Pro Tip: All karix.io users get free credits to try out the platform. After creating an account, simply verify your phone number from the dashboard and claim your free credits!
To send an SMS to a single phone number, simply copy/paste the cURL command below, replacing the placeholder values for Auth ID, Auth Token and source/destination numbers.
A sample response of the above API call is listed below:
Astute readers will notice that the destination field is an array. This means that for sending SMS to multiple destinations (Bulk SMS), simply add comma separated entries to the destination array. An example of a bulk SMS using cURL is listed below.
Sample response for bulk SMS API call is listed below: