GET
/
v2.0
/
user
curl "https://api.smartcar.com/v2.0/user" \
-H "Authorization: Bearer {token}" \
-X "GET"
{
    "id": "e0514ef4-5226-11e8-8c13-8f6e8f02e27e"
}   
This endpoint is under a different path while we complete the transition to v3.0. You can safely continue using this endpoint, but please be aware that it may be deprecated in the future.
This should be used as the static unique identifier for storing the access token and refresh token pair in your database. Note: A single user can own multiple vehicles, and multiple users can own the same vehicle.
When using Single Select for Connect, a single user with multiple vehicles will have a 1:1 (access_token:vehicle_id) mapping.
curl "https://api.smartcar.com/v2.0/user" \
-H "Authorization: Bearer {token}" \
-X "GET"

Response

id
string
A user ID (UUID v4).
{
    "id": "e0514ef4-5226-11e8-8c13-8f6e8f02e27e"
}