{"id":472,"date":"2016-06-09T08:43:55","date_gmt":"2016-06-09T08:43:55","guid":{"rendered":"http:\/\/text-connect.co.uk\/blog\/?p=472"},"modified":"2016-06-09T08:43:55","modified_gmt":"2016-06-09T08:43:55","slug":"http-api-documentation","status":"publish","type":"post","link":"https:\/\/text-connect.co.uk\/blog\/http-api-documentation\/","title":{"rendered":"HTTP API Documentation"},"content":{"rendered":"<p>&nbsp;<\/p>\n<div class=\"page-main\">\n<article class=\"knowledgebase-single\">\n<div class=\"knowledgebase-content\">\n<h3 id=\"ConnectingtotheAPI\" class=\"text-info\">Connecting to the API<\/h3>\n<p>The URL for accessing the API from within your script is:\u00a0<a class=\"underlinelink\" href=\"http:\/\/goto.text-connect.co.uk\/api\">https:\/\/goto.text-connect.co.uk\/api<\/a><\/p>\n<p>The API can be called with an HTTP GET or POST, passing in the relevant parameters. All parameters are mandatory unless otherwise stated. All parameters must be URI Encoded.<\/p>\n<h3 id=\"GeneralParameters\" class=\"text-info\">General Parameters<\/h3>\n<p>The general parameters are applicable to all calls to the API<\/p>\n<table class=\"table table-bordered table-custom-blue\">\n<thead>\n<tr>\n<th width=\"50%\">Parameter Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Token\u00a0(required)<\/td>\n<td>Your token\u00a0(found in your settings within you<strong> online Text-Connect<\/strong> account)<\/td>\n<\/tr>\n<tr>\n<td>Action (required)<\/td>\n<td>The action that you would like to perform. This must be one of (not case sensitive):<br \/>\n<strong><span class=\"text-info\">CheckCredits<\/span><\/strong>\u00a0to check how many credits you have<br \/>\n<strong><span class=\"text-info\">CheckMessageStatus<\/span><\/strong>\u00a0to check the status of a message<br \/>\n<strong><span class=\"text-info\">Send<\/span><\/strong>\u00a0to send a message<br \/>\n<strong><span class=\"text-info\">Report<\/span><\/strong>\u00a0to create a report<br \/>\n<strong><span class=\"text-info\">CreateUser<\/span><\/strong>\u00a0to create a new user<br \/>\n<strong><span class=\"text-info\">UpdateCredits<\/span><\/strong>\u00a0to add\/remove credits from an existing user<br \/>\n<strong><span class=\"text-info\">ImportContactsCSV<\/span><\/strong>\u00a0to import contacts<br \/>\n<strong><span class=\"text-info\">DeleteAllContacts<\/span><\/strong>\u00a0to delete all contacts<br \/>\n<strong><span class=\"text-info\">DeleteAllGroups<\/span><\/strong>\u00a0to delete all contact groups<\/td>\n<\/tr>\n<tr>\n<td>ShowErrorMessage (optional)<\/td>\n<td>If this is set (to any value) and an error occurs in the API call, the text for the error message will be shown one line beneath the error code.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"CheckCredits\" class=\"text-info\">Check Credits<\/h3>\n<p>Checks your current credit balance. No further parameters are required. Your credit balance will be returned in the content of the page.<\/p>\n<div class=\"well examples-code\">Example GET URL : https:\/\/goto.text-connect.co.uk\/api?Token=th1S-15my-t0ken&amp;Action=CheckCredits<\/div>\n<div class=\"well examples-code\"><\/div>\n<h3 id=\"CheckMessageStatus\" class=\"text-info\">Check Message Status<\/h3>\n<table class=\"table table-bordered table-custom-blue\">\n<thead>\n<tr>\n<th width=\"50%\">Parameter Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>MessageID<\/td>\n<td>The Message ID of the message that you wish to query. This is the ID returned by the Send action and can also be found in a message report<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"well examples-code\">Example GET URL : https:\/\/goto.text-connect.co.uk\/api?Token=th1S-15my-t0ken&amp;Action=CheckMessageStatus&amp;MessageID=[Your Message ID]<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"SendMessage\" class=\"text-info\">Send Message<\/h3>\n<p>Sends a message. The message ID or error code will be returned in the content of the Page. If multiple numbers are submitted, then multiple IDs \/ error codes will be returned, separated by commas<\/p>\n<table class=\"table table-bordered table-custom-blue\">\n<thead>\n<tr>\n<th width=\"50%\">Parameter Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>DestinationAddress<\/td>\n<td>The Destination Address(es) to send the message to. If you wish to send to multiple numbers, they should be separated by a comma. When submitting multiple numbers, you should use the POST method rather than the GET method.To send to a list, set the DestinationAddress parameter to \u201cList\u201d and add a new parameter \u201cListName\u201d with the name of the list to send to.For a group set the DestinationAddress parameter to \u201cGroup\u201d and add a new parameter \u201cGroupName\u201d with the name of the group to send to.If the send is successful, the API will return 1. If not, a negative error code will be returned.Note that these sends may occur in the background if the group\/list contains more than 200 entries.<\/td>\n<\/tr>\n<tr>\n<td>SourceAddress<\/td>\n<td>The Source Address for the message. If this is alphanumeric, it must be 11 or less characters. All GSM characters are valid, however operators and handsets may support restricted character sets. We recommend you stick to A-Z, a-z, 0-9 and space.<\/td>\n<\/tr>\n<tr>\n<td>Body<\/td>\n<td>The Message Body (max 459 characters)<\/td>\n<\/tr>\n<tr>\n<td>ScheduleDate (optional)<\/td>\n<td>The date that the message should be sent (YYYYMMDDHHMMSS)<\/td>\n<\/tr>\n<tr>\n<td>SourceTON (optional)<\/td>\n<td>The Type Of Number for the source address (1 for international, 5 for alphanumeric)<\/td>\n<\/tr>\n<tr>\n<td>ValidityPeriod<\/td>\n<td>The period in seconds that the message will be tried for (maximum 86400 = 24 hours). Once this expires, the message will no longer be attempted to be delivered.<\/td>\n<\/tr>\n<tr>\n<td>GetAllMessageIDs<\/td>\n<td>If the message is longer than 160 characters, the system by default will return only the first ID for each message. Set this parameter to 1 to return all the Ids for each part of each message.<\/td>\n<\/tr>\n<tr>\n<td>GetBGSendID<\/td>\n<td>If you send to a distlist and set this parameter to 1 the BGSendID for the dist list will be returned. For future proofing, this could be a comma separated list of values, should the send be split into multiple sends.<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"well examples-code\">Example GET URL : https:\/\/goto.text-connect.co.uk\/api?Token=th1S-15my-t0ken&amp;Action=Send&amp;DestinationAddress=[Your Number]&amp;SourceAddress=API&amp;Body=Hello%20World<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"Reports\" class=\"text-info\">Reports<\/h3>\n<p>Retrieve the data from a report. The report, in CSV format, will be returned in the content of the page.<\/p>\n<table class=\"table table-bordered table-custom-blue\">\n<thead>\n<tr>\n<th width=\"50%\">Parameter Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ReportType<\/td>\n<td>The Type of report. Options are:\u00a0<strong class=\"text-info\">Outbox<\/strong>\u00a0(From and To dates are ignored for this report),\u00a0<strong class=\"text-info\">Messages,\u00a0<\/strong><strong class=\"text-info\">Usage,\u00a0<\/strong><strong class=\"text-info\">InboundMessages, FailedMessages<\/strong><\/td>\n<\/tr>\n<tr>\n<td>From<\/td>\n<td>The start date for the report (YYYYMMDDHHMMSS)<\/td>\n<\/tr>\n<tr>\n<td>To<\/td>\n<td>The end date for the report (YYYYMMDDHHMMSS)<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"well examples-code\">Example GET URL : https:\/\/goto.text-connect.co.uk\/api?Token=th1S-15my-t0ken&amp;Action=Report&amp;ReportType=Messages&amp;From=20130704000000&amp;To=20130711000000<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"CreateUser\" class=\"text-info\">Create User<\/h3>\n<p>Only possible if you are an admin user, this will create a child user. If successful, \u20181\u2019 will be returned in the content of the page. If unsuccessful, the first line of the page will be the error code and the following lines will contain text information about the nature of the error(s).<\/p>\n<table class=\"table table-bordered table-custom-blue\">\n<thead>\n<tr>\n<th width=\"50%\">Parameter Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ChildUsername<\/td>\n<td>The username of the user you wish to create<\/td>\n<\/tr>\n<tr>\n<td>ChildPassword<\/td>\n<td>The password for the user<\/td>\n<\/tr>\n<tr>\n<td>AccessLevel<\/td>\n<td>What access level the user should have (Normal or Admin)<\/td>\n<\/tr>\n<tr>\n<td>FirstName<\/td>\n<td>The first name of the user<\/td>\n<\/tr>\n<tr>\n<td>LastName<\/td>\n<td>The last name of the user<\/td>\n<\/tr>\n<tr>\n<td>Email<\/td>\n<td>The email address of the user<\/td>\n<\/tr>\n<tr>\n<td>Telephone (Optional)<\/td>\n<td>The telephone number of the user<\/td>\n<\/tr>\n<tr>\n<td>Credits<\/td>\n<td>How many credits the user should start with (these will be deducted from your account)<\/td>\n<\/tr>\n<tr>\n<td>Credit Reminder (Optional)<\/td>\n<td>When to send the user a low credit warning email (number of credits left to trigger the email)<\/td>\n<\/tr>\n<tr>\n<td>Alert (Optional)<\/td>\n<td>After how many days of inactivity should an inactivity alert be sent<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"well examples-code\">Example GET URL : https:\/\/goto.text-connect.co.uk\/api?Token=th1S-15my-t0ken&amp;Action=CreateUser&amp;ChildUsername=[Child Username]&amp;ChildPassword=[Child Password]&amp;AccessLevel=Normal&amp;FirstName=[User\u2019s First Name]&amp;LastName=[User\u2019s Last Name]&amp;Email=[User\u2019s Email]&amp;Credits=5<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"UpdateCredits\" class=\"text-info\">Update Credits<\/h3>\n<p>Transfer credits to\/from a child user. If successful, \u20181\u2019 will be returned in the content of the page.<\/p>\n<table class=\"table table-bordered table-custom-blue\">\n<thead>\n<tr>\n<th width=\"50%\">Parameter Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ChildUsername<\/td>\n<td>The username of the user that you wish to transfer credits to\/from. The user must belong to you.<\/td>\n<\/tr>\n<tr>\n<td>Quantity<\/td>\n<td>The amount of credits to transfer. If the number is positive, credits will be transferred to that user. If the number is negative, they will be transferred from that user to you.<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"well examples-code\">Example GET URL : https:\/\/goto.text-connect.co.uk\/api?Token=th1S-15my-t0ken&amp;Action=UpdateCredits&amp;ChildUsername=[Child Username]&amp;Quantity=5<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"ImportContactsCSV\" class=\"text-info\">Import Contacts CSV<\/h3>\n<p>This allows you to import contacts into your address book.<\/p>\n<p>For each line in the ContactsCSV parameter, a corresponding line will be returned in the content of the page in the format:<\/p>\n<blockquote><p>[line] : [result]<\/p><\/blockquote>\n<p>Where result is one of:<\/p>\n<blockquote><p>Success<br \/>\nDuplicate Name<br \/>\nDuplicate Number<br \/>\nPartial<br \/>\nFailed<\/p><\/blockquote>\n<p>If there are any Partial or Failed lines, then there will be a blank line, followed by text with details of all the errors below. Partial will usually mean that the contact was added, but could not be put in the group.<\/p>\n<p>Example:<\/p>\n<blockquote><p>ContactsCSV Parameter contains:<br \/>\nContact 1,447777777771,noone@anywhere.com,group1<br \/>\nContact 2,447777777772,<br \/>\nContact 3,447777777773,,group1,group2,group3<br \/>\n,447777777774,noone@anywhere.com,group3<br \/>\nContact 5,mynumber,noone@anywhere.com,group3<\/p><\/blockquote>\n<p>Gives the reponse:<\/p>\n<blockquote><p>1 : Success<br \/>\n2 : Success<br \/>\n3 : Success<br \/>\n4 : Failed<br \/>\n5 : Failed<\/p><\/blockquote>\n<p>Errors:<\/p>\n<blockquote><p>4 : No name<br \/>\n5 : Invalid number (mynumber)<\/p><\/blockquote>\n<table class=\"table table-bordered table-custom-blue\">\n<thead>\n<tr>\n<th width=\"50%\">Parameter Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>ContactsCSV<\/td>\n<td>A comma separated list of contacts to add, one per line formatted as follows: name,number,email,group1,group2,group3<\/td>\n<\/tr>\n<tr>\n<td>IgnoreDupes (Optional)<\/td>\n<td>If set to 1, the system will allow duplicate contacts (name or number) to be created. By default the system will not allow duplicate names or numbers in contacts.<\/td>\n<\/tr>\n<tr>\n<td>OverwriteDupes (Optional)<\/td>\n<td>is set to 1, the value of IgnoreDupes is ignored.<\/td>\n<\/tr>\n<tr>\n<td>OverwriteDupes (Optional)<\/td>\n<td>is set to 1, then any duplicate number will be overwritten. If a duplicate name exists, but with a different number, the original contact will not be overwritten, instead a new contact will be created.<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"well examples-code\">Example GET URL : https:\/\/goto.text-connect.co.uk\/api?Token=th1S-15my-t0ken&amp;Action=ImportContactsCSV&amp;ContactsCSV=contact%201%2C447777777777%2Cnoreply%40anywhere.com%2Cgroup1%2Cgroup2%2Cgroup3%0Acontact%202%2C447777777778%2Cnoreply%40anywhereelse.com%2Cgroup1%2C<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"DeleteAllContacts\" class=\"text-info\">Delete All Contacts<\/h3>\n<p>Deletes all contacts in this account. No further parameters are required. 1 will be returned if the deletion was successful, the relevant error code will be returned if an error occurred.<\/p>\n<div class=\"well examples-code\">Example GET URL : https:\/\/goto.text-connect.co.uk\/api?Token=th1S-15my-t0ken&amp;Action=DeleteAllContacts<\/div>\n<h3 id=\"DeleteAllGroups\" class=\"text-info\">Delete All Groups<\/h3>\n<p>Deletes all groups. No further parameters are required. 1 will be returned if the deletion was successful, the relevant error code will be returned if an error occurred.<\/p>\n<div class=\"well examples-code\">Example GET URL : https:\/\/goto.text-connect.co.uk\/api?Token=th1S-15my-t0ken&amp;Action=DeleteAllGroups<\/div>\n<h3 id=\"EmptyGroup\" class=\"text-info\">Empty Group<\/h3>\n<p>Remove all contacts from the specified group<\/p>\n<div class=\"well examples-code\">Example GET URL : https:\/\/goto.text-connect.co.uk\/api?Token=th1S-15my-t0ken&amp;Action=EmptyGroup&amp;Group=MyGroupName<\/div>\n<h3 id=\"DeleteGroup\" class=\"text-info\">Delete Group<\/h3>\n<p>Delete the specified group<\/p>\n<div class=\"well examples-code\">Example GET URL : https:\/\/goto.text-connect.co.uk\/api?Token=th1S-15my-t0ken&amp;Action=DeleteGroup&amp;Group=MyGroupName<\/div>\n<h3 id=\"GetBGMessages\" class=\"text-info\">GetBGMessages<\/h3>\n<p>Returns a JSON array of MessageID\/Number\/Status objects (e.g. [{\u201cMessageID\u201d:\u201d3509592\u2033,\u201dDestination\u201d:\u201d447777777777\u2033,\u201dStatus\u201d:\u201dSent\u201d},{\u201cMessageID\u201d:\u201d3509593\u2033,\u201dDestination\u201d:\u201d447777777778\u2033,\u201dStatus\u201d:\u201dSent\u201d}]<br \/>\nor a json error array as follows: {\u201cerror\u201d:\u201d-521\u2033,\u201dmessage\u201d:\u201dUnknown Background SendID\u201d}<\/p>\n<p><strong>Possible errors:<\/strong><br \/>\n-521 : Unknown Background Send ID<br \/>\n-522 : Background Send Not Finished<br \/>\n-523 : No messages were found<\/p>\n<p>This function will be unable to access messages that have been archived.<\/p>\n<table class=\"table table-bordered table-custom-blue\">\n<thead>\n<tr>\n<th width=\"50%\">Parameter Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>BGSendID<\/td>\n<td>ID of the send you want to retrieve messages for.<\/td>\n<\/tr>\n<tr>\n<td colspan=\"2\">\n<div class=\"well examples-code\">Example GET URL : https:\/\/goto.text-connect.co.uk\/api?Token=th1S-15my-t0ken&amp;Action=GetBGMessages&amp;BGSendID=[BGSendID]<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"InboundMessageHTTPForwarding\" class=\"text-info\">Inbound Message HTTP Forwarding<\/h3>\n<p>If you have bought an Virtual Mobile\u00a0Number (VMN or MSISDN), you can set up the system to forward messages sent to that VMN to a web page on your website.<\/p>\n<p>To do this, login into the web interface, go to your inbox and click on the manage button for the VMN you want to forward.<\/p>\n<p>Once there you will be able to choose the URL to forward to, whether you want to forward with the GET or POST method and what to pass with the auth parameter. (The auth parameter is a passthrough variable designed to add some security by having a password passed through)<\/p>\n<p>The following parameters are used in the call to your site:<\/p>\n<p><strong class=\"text-info\">source<\/strong>\u00a0\u2013 the phone number that the message came from<\/p>\n<p><strong class=\"text-info\">dest<\/strong>\u00a0\u2013 the VMN that the message was received on<\/p>\n<p><strong class=\"text-info\">msg<\/strong>\u00a0\u2013 the body of the message<\/p>\n<p><strong class=\"text-info\">id<\/strong>\u00a0\u2013 the ID of the message<\/p>\n<p><strong class=\"text-info\">receivedts<\/strong>\u00a0\u2013 the timestamp that the message was received by us in the format YYYY-MM-DD HH:MM:SS<\/p>\n<p><strong class=\"text-info\">auth<\/strong>\u00a0\u2013 the passthrough variable defined in manage VMN on the web interface<\/p>\n<h4 class=\"text-info\">Supplemental Data from a Distribution List<\/h4>\n<p>If you have selected a distribution list to receive supplemental data from, you will receive the following additional parameters, with data from the mail merge fields of that list<\/p>\n<p><strong class=\"text-info\">MMName<\/strong>\u00a0\u2013 the data from the Name field<\/p>\n<p><strong class=\"text-info\">MMEmail<\/strong>\u00a0\u2013 the data from the Email field<\/p>\n<p><strong class=\"text-info\">MM1<\/strong>\u00a0\u2013 the data from the first mail merge field<\/p>\n<p><strong class=\"text-info\">MM2<\/strong>\u00a0\u2013 the data from the second mail merge field<\/p>\n<p><strong class=\"text-info\">MM3<\/strong>\u00a0\u2013 the data from the third mail merge field<\/p>\n<p><strong class=\"text-info\">MM4<\/strong>\u00a0\u2013 the data from the fourth mail merge field<\/p>\n<p><strong class=\"text-info\">MM5<\/strong>\u00a0\u2013 the data from the fifth mail merge field<\/p>\n<h3 id=\"BulkUploads\" class=\"text-info\"><\/h3>\n<blockquote>\n<h3 id=\"ErrorCodes\" class=\"text-info\">Error Codes<\/h3>\n<table class=\"table table-bordered table-custom-blue\">\n<thead>\n<tr>\n<th width=\"50%\">Code<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>-100<\/td>\n<td>Not Enough Credits<\/td>\n<\/tr>\n<tr>\n<td>-101<\/td>\n<td>Invalid CreditID<\/td>\n<\/tr>\n<tr>\n<td>-200<\/td>\n<td>Invalid Contact<\/td>\n<\/tr>\n<tr>\n<td>-300<\/td>\n<td>General Database Error<\/td>\n<\/tr>\n<tr>\n<td>-301<\/td>\n<td>Unknown Error<\/td>\n<\/tr>\n<tr>\n<td>-302<\/td>\n<td>Return XML Error<\/td>\n<\/tr>\n<tr>\n<td>-303<\/td>\n<td>Received XML Error<\/td>\n<\/tr>\n<tr>\n<td>-400<\/td>\n<td>Some numbers in list failed<\/td>\n<\/tr>\n<tr>\n<td>-401<\/td>\n<td>Invalid Destination Address<\/td>\n<\/tr>\n<tr>\n<td>-402<\/td>\n<td>Invalid Source Address \u2013 Alphanumeric too long<\/td>\n<\/tr>\n<tr>\n<td>-403<\/td>\n<td>Invalid Source Address \u2013 Invalid Number<\/td>\n<\/tr>\n<tr>\n<td>-404<\/td>\n<td>Blank Body<\/td>\n<\/tr>\n<tr>\n<td>-405<\/td>\n<td>Invalid Validity Period<\/td>\n<\/tr>\n<tr>\n<td>-406<\/td>\n<td>No Route Available<\/td>\n<\/tr>\n<tr>\n<td>-407<\/td>\n<td>Invalid Schedule Date<\/td>\n<\/tr>\n<tr>\n<td>-408<\/td>\n<td>Distribution List is Empty<\/td>\n<\/tr>\n<tr>\n<td>-409<\/td>\n<td>Group is Empty<\/td>\n<\/tr>\n<tr>\n<td>-410<\/td>\n<td>Invalid Distribution List<\/td>\n<\/tr>\n<tr>\n<td>-411<\/td>\n<td>You have exceeded the limit of messages you can send in a single day to a single number<\/td>\n<\/tr>\n<tr>\n<td>-412<\/td>\n<td>Number is blacklisted<\/td>\n<\/tr>\n<tr>\n<td>-414<\/td>\n<td>Invalid Group<\/td>\n<\/tr>\n<tr>\n<td>-501<\/td>\n<td>Unknown Username\/Password<\/td>\n<\/tr>\n<tr>\n<td>-502<\/td>\n<td>Unknown Action<\/td>\n<\/tr>\n<tr>\n<td>-503<\/td>\n<td>Unknown Message ID<\/td>\n<\/tr>\n<tr>\n<td>-504<\/td>\n<td>Invalid From Timestamp<\/td>\n<\/tr>\n<tr>\n<td>-505<\/td>\n<td>Invalid To Timestamp<\/td>\n<\/tr>\n<tr>\n<td>-506<\/td>\n<td>Source Address Not Allowed (Email2SMS)<\/td>\n<\/tr>\n<tr>\n<td>-507<\/td>\n<td>Invalid\/Missing Details<\/td>\n<\/tr>\n<tr>\n<td>-508<\/td>\n<td>Error Creating User<\/td>\n<\/tr>\n<tr>\n<td>-509<\/td>\n<td>Unknown\/Invalid User<\/td>\n<\/tr>\n<tr>\n<td>-510<\/td>\n<td>You cannot set a user\u2019s credits to be less than 0<\/td>\n<\/tr>\n<tr>\n<td>-511<\/td>\n<td>The system is down for maintenance<\/td>\n<\/tr>\n<tr>\n<td>-512<\/td>\n<td>User Suspended<\/td>\n<\/tr>\n<tr>\n<td>-513<\/td>\n<td>License in use<\/td>\n<\/tr>\n<tr>\n<td>-514<\/td>\n<td>License expired<\/td>\n<\/tr>\n<tr>\n<td>-515<\/td>\n<td>No License available<\/td>\n<\/tr>\n<tr>\n<td>-516<\/td>\n<td>Unknown List<\/td>\n<\/tr>\n<tr>\n<td>-517<\/td>\n<td>Unable to create List<\/td>\n<\/tr>\n<tr>\n<td>-518<\/td>\n<td>Blank or Invalid Source Address<\/td>\n<\/tr>\n<tr>\n<td>-519<\/td>\n<td>Blank Message Body<\/td>\n<\/tr>\n<tr>\n<td>-520<\/td>\n<td>Unknown Group<\/td>\n<\/tr>\n<tr>\n<td>-601<\/td>\n<td>Unknown Report Type<\/td>\n<\/tr>\n<tr>\n<td>-701<\/td>\n<td>No UserID Specified<\/td>\n<\/tr>\n<tr>\n<td>-702<\/td>\n<td>Invalid Amount Specified<\/td>\n<\/tr>\n<tr>\n<td>-703<\/td>\n<td>Invalid Currency Requested<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/blockquote>\n<\/div>\n<\/article>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Connecting to the API The URL for accessing the API from within your script is:\u00a0https:\/\/goto.text-connect.co.uk\/api The API can be called with an HTTP GET or POST, passing in the relevant parameters. All parameters are mandatory unless otherwise stated. All &hellip; <a class=\"more-link\" href=\"https:\/\/text-connect.co.uk\/blog\/http-api-documentation\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[120,78],"tags":[123,125,126,127,124,85,116,121,122],"_links":{"self":[{"href":"https:\/\/text-connect.co.uk\/blog\/wp-json\/wp\/v2\/posts\/472"}],"collection":[{"href":"https:\/\/text-connect.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/text-connect.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/text-connect.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/text-connect.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=472"}],"version-history":[{"count":3,"href":"https:\/\/text-connect.co.uk\/blog\/wp-json\/wp\/v2\/posts\/472\/revisions"}],"predecessor-version":[{"id":475,"href":"https:\/\/text-connect.co.uk\/blog\/wp-json\/wp\/v2\/posts\/472\/revisions\/475"}],"wp:attachment":[{"href":"https:\/\/text-connect.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/text-connect.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/text-connect.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}