One of the most powerful features of NextSMS is our developer-friendly REST API. Whether you're building a web application, mobile app, or backend service, you can integrate SMS delivery in just a few minutes.

**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.