For NowSMS v5.51 and later, an HTTP-based interface has been added to allow for account provisioning by external applications. This interface is enabled when the web-based administration interface is enabled by checking “Enable Web Account Administration” on the “Web” page of the NowSMS configuration dialog.
This interface is accessed via the NowSMS web interface port, with a URI of “/provision” followed by a series of “HTTP GET” parameters. (The admin username and password must be supplied in the HTTP GET request within an “Authorization:” header using HTTP Basic Authentication.)
Two different provisioning request formats are defined, one for defining “SMS Users” accounts, and a second for defining “MMSC Users” accounts.
If a parameter of ”Type=SMS” is specified, the following parameters are supported:
AdminAction=Add, Modify, Delete, or CreditCheck
Name=Account Name
Password=password
Fullname=Full Name
EnableWebLogin=Yes/No
EnableSmppLogin=Yes/No
EnableSmtpLogin=Yes/No
ForcedSenderAddress=Sender Address
RestrictIPAddress=list of IP addresses
EnableCreditBalance=Yes/No
CreditsToAdd=####
MessageLimitDefault=Yes/No
MessageLimitPerDay=####
MessageLimitPerMonth=####
RecipientAddresses=list of recipient phone numbers that should be routed to this account
As an example, to add credits to an existing account, issue the following URL request:
http://server:port/provision?Type=SMS&AdminAction=Modify&Name=accountname&CreditsToAdd=100
Assuming that the user is authorized to issue a provisioning command (valid username/password, and supported IP address for originating the request), the server will return a normal HTTP response code of 200 with a MIME content type of “text/plain”. The response will start with “OK” if the request was successful, or “ERROR” if the request failed. If a”CreditsToAdd” parameter was specified, or ”AdminAction=CreditCheck”, the HTTP response will include the text ”Credits=####”, where “####” is the current balance for the account.
If a parameter of ”Type=MMS” is specified, the following parameters are supported:
AdminAction=Add, Modify, Delete, or CreditCheck
PhoneNumber=phonenumber
Name=Alias
Password=password
Fullname=Full Name
MessageLimitDefault=Yes/No
MessageLimitPerDay=####
MessageLimitPerMonth=####
Related pages:
- Provisioning SMS and MMSC User Accounts via HTTP For NowSMS v5.51 and later, an HTTP-based interface has been added to allow for account provisioning by external applications. This...
- Sending OMA Provisioning Content OTA Messages Sending OMA Provisiong Content over HTTP To send an OMA Provisioning Content OTA message via a menu driven interface, please...
- Provisioning MMS Short Codes on the NowSMS MMSC When using the NowSMS MMSC as an operator MMSC, one frequently asked question is how to provision short codes for...
- Sending XML Settings Documents and Objects To send an XML Settings Document via a menu driven interface, please see the help section titled Web Menu Interface....
- Sending WAP Push and Binary SMS from the Command Line In past postings, we’ve provided a variety of command line script examples that make it easy to interface with NowSMS...
- Send SMS from PHP Script Over the coming weeks, I’m planning to collect various PHP, ASP and other script examples to provide some examples of...
- MM1 Before submitting a message via MM1, a VASP (Value Added Service Provider) account must be defined to the Now SMS...
- Send SMS Text Message with PHP The following example PHP script, sendsms.php, can be used to send an SMS text message via NowSMS with PHP. This...
- MMSC MM4 Interconnection Basics MM4 is the standard protocol that is defined for connecting together two or more MMSCs. MM4 is an SMTP based...
- Send SMS from Java (or JSP) A Java example for sending SMS messages via NowSMS has been posted at the following link: http://www.nowsms.com/download/sendsms.java.txt The sendsms class...
Topic Category: API, user account provisioning
For comments and further discussion, please click here to visit the NowSMS Technical Forums (Discussion Board)...
One Response to “Provisioning SMS and MMSC User Accounts via HTTP”

Click here to download a free trial version of NowSMS & MMS Gateway, NowSMS Lite or NowWAP Gateway.
Learn more about NowSMS Lite.
Recent versions of NowSMS have added additional SMS user account attributes, including whether or not the account can receive messages.
For additional information on these attributes, please see the discussion at http://www.nowsms.com/discus/messages/1/70569.html