Account » Pricing

Retrieve our outbound pricing for a given country.

Base URL

All requests to TheTexting must be submitted to the base URL. TheTexting provides you with an option of a response as a JSON object, or an XML string - you get to choose which response by selecting the appropriate base URL for your request.

JSON end point

XML end point

HTTP Methods

This API call uses GET method.


All requests require your API credentials (api_key & api_secret), which you can find under "API Settings" in TheTexting Dashboard.

Parameter Description
api_key Required. Your API Key. Ex: api_key=2f0ihf5656lfu03jl
api_secret Required. Your API Secret. Ex: api_secret=cluol3434qwfc0lg
country_code Required. A two letter country code. Ex: US (for USA)

Sample URL

JSON Response (Success)


    "Response": {

        "Price": 0.0055,

        "Country_Name": "United States",

        "Country_Prefix": 1,

        "Country_Code": "US "


    "ErrorMessage": "",

    "Status": 0


XML Response (Success)

<TheTexting xmlns:i="">
<Response xmlns:d2p1="">
<d2p1:Country_Name>United States</d2p1:Country_Name>

JSON Response (Failure)

"Response": null,
"ErrorMessage": "Parameters Missing",
"Status": 2

XML Response (Failure)

<TheTexting xmlns:i="">
<ErrorMessage>Parameters Missing</ErrorMessage>
<Response i:nil="true"/>

Respond Codes

Code Meaning
0 Request is successful
1 Request has failed.
2 Parameters are missing.
3 Credentials are invalid.
4 Parameters are invalid.
5 Result has returned empty.
6 Status is invalid.