Webhooks
Subscribe
Subscribe a vehicle to a webhook.
POST
/v2.0/vehicles/{id}/webhooks/{webhook_id}
Request
Path
idrequired
string
The vehicle id of the vehicle you are making a request to.
webhook_id
string
The webhook id you are subscribing the vehicle to.
curl "https://api.smartcar.com/v2.0/vehicles/{vehicleId}/webhooks/{webhook_id}" \
-H "Authorization: Bearer {access_token}" \
-X "POST"
curl "https://api.smartcar.com/v2.0/vehicles/{vehicleId}/webhooks/{webhookId}" \
-H "Authorization: Bearer {token}" \
-X "POST"
Response
vehicleId
string
The vehicle id of the vehicle you are making a request to.
webhookId
string
The webhook id you are subscribing the vehicle to.
{
"vehicleId": "dc6ea99e-57d1-4e41-b129-27e7eb58713e",
"webhookId": "9b6ae692-60cc-4b3e-89d8-71e7549cf805"
}
curl "https://api.smartcar.com/v2.0/vehicles/{vehicleId}/webhooks/{webhook_id}" \
-H "Authorization: Bearer {access_token}" \
-X "POST"
{
"vehicleId": "dc6ea99e-57d1-4e41-b129-27e7eb58713e",
"webhookId": "9b6ae692-60cc-4b3e-89d8-71e7549cf805"
}