Quickstart
Read a sandbox battery and send it a charge command.
How it works
- Link. Your end user connects their device account through Link UI, a hosted page. You never handle their manufacturer credentials.
- Read. Pull the device’s state, for example
GET /battery/{deviceId}. - Control. Push a command. The API returns
202and runs it asynchronously. - Confirm. Get the result from a webhook or
GET /actions/{id}.
Device types
What a device accepts depends on its manufacturer. Each device lists the commands and settings it accepts. See Capabilities.
Sandbox and live
Both usehttps://api.amps.ai. Your API key decides which one you reach: sk_test_ for simulated sandbox devices, sk_live_ for real ones. See Authentication.
Next steps
Quickstart
Make your first read and command in sandbox.
Authentication
Get an API key and pick an environment.
Link UI
Let end users connect their devices.
API Reference
Every endpoint, request, and response.