April 13, 2022

Smartcar’s webhooks now have beta support for sending events in response to events that are generated by the vehicle itself. The initial release supports the following events on Ford, Tesla, and Toyota vehicles in Canada, the United States, and our supported European countries:

  • CHARGING_STARTED
  • CHARGING_STOPPED
  • CHARGING_COMPLETED Webhook events sent in response to vehicle events can be distinguished from schedule events based on the eventName property of the POST body. For example, the POST body for event based webhooks will have the following structure:
{
  "version": "2.0",
  "webhookId": "uuid",
  "eventName": "eventBased",
  "mode": "test|live",
  "payload": {
    "eventId": "uuid",
    "vehicleId": "uuid",
    "eventType": "CHARGING_STARTED|CHARGING_STOPPED|CHARGING_COMPLETED",
    "eventTime": "ISO8601 Datetime"
  }
}