cURL
curl --request GET \ --url https://api.energy-hub.io/v1.0.0/users/{userId}/vehicles/{vehicleId}/commands \ --header 'X-API-KEY: <api-key>'
[ { "createdAt": "2023-11-07T05:31:56Z", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "state": "PENDING", "type": "CHARGING_START", "userId": "896f9d5a-b618-48a2-98ae-957059bf1bc9", "deviceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } ]
Returns pending commands for vehicle
API key used for authorization and authentication.
User ID
Vehicle ID
Successful operation
The response is of type object[].
object[]