• Home
  • Services
    • Messaging
      Send personalized text messages automatically in response to...
      2-Way SMS
      Everything 2-Way offers is instantly accessible through our API and...
      Whitelable Reseller
      Our pricing is simple and straightforward. View our full Reseller Pricing.
  • Pricing
  • APIs
  • Contact us
  • Login
  • Support
    • Phone +93748849494
    • Start a Live Chat
    • Open a ticket
    • Knowledge base
Our Gateway API and Integration Guide

This page is meant to provide help and illustrations to users who wish to delivery SMS using Our SMS Gateway via the HTTP Protocol. Sending messages via the HTTP API is one of the best and the quickest ways to deliver SMS messages.

This page gives a detailed explanation of using the gateway through HTTP API. All requests are to be made via HTTP POST or GET to http://portal.textbip.com/api/index.php

All API calls are to be made in a url encoded via HTTP request (GET or POST) to http://portal.textbip.com/api/index.php


Excel / HTTP API
  • Gateway API Guide
  • API To Send SMS
  • API To Check Balance
  • API To Schedule SMS
  • API To Add Contact To Marketing List
  • API To Get Your Marketing Lists
API To Send SMS

API URL

http://portal.textbip.com/api/index.php?
username=[your username&] api_key=[your api_key]

Required Parameters

ParameterDescription
usernameYour account Username
api_keyYour API Key
senderYour Sender ID
toYour Recipients separated by commas
messageYour Text Message
mms (optional)Set to 1 to send multimedia Message
unicode (optional)Set to 1 to send SMS as Unicode Message
media (optional)List of multimedia file URLs for MMS separated by commas

Response (returned in plain texts)

ResponseDescription
Message Sent SuccessfullySMS was successfully sent
Invalid UserIncorrect username or password
Insufficient BalanceNot enough available units to sent message
Sending FailedMessage could not be sent
Missing ParameterOne or more required parameters not supplied
API To Check Balance

API URL

http://portal.textbip.com/api/index.php?
username=[your username&] api_key=[your api_key]

Required Parameters

ParameterDescription
usernameYour account Username
api_keyYour API Key

Response (returned in plain texts)

ResponseDescription
Invalid UserIncorrect username or password
Balance: [Your Balance]Your current balance returned
Missing ParameterOne or more required parameters not supplied
API To Schedule SMS

API URL

http://portal.textbip.com/api/index.php?
username=[your username&] api_key=[your api_key]

Required Parameters

ParameterDescription
usernameYour account Username
api_keyYour API Key
senderYour Sender ID
toYour Recipients separated by commas
messageYour Text Message
sendondateDate and Time to send message in the format YYYY-MM-DD HH:MM:SS

Response (returned in plain texts)

ResponseDescription
Schedule SuccessfulSMS was successfully scheduled
Invalid UserIncorrect username or API Key
Insufficient BalanceNot enough available units to sent message
Missing ParameterOne or more required parameters not supplied
API To Add Contact To Marketing List

API URL

http://portal.textbip.com/api/index.php?
username=[your username&] api_key=[your api_key]

Required Parameters

ParameterDescription
usernameYour account Username
api_keyYour API Key
list_idDesired marketing list ID
nameSubscriber's Name
phoneSubscriber's Phone Number (including country code)

Response (returned in plain texts)

ResponseDescription
Invalid UserIncorrect username or API Key
Contact Successfully AddedContact was successfully added to selected list
Unable to Add ContactContact was not added to selected list
List Not FoundSupplied lis does not exist.
Missing ParameterOne or more required parameters not supplied
API To Get Your Marketing Lists

API URL

http://portal.textbip.com/api/index.php?
username=[your username&] api_key=[your api_key]

Required Parameters

ParameterDescription
usernameYour account Username
api_keyYour API Key

Response (returned in plain texts)

ResponseDescription
Invalid UserIncorrect username or API Key
id:name,id2:name2,id3,name3...A comma separated list of all your marketing lists with IDs
Missing ParameterOne or more required parameters not supplied
+93 748 849494
info@textbip.com
Amiryat street, Mahbas squre, Herat-Afghanistan.

Company

  • About us
  • FAQ
  • Contact us

Services

  • Messaging
  • 2-Waysms
  • Reseller

Parent Company

  • Customer Portal
  • Support Portal
  • Zarvanservices