Dowell SMS API

Elevate your messaging strategy with Dowell SMS API

Dowell SMS API

Dowell SMS API

Are you struggling with sending SMS messages efficiently? Fear not, because Dowell SMS API is here to simplify the process for you!

The Dowell SMS API is a powerful tool designed to streamline the sending of SMS messages to mobile numbers. It’s built to be user-friendly and efficient, making communication effortless.

Key Features

Dowell SMS API

Simplicity

The DoWell SMS API is designed to be straightforward and easy to use.

Dowell SMS API

Affordability

Enjoy the convenience of our service at a low cost of just 50 credits.

Dowell SMS API

Efficiency

Experience efficient message delivery without any hassle.

Dowell SMS API

Reliability

Trust in our service to deliver your messages promptly and reliably

How Does it Work?

Sending messages with the Dowell SMS API is a breeze. Here’s how it works:

1. Provide Recipient Information:

    • Include the recipient’s phone number with the country code (e.g., 91) followed by the actual number (e.g., 0000000000).

2. Compose Your Message:

    • Craft your message according to your needs.

3. Let Us Handle the Rest:

    • Sit back and relax as we take care of the delivery process for you.
Dowell SMS API

Postman Documentation

For detailed insights into integrating and harnessing the capabilities of the SMS API, explore our comprehensive documentation. This resource provides step-by-step guidance, ensuring a smooth and successful integration process.

Dowell SMS API Demonstrative Scenarios

In the following scenarios, Dowell will furnish comprehensive instructions on obtaining the Service key and guide you through the steps to use the API. You’ll find examples in various formats such as Python, PHP, React, Flutter, and WordPress in the tabs below. Feel free to explore the examples in each tab for practical insights.

Dowell SMS API Use Cases

Discover the power of our SMS API – your ultimate solution for seamless Notifications, reliable Appointment Reminders, engaging Marketing Campaigns, and efficient Customer Support. Experience firsthand how our API simplifies communication and enhances user engagement. Watch our video to witness its impact in action!

Frequently Asked Questions (FAQs) about Dowell SMS API

When providing recipient phone numbers, ensure to include the country code followed by the actual number, without any spaces or special characters. For example, for a number in India, the format should be like this: 91XXXXXXXXXX.

The cost of sending SMS messages via the Dowell SMS API is incredibly affordable, priced at just 50 credits per message.

Yes, the Dowell SMS API is designed to be easily integrated with various platforms and applications. Comprehensive documentation is available to guide you through the integration process seamlessly.

There might be certain limitations depending on your subscription plan. However, for most users, there are no strict limits on the number of messages you can send.

The Dowell SMS API ensures high reliability and deliverability of messages. We have implemented robust systems to minimize downtime and maximize message delivery rates.

If you encounter any issues, have questions, or need assistance with Dowell SMS API, you can contact the support team for prompt assistance. Contact us at Dowell@dowellresearch.uk 

While there are no specific restrictions on the content of SMS messages, it is important to ensure that your messages comply with relevant regulations and do not contain spam or prohibited content.

Yes, the Dowell SMS API is an ideal solution for conducting marketing campaigns and promotions. You can leverage its capabilities to reach out to your target audience effectively and drive engagement.

Yes, Dowell provides a demo or sandbox environment where you can test the functionality of the API without incurring any costs or affecting live operations.

Dowell UX Living Lab offers a wide range of APIs to enhance user experience and streamline various processes. To explore the full list of APIs available, including Dowell Email, Dowell Newsletter, Samanta Content Evaluator, and many more.

For more details and to explore the complete list of APIs provided by Dowell UX Living Lab, please visit our documentation page.

How To Get The API Key

How to activate dowell sms api

Python Example

1. Sent SMS Copy

This Python code utilizes the requests library to make a POST request to the specified URL, passing the necessary data (sender, recipient, message content, and creator) in JSON format. Make sure to replace <YOUR_API_KEY>, <RECIPIENT_NAME>, <PHONE_NUMBER>, <MESSAGE>, and <SENDER_NAME> with appropriate values according to your use case.

				
					import requests  # Import the requests library to make HTTP requests

# Define the URL endpoint for sending SMS messages with your API key
url = "https://100085.pythonanywhere.com/api/v1/dowell-sms/<YOUR_API_KEY>/"

# Define the data to be sent in JSON format, including sender, recipient, message content, and creator
data = {
    "sender": "<RECIPIENT_NAME>",
    "recipient": "<PHONE_NUMBER>",
    "content": "<MESSAGE>",
    "created_by": "<SENDER_NAME>"
}

# Make a POST request to the specified URL with the JSON data
response = requests.post(url, json=data)

# Check if the request was successful (status code 200)
if response.status_code == 200:
    print("SMS sent successfully!")  # Print a success message if the SMS was sent
else:
    print("Failed to send SMS.")  # Print an error message if the SMS failed to send

				
			

PHP Example

1. Sent SMS Copy

This PHP code sends an SMS using the DoWell SMS API by making a POST request with the necessary data in JSON format. Adjust the placeholders (“<YOUR API KEY>”, “<RECIPIENT NAME>”, “<PHONE NUMBER>”, “<MESSAGE>”, “<SENDER NAME>”) with actual values before using it.

				
					<?php
