curl --request POST \
--url https://fleet-api.flatpeak.com/groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Bristol batteries",
"filter": {
"device_types": [
"BATTERY_STORAGE"
],
"program_id": "vpr_5c8d1f2a7b3e4d6c9a0f1b2c",
"zone_id": "zon_9b3c5d7e1f2a4b6c8d0e2f4a",
"max_response_seconds": 600
}
}
'{
"id": "grp_2f6a9c1d8e3b5a7c4d0e9f1a",
"object": "group",
"live_mode": true,
"name": "Bristol batteries",
"filter": {
"device_types": [
"BATTERY_STORAGE"
],
"program_id": "vpr_5c8d1f2a7b3e4d6c9a0f1b2c",
"zone_id": "zon_9b3c5d7e1f2a4b6c8d0e2f4a",
"min_response_seconds": null,
"max_response_seconds": 600
},
"device_count": 214,
"account_id": "acc_649d465ede6a785d2fa5f905",
"time_created": "2026-08-12T09:30:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"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": "access_denied",
"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": "access_denied",
"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": "access_denied",
"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": "access_denied",
"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": "access_denied",
"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": "access_denied",
"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": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}Groups
Create a group
Creates a group with exactly one of device_ids (explicit) or filter (dynamic). Filter groups re-evaluate membership continuously.
POST
/
groups
curl --request POST \
--url https://fleet-api.flatpeak.com/groups \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Bristol batteries",
"filter": {
"device_types": [
"BATTERY_STORAGE"
],
"program_id": "vpr_5c8d1f2a7b3e4d6c9a0f1b2c",
"zone_id": "zon_9b3c5d7e1f2a4b6c8d0e2f4a",
"max_response_seconds": 600
}
}
'{
"id": "grp_2f6a9c1d8e3b5a7c4d0e9f1a",
"object": "group",
"live_mode": true,
"name": "Bristol batteries",
"filter": {
"device_types": [
"BATTERY_STORAGE"
],
"program_id": "vpr_5c8d1f2a7b3e4d6c9a0f1b2c",
"zone_id": "zon_9b3c5d7e1f2a4b6c8d0e2f4a",
"min_response_seconds": null,
"max_response_seconds": 600
},
"device_count": 214,
"account_id": "acc_649d465ede6a785d2fa5f905",
"time_created": "2026-08-12T09:30:00Z"
}{
"object": "error",
"type": "invalid_request",
"code": "access_denied",
"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": "access_denied",
"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": "access_denied",
"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": "access_denied",
"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": "access_denied",
"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": "access_denied",
"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": "access_denied",
"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": "access_denied",
"message": "The requested resource could not be found.",
"context": "api.price_get",
"live_mode": true,
"time_created": "2026-01-01T00:00:00Z"
}Authorizations
Authenticate with the bearer_token obtained from the authentication endpoint.
Body
application/json
Group payload.
Group create payload. Provide exactly one of device_ids or filter.
Response
Group response.
A named collection of devices for bulk dispatch and aggregated reads. Membership is either an explicit device list or a filter that Flatpeak re-evaluates continuously. Read the members with list all group devices.
Was this page helpful?

