Completed sessions (deprecated)
Changed onDeprecated: Use GET /api/sessions/archived instead.
This endpoint is being phased out with the following timeline:
- From 2026-08-01, closed sessions older than two years are no longer returned.
- From 2027-01-01, closed sessions are removed / endpoint sunset.
Retrieves all completed charge sessions accessible by the current user, matching the provided filters.
Default page size: 50. Max: 100.
Request
- Base URLhttps://api.zaptec.com
- URLhttps://api.zaptec.com/api/chargehistory
- AuthOAuth 2PasswordToken URL: https://api.zaptec.com/oauth/token
Query parameters
0 = group by charger (default), 1 = group by calendar day, 2 = group by user.
0 = Charger
1 = Day
2 = User
Determines the detail level to return.
0 = Summary
1 = EnergyDetails
Bitflag: 0 = session summary (default), 1 = include detailed session energy data.
0 = Summary
1 = EnergyDetails
Name of the property used to sort the result.
Set to true to sort items in descending order.
Number of items to return per page.
The page index to return, first page is 0.
If true, and your user has access, include disabled objects.
Get or set a list of item Id's that will be excluded from the result.
Returns only information about pages and no data info.
Response
OK
Changes
- breaking
the
//response's property type changed fromstringtoobjectfor status (media type: application/json) - info
the endpoint scheme security
legacy_authwas removed from the API - info
added the optional property
///to the response with the status (media type: text/plain) - info
added the optional property
///to the response with the status (media type: application/json) - info
added the optional property
///to the response with the status (media type: text/json) - info
added the optional property
///to the response with the status (media type: text/plain) - info
added the optional property
///to the response with the status (media type: application/json) - info
added the optional property
///to the response with the status (media type: text/json) - info
added the optional property
///to the response with the status (media type: text/plain) - info
added the optional property
///to the response with the status (media type: application/json) - info
added the optional property
///to the response with the status (media type: text/json) - info
added the optional property
///to the response with the status (media type: text/plain) - info
added the optional property
///to the response with the status (media type: application/json) - info
added the optional property
///to the response with the status (media type: text/json) - info
added the optional property
///to the response with the status (media type: text/plain) - info
added the optional property
///to the response with the status (media type: application/json) - info
added the optional property
///to the response with the status (media type: text/json) - info
added the optional property
///to the response with the status (media type: text/plain) - info
added the optional property
///to the response with the status (media type: application/json) - info
added the optional property
///to the response with the status (media type: text/json) - info
added the optional property
to the response with the status (media type: text/plain) - info
added the optional property
to the response with the status (media type: application/json) - info
added the optional property
to the response with the status (media type: text/json)
- breaking