POST
/
vehicles
/
{id}
/
{make}
/
pin
curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/pin" \
-H "Authorization: Bearer {token}" \
-X "POST" \
-H "Content-Type: application/json" \
-d '{"pin" : "1234"}'
    {
        "message": "Successfully sent request to vehicle",
        "status": "success"
    }   

This endpoint is currently available for tesla

Permission

control_pin

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

pin
string
required

A four digit numeric PIN

curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/pin" \
-H "Authorization: Bearer {token}" \
-X "POST" \
-H "Content-Type: application/json" \
-d '{"pin" : "1234"}'

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"
    }   

Notes

  • Calling this endpoint will override an existing PIN on the vehicle.
  • Call DELETE PIN to Drive in order to enable this feature and set the PIN
  • Currently both owner and driver account types can set a PIN for the vehicle and enable the feature via the API.
  • Only account owners can disable this feature from the Tesla app.

Was this page helpful?