**What You'll Need**
Before you start, you'll need:
- A NextSMS account (register free at nextsms.co.tz)
- Your API key from the dashboard
- A server-side programming environment (PHP, Python, Node.js, etc.)
**Making Your First API Call**
Our API follows REST conventions and accepts JSON. Here's a basic example using cURL:
curl -X POST https://messaging-service.co.tz/api/sms/v1/text/single \
-H 'Content-Type: application/json' \
-H 'Authorization: Basic YOUR_API_KEY' \
-d '{"from": "NEXTSMS", "to": "255700000000", "text": "Hello from NextSMS!"}'
**Handling Responses**
The API returns a JSON response with delivery status, message ID, and timestamp. Store the message ID to query delivery reports later.
**Personalisation at Scale**
Using our bulk endpoint, you can send personalised messages to thousands of recipients in a single API call. Pass a list of phone numbers and dynamic content, and our platform handles the rest.
For the complete API reference, visit our documentation portal.
NextSMS Dev Team
NextSMS Team · Content & Marketing
Part of the NextSMS content team — writing about SMS marketing, messaging APIs, and helping businesses in Tanzania connect better with their customers.