MQTT V2
Use the Enterprise MQTT broker to subscribe and stream live vehicle data updates over MQTT
The Enterprise MQTT broker enables you to subscribe to vehicle data updates and get them pushed to your application using the MQTT protocol.
Topic and message structure
All messages that are published into single topics.
Here's an example of the JSON that would be sent for the odometer, coordinates and altitude data:
Topic: live/level13/00000000-0000-0000-0000-000000000000
{
"version": 2,
"application_id": "00000000-0000-0000-0000-000000000000",
"message_id": "4F02FFB01650060FA8888E5C3ED46FF2A0E4A49EACF1A92E264CD0C137971B28",
"vin": "EXV10000000",
"data": {
"diagnostics": {
"odometer": [
{
"data": {
"unit": "kilometers",
"value": 19201.01
}
}
]
},
"vehicle_location": {
"altitude": [
{
"data": {
"unit": "meters",
"value": 63
},
"timestamp": "2025-08-12T16:07:48.000Z"
}
],
"coordinates": [
{
"data": {
"latitude": 11.572,
"longitude": 8.487
},
"timestamp": "2025-08-12T16:07:48.000Z"
}
]
}
}
}Message
Here is the JSON format that is used for every message that is published. All data objects, that hold the specific car data payload, are formatted according to the Streaming Schema V2
Authentication
Head to your project's "API Credentials"->"Streaming" section. Select "MQTT V2(Enterprise)" and click the "Save and update" button.

After that you are able to download certificate via "Add MQTT V2 Client Certificate" section.
Connect
The file you downloaded in the previous step also includes a file called snippet.txt, which contains the required options to run an MQTT client from the terminal using mosquitto_sub.
You may use any MQTT client software or library you prefer. When connecting. Do not omit any of the suggested options; otherwise, your mqtt client may miss some vehicle data.
The following example shows how mosquitto_sub is used to both connect and subscribe to all messages:
The following parameters are needed for the connection:
--cafile,--cert,--keywhich you can find in the zip file.-qos: Set the QoSto 1 in order to guarantee that a message is delivered at least once.-V: Set the MQTT version to 5. While our broker support MQTT 3, we highly recommend to use version 5.--id: Client ID. Please use your<application-id>-<sandbox/live>-<with some random id>as suffix.--disable-clean-session: This option is needed to queue your data in the broker when your mqtt client is down. Please refer to rest the doc about the max queue size.--topic: the topic include share group name$share/879577a3-b25f-4a28-8c0e-7effcc7682a2and the topic we want to subscribe tosandbox/level13/879577a3-b25f-4a28-8c0e-7effcc7682a2/#. You can read more about shared subscription at here.
Subscribe
Once you have connected, go ahead and subscribe to any topic path that matches your application id. Here are a few common use-cases:
To subscribe to all data updates, pass in
live/level13/{application_id}. Replacelivewithsandboxif you are working with the simulator.Use MQTT shared subscriptions to distribute messages across multiple consumers and speed up data ingestion.
With a shared subscription, messages are load-balanced between consumers in the same group, increasing overall throughput.
The shared subscription group has a queue size of 500,000 messages (as opposed to 10,000 messages for a non-shared subscription).
You will now get vehicle data delivered to you for all vehicles that have approved access grants. To receive an access grant, have a look at the Fleet Clearance guide depending on your specific application.
Last updated
Was this helpful?

