Quick Start Guide
Send your first text message with the EZ Texting API in under 5 minutes.
Send Your First SMS
Get up and running with the EZ Texting REST API in under 5 minutes. The API is clean and predictable, with straightforward endpoints, clear error messages, and no unnecessary complexity. Whether you're sending appointment reminders, verification codes, or marketing campaigns, integrating EZ Texting into your application is fast and simple.
No SDK or special library required. Use Basic Auth with your existing credentials, make standard HTTP requests, and get JSON responses. That's it. Common examples below, but you can use any language you prefer.
What you'll need
- Your EZ Texting username and password
- A phone number to send to (use your own for testing)
New to EZ Texting? Sign up here to get started.
You can also test API calls directly from the API docs. Just enter your credentials and click Try It!
Send a text message
Replace your_username, your_password, and 15551234567 (use your own phone number).
curl --request POST \
--url https://a.eztexting.com/v1/messages \
--header 'accept: */*' \
--header 'content-type: application/json' \
--user 'your_username:your_password' \
--data '{
"toNumbers": ["15551234567"],
"message": "Hello from the EZ Texting API!"
}'import requests
url = "https://a.eztexting.com/v1/messages"
headers = {
"accept": "*/*",
"content-type": "application/json"
}
payload = {
"toNumbers": ["15551234567"],
"message": "Hello from the EZ Texting API!"
}
response = requests.post(
url,
headers=headers,
auth=("your_username", "your_password"),
json=payload,
)
print(response.status_code)
print(response.json())const url = "https://a.eztexting.com/v1/messages";
const headers = {
accept: "*/*",
"content-type": "application/json",
Authorization: "Basic " + Buffer.from("your_username:your_password").toString("base64"),
};
const body = JSON.stringify({
toNumbers: ["15551234567"],
message: "Hello from the EZ Texting API!",
});
const response = await fetch(url, {
method: "POST",
headers,
body,
});
const data = await response.json();
console.log(response.status, data);<?php
$url = "https://a.eztexting.com/v1/messages";
$ch = curl_init($url);
$headers = ["Accept: */*", "Content-Type: application/json"];
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_USERPWD => "your_username:your_password",
CURLOPT_POSTFIELDS => json_encode([
"toNumbers" => ["15551234567"],
"message" => "Hello from the EZ Texting API!"
]),
CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;{
"id": "123456789"
}A 201 response means your message is on its way. If you get 401, double-check your username and password. See the Errors guide for a full list of status codes.
That's it — you just sent your first text with the EZ Texting API.
For more on authentication options, see the Authentication guide.
What's next?
- Authentication — Learn about OAuth2 and Basic Auth
- Errors — Understand HTTP status codes and error responses
- Rate Limits — Know your request limits
- API Reference — Explore all available endpoints
Need help? Check the API reference or contact our support team.
Updated 10 days ago