You can request a trial account to try out the SMS API. Once you have a trial long code, use this API Console page to send test requests and view the responses. For more detailed information about each request and response, see the API Reference pages.
Note that many SMS API functions use callback requests to send information to your application. To take advantage of that, you’ll need to set up a resource on your server to receive those requests. See Receive SMS API Callbacks for more information, and for a simple Node.js listener that you can create for testing. After you set up a callback listener, you can use the
POST /callbacks request on this page to tell ThingSpace to send SMS callbacks to your listener URL.
You will need a ThingSpace Develop account in order to get an API token that is required fot the Authorization: Bearer field, below. You’ll use the token with the API console on this page and in your application:
NOTE: API Tokens are valid for one hour.
Here is a suggested sequence of API requests to get you started:
POST /callbacksrequest to register your callback listener. You can use the “Default” callbackType to receive all callback messages at a single endpoint.
POST /smsrequest to send a message to a phone. The message should be received by the phone.
POST /query/deliveryStatusrequest to check on the delivery status of the message.