// Set the endpoint URL with your API key
$url = 'https://100085.pythonanywhere.com/api/v1/dowell-sms/<YOUR API KEY>/';

// Prepare the data to be sent in JSON format
$data = array(
    "sender" => "<RECIPIENT NAME>",
    "recipient" => "<PHONE NUMBER>",
    "content" => "<MESSAGE>",
    "created_by" => "<SENDER NAME>"
);

// Initialize cURL session
$ch = curl_init();

// Set cURL options
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));

// Execute the request
$response = curl_exec($ch);

// Check for errors and handle the response
if($response === false) {
    echo 'Error: ' . curl_error($ch);
} else {
    echo 'SMS sent successfully!';
}

// Close cURL session
curl_close($ch);
?>

				
			

React Example

1. Sent SMS Copy

This React component allows users to input sender name, recipient’s phone number, message content, and sender’s name. Upon form submission, it makes a POST request to the DoWell SMS API endpoint with the provided data, handling any errors that may occur during the process. Make sure to replace YOUR_API_KEY with your actual API key obtained from DoWell SMS service.

				
					// Import necessary modules
import React, { useState } from 'react';
import axios from 'axios'; // Ensure axios is installed via npm or yarn

// Define the functional component for sending SMS
const SendMessage = () => {
  // State variables to store input values
  const [sender, setSender] = useState('');
  const [recipient, setRecipient] = useState('');
  const [message, setMessage] = useState('');
  const [createdBy, setCreatedBy] = useState('');

  // Function to handle form submission
  const handleSubmit = async (e) => {
    e.preventDefault();
    try {
      // Make POST request to the API endpoint with user input
      const response = await axios.post(`https://100085.pythonanywhere.com/api/v1/dowell-sms/${YOUR_API_KEY}/`, {
        sender: sender,
        recipient: recipient,
        content: message,
        created_by: createdBy
      });
      console.log(response.data); // Log response data
      // Reset form inputs after successful submission
      setSender('');
      setRecipient('');
      setMessage('');
      setCreatedBy('');
    } catch (error) {
      console.error('Error sending SMS:', error); // Log error if request fails
    }
  };

  return (
    <div>
      <h2>Send SMS</h2>
      <form onSubmit={handleSubmit}>
        {/* Input fields for sender, recipient, message, and creator */}
        <input type="text" placeholder="Sender Name" value={sender} onChange={(e) => setSender(e.target.value)} required />
        <input type="tel" placeholder="Recipient Phone Number" value={recipient} onChange={(e) => setRecipient(e.target.value)} required />
        <textarea placeholder="Message" value={message} onChange={(e) => setMessage(e.target.value)} required />
        <input type="text" placeholder="Your Name" value={createdBy} onChange={(e) => setCreatedBy(e.target.value)} required />
        {/* Button to submit the form */}
        <button type="submit">Send</button>
      </form>
    </div>
  );
};

export default SendMessage;

				
			

Flutter Example

1. Sent SMS Copy

This code snippet demonstrates how to send an SMS using the DoWell API in Flutter. Replace placeholders like <YOUR_API_KEY>, <RECIPIENT_NAME>, <PHONE_NUMBER>, <YOUR_MESSAGE>, and <YOUR_NAME> with your actual data. The function sendSMS performs the POST request to the API endpoint, sending the message content and necessary details.

				
					// Import necessary packages
import 'package:http/http.dart' as http;
import 'dart:convert';

// Function to send SMS using DoWell API
Future<void> sendSMS(String apiKey, String recipientName, String phoneNumber, String message, String senderName) async {
  // API endpoint
  String apiUrl = 'https://100085.pythonanywhere.com/api/v1/dowell-sms/$apiKey/';

  // JSON payload for the request
  Map<String, String> payload = {
    "sender": recipientName,
    "recipient": phoneNumber,
    "content": message,
    "created_by": senderName
  };

  try {
    // Make POST request
    var response = await http.post(
      Uri.parse(apiUrl),
      headers: <String, String>{
        'Content-Type': 'application/json; charset=UTF-8',
      },
      body: jsonEncode(payload),
    );

    // Check response status
    if (response.statusCode == 200) {
      print('SMS sent successfully');
    } else {
      print('Failed to send SMS');
    }
  } catch (e) {
    print('Error: $e');
  }
}

// Usage example
void main() {
  String apiKey = '<YOUR_API_KEY>';
  String recipientName = '<RECIPIENT_NAME>';
  String phoneNumber = '<PHONE_NUMBER>';
  String message = '<YOUR_MESSAGE>';
  String senderName = '<YOUR_NAME>';

  // Call function to send SMS
  sendSMS(apiKey, recipientName, phoneNumber, message, senderName);
}

				
			

WordPress Example

Step 1: Set up the API name, unique ID and the base url(below). It’s a prerequisite to have WP-GET API plugin installed in your wordpress website

Dowell SMS API

Step 2: Establish the API endpoint with the inclusion of the API key, and configure the request body to contain the required POST fields.

Dowell SMS API
Dowell SMS API

Step 3: Test the endpoint to obtain a jQuery response from the API. Ensure that the API is functioning correctly by sending a test request and examining the response.