Quickstart
Use this guide to make an authenticated API request in a few minutes. If you are integrating a physical device or building an Android control app, use the AWS IoT Core or Android SDK path below.
Before you begin
Section titled “Before you begin”You need a TAMsys API key associated with your company. Request one from TAMsys support and keep it in a secret manager or server-side environment variable.
-
Set your API key
Store the key in your shell for the current session:
Terminal window export TAMSYS_API_KEY='replace-with-your-api-key' -
List your devices
Terminal window curl --request GET \--url 'https://api.tamsys.app/p/devices/list' \--header "X-API-KEY: ${TAMSYS_API_KEY}" -
Read the latest telemetry
Replace
DEVICE_IDwith anidreturned by the previous request:Terminal window curl --request GET \--url 'https://api.tamsys.app/p/devices/DEVICE_ID/data' \--header "X-API-KEY: ${TAMSYS_API_KEY}" -
Handle the response
A successful request returns JSON with a
200status. A device without an available reading, or one that is not assigned to your company, returns404.
