POST
/
vehicles
/
{id}
/
{make}
/
security
/
trunk
curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/security/trunk" \
-H "Authorization: Bearer {token}" \
-X "POST" \
-H "Content-Type: application/json" \
-d '{"action" : "OPEN"}'
    {
        "message": "Successfully sent request to vehicle",
        "status": "success"
    }   
This endpoint is currently available for tesla

Permission

control_trunk

Request

Path
id
string
required
The vehicle ID of the vehicle you are making a request to.
make
string
required
The make of the vehicle you are making a request to.
Body
action
string
required
Indicate whether to open or close the charge port door. Options: OPEN or CLOSE
curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/security/trunk" \
-H "Authorization: Bearer {token}" \
-X "POST" \
-H "Content-Type: application/json" \
-d '{"action" : "OPEN"}'

Response

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