Arduino IoT Cloud API
Provides a set of endpoints to manage Arduino IoT Cloud Devices, Things, Properties and Timeseries.
Create Auth Token
This API can be called just with any HTTP Client, or using one of these clients:
Token Generation Code
You can find the code for generating tokens for compatible clients in the following sections.
Here you can find a complete guide on how to generate a token.
CLIENT LIBRARY
cURL
Python
Javascript
curl --request POST \
--url 'https://api2.arduino.cc/iot/v1/clients/token' \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'grant_type=client_credentials' \
--data 'client_id=YOUR_CLIENT_ID' \
--data 'client_secret=YOUR_SECRET_ID' \
--data 'audience=https://api2.arduino.cc/iot'
Rate Limiting
Arduino IoT APIs are rate limited, authenticated clients limit is up to 10req/s. The following code and message are returned from the Arduino servers in case of rate limit error
Status: 429 - Too Many Requests
You have reached maximum request limit.