OAuth2
Grant Type.
Authorization code that the client previously received from the authorization server. Required when grant_type is authorization_code.
The redirect URI in the token request must be an exact match of the redirect URI that was used when generating the authorization code. Required for when grant_type is authorization_code.
Refresh token that the client previously received from the authorization server. Required when grant_type is refresh_token.
Client ID used for authentication.
Client Secret used for authentication, only used in Server-Side Apps
Code verifier(PKCE), only used in Mobile and Native Apps
Only used with the combination of client_credentials grant_type and client_assertion_type
Only used with the combination of client_credentials grant_type and client_assertion
Success
Access Tokens
Date and Time in ISO8601 format example: '2018-11-06T10:20:37.094533Z'
Date and Time in ISO8601 format example: '2018-11-06T10:20:37.094533Z'
Token type
List of scopes
Refresh token should be used after the access token is expired to fetch a new access token
Expiration time in seconds
Authorization Id could be used later on in authorization_changed Webhook
Access token
In BMW and MINI case, the status is pending until the car owner grants access in BMW ConnectedDrive Portal
Error
Server Errors
POST /v1/access_tokens HTTP/1.1
Host: api.high-mobility.com
Content-Type: application/json
Accept: */*
Content-Length: 228
{
"grant_type": "authorization_code",
"code": "7672e33d-fdc0-47f0-bd17-6c1e727271f8",
"redirect_uri": "http://localhost/mycallback",
"client_id": "09ce38c6-5cd7-47b0-b271-235414e938c6",
"client_secret": "rzeVs5nnx5OCMQejjfQTjLE8Jb2ReFSU"
}{
"access_token": "81bcb5ee-3aa1-4fc6-bc54-79019af30a45",
"expires_in": 3600,
"refresh_token": "b39c3380-a8cf-48fe-ad80-d70279a4a5d6",
"scope": "diagnostics.get.mileage doors.get.locks windows.get.positions",
"status": "approved",
"token_type": "bearer"
}Access Token or Refresh Token that will be used in the revocation.
Client ID used for authentication.
Client Secret used for authentication, only used in Server-Side Apps
Token hint used to identify which type of token is inside the token property.
Success
No content
Error
Server Errors
DELETE /v1/access_tokens HTTP/1.1
Host: api.high-mobility.com
Content-Type: application/json
Accept: */*
Content-Length: 92
{
"token": "text",
"client_id": "text",
"client_secret": "text",
"token_type_hint": "refresh_token"
}No content
Bearer token
Success
Vehicle Info
VIN associated with the access token
sub associated with the access token
Error
Server Errors
GET /v1/vehicleinfo HTTP/1.1
Host: api.high-mobility.com
Authorization: 123e4567-e89b-12d3-a456-426614174000
Accept: */*
{
"vin": "VIN00000000000001",
"sub": "00000000-0000-0000-0000-000000000000"
}Last updated
Was this helpful?

