Fleet Clearance

By using the Fleet Clearance API endpoints, it's possible for fleet operators to activate and deactivate data access to their vehicles. The raw Swagger specification is available at https://github.com/highmobility/open-api-specifications/blob/main/hm-fleet-clearance-v1.yml

Get all clearances

get
/v1/fleets/vehicles

Get the status of VINs that have previously been registered for data access clearance.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : fleet clearance
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Query parameters
filterobjectOptional

URL Encoded JSON

Example: {"summary":"Filter by VIN - Equality","value":{"vin":{"operator":"eq","value":"EXVETESTVIN000001"}}}
Responses
chevron-right
200

Success

application/json
vinstringRequired

Vehicle Identification Number (VIN)

statusstring · enumRequiredPossible values:
brandstring · enumOptionalPossible values:
get
/v1/fleets/vehicles

Create a clearance

post
/v1/fleets/vehicles
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : fleet clearance
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Body
Responses
chevron-right
200

Success

application/json
post
/v1/fleets/vehicles

Get clearance for a vin

get
/v1/fleets/vehicles/{vin}

Get the status of a VIN that has previously been registered for data access clearance.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : fleet clearance
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
vinstringRequired

VIN of the vehicle in question.

Responses
chevron-right
200

Success

application/json
vinstringRequired

Vehicle Identification Number (VIN)

statusstring · enumRequiredPossible values:
brandstring · enumOptionalPossible values:
get
/v1/fleets/vehicles/{vin}

Delete clearance

delete
/v1/fleets/vehicles/{vin}

Delete the clearance for the given VIN. If the vehicle is in approved state, a revoke is performed. If the clearance is in pending state, the activation process is canceled. The cancelation is currently supported for Mercedes-Benz, Volkswagen, Audi, Skoda, SEAT, CUPRA and the Stellantis brands.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : fleet clearance
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
vinstringRequired

VIN of the vehicle in question.

Responses
chevron-right
200

Success

application/json
vinstringRequired

Vehicle Identification Number (VIN)

statusstring · enumRequiredPossible values:
delete
/v1/fleets/vehicles/{vin}
Deprecated

Cancel clearance

post
/v1/fleets/{vin}/cancel_activation

Deprecated: use DELETE /v1/fleet/vehicles/{vin} end point instead

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : fleet clearance
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
vinstringRequired

VIN of the vehicle in question.

Header parameters
AuthorizationstringRequired

Bearer token

Responses
chevron-right
200Success
application/json
vinstringRequired

Vehicle Identification Number (VIN)

statusstring · enumRequired

An access token can be retrieved for the FleetVin if the status is "approved"

Possible values:
descriptionstringOptional

Optional description of the VIN

post
/v1/fleets/{vin}/cancel_activation
Deprecated

Get access token

post
/v1/fleets/access_tokens

Creates an access token for a VIN that has the "approved" state. This access token can be used to retrieve car data through any of the SDKs or the REST API.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
  • : fleet clearance
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Responses
chevron-right
200

Success

application/json

Access Tokens

validity_start_datestringOptional

Date and Time in ISO8601 format example: '2018-11-06T10:20:37.094533Z'

validity_end_datestringOptional

Date and Time in ISO8601 format example: '2018-11-06T10:20:37.094533Z'

token_typestringRequired

Token type

scopestringOptional

List of scopes

refresh_tokenstringOptional

Refresh token

expires_inintegerRequired

Expiration time in seconds

access_tokenstringRequired

Access token

post
/v1/fleets/access_tokens

Last updated

Was this helpful?