Skip to main content
GET
/
api
/
v3
/
sites
/
{site_uuid}
/
power-history
Get power history
curl --request GET \
  --url https://app.plugchoice.com/api/v3/sites/{site_uuid}/power-history \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "connector",
  "entity_id": 16,
  "connector_id": 16,
  "from": "2026-01-10T01:14:33",
  "to": "2052-02-03"
}
'
{}

Authorizations

Authorization
string
header
required

See the documentation for more information.

Path Parameters

site_uuid
string
required

Query Parameters

type
string
required

History type: "branch" or "connector"

Example:

"branch"

entity_id
integer
required

Entity ID (site_group_id for branch, charger_id for connector)

Example:

1

connector_id
integer

Connector ID (required for connector type)

Example:

1

from
string

Start timestamp (ISO 8601)

Example:

"2024-01-01T00:00:00Z"

to
string

End timestamp (ISO 8601)

Example:

"2024-01-02T00:00:00Z"

Body

application/json
type
enum<string>
required
Available options:
branch,
connector
Example:

"connector"

entity_id
integer
required
Example:

16

connector_id
integer | null

This field is required when type is connector.

Example:

16

from
string

Must be a valid date.

Example:

"2026-01-10T01:14:33"

to
string

Must be a valid date. Must be a date after or equal to from.

Example:

"2052-02-03"

Response

object | null

Power history data

The response is of type object.