List VPP enrollments
curl --request GET \
--url https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments \
--header 'Authorization: Bearer <token>'import requests
url = "https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments"
req, _ := http.NewRequest("GET", url, 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))
}HttpResponse<String> response = Unirest.get("https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"url": "/users",
"next_cursor": "djF8ZXZ0fGE5ZjN8NjYxNjc3ODdjMTY1MmIzZmJlYmE1ZjAx",
"data": [
{
"id": "enr_7c2f1a9e4b0d8f3a6e2c5d10",
"object": "vpp_enrollment",
"live_mode": true,
"operator": {
"id": "opr_8587fa49c7e5297ccc6c57e5",
"display_name": "Pick",
"logo_url": "https://s.flatpeak.com/83b06a60e38c2.png",
"support_email": "help@pick.com"
},
"program": {
"id": "vpr_6a1f8e375db9de605baadd46",
"display_name": "Community Powershare",
"url": "https://pick.com/programs/community-powershare",
"dispatch_test_required": true,
"managed": false
},
"device_id": "dev_63a6087272941ef077a8fd3e",
"location_id": "loc_641b90b758fb8e6293716e40",
"state_data_delayed": false,
"device_meters_data_delayed": false,
"enrollment_state": "ACTIVE",
"enrollment_step": "ACTIVE",
"enrollment_state_timeline": [
{
"state": "ACTIVE",
"step": "ACTIVE",
"step_status": "COMPLETE",
"description": "Your device is dispatching.",
"time_occurred": "2026-03-05T00:00:00Z",
"time_expected": "2026-03-04T09:00:00Z",
"time_created": "2026-11-07T05:30:02Z",
"suspension_reasons": [
"DISPATCH_UNRESPONSIVE"
],
"metadata": "Device properties changed, registration update successful. Reference XM2345TYUQ."
}
],
"time_updated": "2023-11-07T05:31:56Z",
"time_created": "2023-11-07T05:31:56Z",
"account_id": "acc_661677911f2197045e6cf1b1",
"suspension_reasons": [
"TELEMETRY_STALLED"
],
"warnings": [
"TELEMETRY_STALLED"
],
"terms": {
"rewards": [
{
"basis": "FIXED",
"rate": 15,
"period": "QUARTER"
},
{
"basis": "DELIVERED_KWH",
"rate": 0.35
}
],
"opt_out_policy": "ALLOWED",
"notice_days": 30
}
}
]
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}Enrollments
List VPP enrollments
Returns a device’s VPP enrollments, most recent first, including ended ones. At most one enrollment is active at a time.
GET
/
devices
/
{device_id}
/
vpp-enrollments
List VPP enrollments
curl --request GET \
--url https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments \
--header 'Authorization: Bearer <token>'import requests
url = "https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments"
req, _ := http.NewRequest("GET", url, 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))
}HttpResponse<String> response = Unirest.get("https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://energy-api.flatpeak.com/devices/{device_id}/vpp-enrollments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"url": "/users",
"next_cursor": "djF8ZXZ0fGE5ZjN8NjYxNjc3ODdjMTY1MmIzZmJlYmE1ZjAx",
"data": [
{
"id": "enr_7c2f1a9e4b0d8f3a6e2c5d10",
"object": "vpp_enrollment",
"live_mode": true,
"operator": {
"id": "opr_8587fa49c7e5297ccc6c57e5",
"display_name": "Pick",
"logo_url": "https://s.flatpeak.com/83b06a60e38c2.png",
"support_email": "help@pick.com"
},
"program": {
"id": "vpr_6a1f8e375db9de605baadd46",
"display_name": "Community Powershare",
"url": "https://pick.com/programs/community-powershare",
"dispatch_test_required": true,
"managed": false
},
"device_id": "dev_63a6087272941ef077a8fd3e",
"location_id": "loc_641b90b758fb8e6293716e40",
"state_data_delayed": false,
"device_meters_data_delayed": false,
"enrollment_state": "ACTIVE",
"enrollment_step": "ACTIVE",
"enrollment_state_timeline": [
{
"state": "ACTIVE",
"step": "ACTIVE",
"step_status": "COMPLETE",
"description": "Your device is dispatching.",
"time_occurred": "2026-03-05T00:00:00Z",
"time_expected": "2026-03-04T09:00:00Z",
"time_created": "2026-11-07T05:30:02Z",
"suspension_reasons": [
"DISPATCH_UNRESPONSIVE"
],
"metadata": "Device properties changed, registration update successful. Reference XM2345TYUQ."
}
],
"time_updated": "2023-11-07T05:31:56Z",
"time_created": "2023-11-07T05:31:56Z",
"account_id": "acc_661677911f2197045e6cf1b1",
"suspension_reasons": [
"TELEMETRY_STALLED"
],
"warnings": [
"TELEMETRY_STALLED"
],
"terms": {
"rewards": [
{
"basis": "FIXED",
"rate": 15,
"period": "QUARTER"
},
{
"basis": "DELIVERED_KWH",
"rate": 0.35
}
],
"opt_out_policy": "ALLOWED",
"notice_days": 30
}
}
]
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "not_found",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}Query Parameters
Response
VPP enrollment list response.
Standard envelope for paginated list endpoints.
Was this page helpful?

