Menu

Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

REST API Documentation

In addition to the IoT Device Manager in Developer Console, the REST API allows you to manage the deployed devices programmatically, from your own backend. Using the IoT Device Manager REST API, you can provision new devices, change their configuration, group them into fleets and deployments, add certificates and keys for their authentication.

API Base URL

In Developer Preview phase of Sync for IoT, all URLs in the reference documentation use the following base URL:

https://preview.twilio.com/DeployedDevices/

All requests to the IoT Device Manager REST API are served over HTTPS. Unencrypted HTTP is not supported.

Authentication

HTTP requests to the REST API are protected with HTTP Basic authentication like other REST APIs provided by Twilio. To learn more about how Twilio handles authentication, please refer to our security documentation. In short, you will use your Twilio account SID as the username and your auth token as the password for HTTP Basic authentication.

curl -G https://preview.twilio.com/DeployedDevices/Fleets \
    -u '[YOUR ACCOUNT SID]:[YOUR AUTH TOKEN]'

You can find your account SID and auth token in the admin console. Alternately, you can also use API keys and secrets to authenticate REST API requests - you can manage API key pairs in the console also.

Twilio Helper Libraries

You can use the Twilio Server-Side SDKs to interact with the IoT Device Manager REST resources.

Sync for IoT features are available in all stable builds of the Twilio Helper Libraries for C#, Java, Node.js, PHP, Python, Ruby.

REST Resources

Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.