Added

Implement the vehicles.added webhook to know when a vehicle object is added.

A new vehicle object is added when a new account object is created and scanned or after additional vehicles are found during a periodic scan.

Event

vehicles.added

Payload


account string uuid

ID of the account the vehicle was added for.


user string uuid

ID of the user the account belongs to.


vehicle string uuid

ID of the vehicle that was added.


Examples

curl -X POST https://api.argyle.com/v1/webhooks \
  -u api_key_id:api_key_secret \
  -H "Content-Type: application/json" \
  -d '{"events": ["vehicles.added"],
       "secret": "<secret for signature verification>",
         "name": "vehicles.added",
          "url": "https://webhook.site/url"}'
{
  "event": "vehicles.added",
  "name": "A vehicle was added",
  "data": {
    "account": "ada143be-3c90-4534-b7ea-9899674dc6e0",
    "user": "3823026e-a964-45f6-b201-6b8c096b30d3",
    "vehicle": "4334r6e-a964-45eef6-b201-64464"
  }
}