Developer Documentation

API Integration Reference

Integrate our high-speed OTP SMS gateway using simple JSON REST payloads. Configure failover routes and query wallet balances instantly.

Your Vendor ID (sender_id) YOUR_VENDOR_ID
Active API Authorization Token Sign in to view credentials
Login

Global Settings

API Base URL https://sms.websynczone.in/api/v1
Content-Type application/json
Authentication Header Authorization: {YOUR_API_KEY}

Send SMS Endpoint

POST
https://sms.websynczone.in/api/v1/sms
Payload Parameters
Field Type Requirement Description
sender_id string Required Your permanent Account Vendor ID.
numbers string Required Recipient mobile number with country code.
rout string Required Fixed value `sms`.
variables_values string Required The message text content to send.

Wallet Balance

GET
https://sms.websynczone.in/api/v1/balance

Retrieve your client account name, wallet balance sum, and currency info.

Flutter (Dart) Setup Kotlin (Android) Setup Node.js (Axios) Code PHP (cURL) Code Python (Requests) Code Java (OkHttp) Code Go (net/http) Code C# (HttpClient) Code
How Flutter Works

1. Add the http package to your Flutter project's pubspec.yaml file:

dependencies: http: ^1.2.0

2. Import the HTTP library and execute the asynchronous request payload as shown below.

import 'dart:convert';
import 'package:http/http.dart' as http;

Future<void> sendSMS() async {
  final url = Uri.parse('https://sms.websynczone.in/api/v1/sms');
  final headers = {
    'Authorization': 'YOUR_API_KEY_HERE',
    'Content-Type': 'application/json',
  };
  final body = jsonEncode({
    'sender_id': 'YOUR_VENDOR_ID',
    'numbers': '9876543210',
    'rout': 'sms',
    'variables_values': '123456',
  });

  try {
    final response = await http.post(url, headers: headers, body: body);
    if (response.statusCode == 200) {
      print('Response: ${response.body}');
    } else {
      print('Failed: ${response.statusCode}');
    }
  } catch (e) {
    print('Error: $e');
  }
}
How Kotlin Works

1. Add the OkHttp dependency to your Android app's build.gradle file:

dependencies { implementation("com.squareup.okhttp3:okhttp:4.12.0") }

2. Create the request payload, pass authorization header, and run the client call asynchronously.

import okhttp3.MediaType.Companion.toMediaType
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.RequestBody.Companion.toRequestBody
import java.io.IOException

fun sendSMS() {
    val client = OkHttpClient()
    val mediaType = "application/json; charset=utf-8".toMediaType()
    val json = """
        {
            "sender_id": "YOUR_VENDOR_ID",
            "numbers": "9876543210",
            "rout": "sms",
            "variables_values": "123456"
        }
    """.trimIndent()
    val body = json.toRequestBody(mediaType)
    val request = Request.Builder()
        .url("https://sms.websynczone.in/api/v1/sms")
        .post(body)
        .addHeader("Authorization", "YOUR_API_KEY_HERE")
        .addHeader("Content-Type", "application/json")
        .build()

    client.newCall(request).enqueue(object : okhttp3.Callback {
        override fun onFailure(call: okhttp3.Call, e: java.io.IOException) {
            e.printStackTrace()
        }

        override fun onResponse(call: okhttp3.Call, response: okhttp3.Response) {
            response.use {
                if (!response.isSuccessful) throw java.io.IOException("Unexpected code ${response}")
                println(response.body?.string())
            }
        }
    })
}
const axios = require('axios');

const data = {
    sender_id: "YOUR_VENDOR_ID",
    numbers: "9876543210",
    rout: "sms",
    variables_values: "123456"
};

axios.post('https://sms.websynczone.in/api/v1/sms', data, {
    headers: {
        'Authorization': 'YOUR_API_KEY_HERE',
        'Content-Type': 'application/json'
    }
}).then(response => {
    console.log(response.data);
}).catch(error => {
    console.error(error);
});
<?php
$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL => 'https://sms.websynczone.in/api/v1/sms',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: YOUR_API_KEY_HERE',
        'Content-Type: application/json'
    ],
    CURLOPT_POSTFIELDS => json_encode([
        'sender_id' => 'YOUR_VENDOR_ID',
        'numbers' => '9876543210',
        'rout' => 'sms',
        'variables_values' => '123456'
    ])
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
import json

url = "https://sms.websynczone.in/api/v1/sms"
headers = {
    "Authorization": "YOUR_API_KEY_HERE",
    "Content-Type": "application/json"
}
payload = {
    "sender_id": "YOUR_VENDOR_ID",
    "numbers": "9876543210",
    "rout": "sms",
    "variables_values": "123456"
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
import okhttp3.*;
import java.io.IOException;

public class SmsSender {
    public static void main(String[] args) throws IOException {
        OkHttpClient client = new OkHttpClient();

        MediaType mediaType = MediaType.parse("application/json");
        RequestBody body = RequestBody.create(mediaType, 
            "{\"sender_id\":\"YOUR_VENDOR_ID\",\"numbers\":\"9876543210\",\"rout\":\"sms\",\"variables_values\":\"123456\"}");
        
        Request request = new Request.Builder()
            .url("https://sms.websynczone.in/api/v1/sms")
            .post(body)
            .addHeader("Authorization", "YOUR_API_KEY_HERE")
            .addHeader("Content-Type", "application/json")
            .build();

        try (Response response = client.newCall(request).execute()) {
            System.out.println(response.body().string());
        }
    }
}
package main

import (
	"bytes"
	"encoding/json"
	"fmt"
	"io"
	"net/http"
)

func main() {
	url := "https://sms.websynczone.in/api/v1/sms"
	payload := map[string]string{
		"sender_id":        "YOUR_VENDOR_ID",
		"numbers":          "9876543210",
		"rout":             "sms",
		"variables_values": "123456",
	}
	jsonVal, _ := json.Marshal(payload)

	req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonVal))
	req.Header.Set("Authorization", "YOUR_API_KEY_HERE")
	req.Header.Set("Content-Type", "application/json")

	client := &http.Client{}
	resp, err := client.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;

class Program {
    static async Task Main() {
        var client = new HttpClient();
        var url = "https://sms.websynczone.in/api/v1/sms";
        
        client.DefaultRequestHeaders.Add("Authorization", "YOUR_API_KEY_HERE");
        
        var json = "{\"sender_id\":\"YOUR_VENDOR_ID\",\"numbers\":\"9876543210\",\"rout\":\"sms\",\"variables_values\":\"123456\"}";
        var content = new StringContent(json, Encoding.UTF8, "application/json");
        
        var response = await client.PostAsync(url, content);
        var result = await response.Content.ReadAsStringAsync();
        Console.WriteLine(result);
    }
}