POST
/
v2.0
/
vehicles
/
{id}
/
security
curl "https://api.smartcar.com/v2.0/vehicles/{id}/security" \
    -H "Authorization: Bearer {token}" \
    -X "POST" \
    -H "Content-Type: application/json" \
    -d '{"action": "LOCK"}'
{
    "message": "Successfully sent request to vehicle",
    "status": "success"
}
2.0 is still the only supported version for sending remote commands. If you need to send commands, please continue using v2.0 until commands are supported in the latest version later this year.

Permission

control_security

Request

Path
id
string
required
The vehicle ID of the vehicle you are making a request to.
Body
action
string
required
LOCK or UNLOCK the vehicle’s doors.
curl "https://api.smartcar.com/v2.0/vehicles/{id}/security" \
    -H "Authorization: Bearer {token}" \
    -X "POST" \
    -H "Content-Type: application/json" \
    -d '{"action": "LOCK"}'

Response

status
string
If the request is successful, Smartcar will return “success” (HTTP 200 status).
message
string
If the request is successful, Smartcar will return a message (HTTP 200 status).
{
    "message": "Successfully sent request to vehicle",
    "status": "success"
}