Quickstart
Get up and running with the Polaris API in minutes.
Before making requests you'll need an API token. Find it in the Polaris dashboard under Settings → API Tokens.
Make your first request
GET/v1/devices
- cURL
- JavaScript
- Go
- PHP
curl -G https://polaris.revlv.com/v1/devices \
-H "Authorization: Bearer {token}" \
-d pageSize=50
const res = await fetch('https://polaris.revlv.com/v1/devices?pageSize=50', {
headers: {
'Authorization': 'Bearer {token}',
},
});
const { data } = await res.json();
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://polaris.revlv.com/v1/devices?pageSize=50", nil)
req.Header.Add("Authorization", "Bearer {token}")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
$client = new \GuzzleHttp\Client();
$response = $client->get('https://polaris.revlv.com/v1/devices', [
'headers' => [
'Authorization' => 'Bearer {token}',
],
'query' => ['pageSize' => 50],
]);
echo $response->getBody();
What's next?
- Authentication — how tokens work
- Devices — list gateways, access points, and switches
- Telemetry — throughput, latency, and signal data
- Errors — understand error responses