Mzone API User authentication - Generate authentication token via MZone API

Mzone API User authentication - Generate authentication token via MZone API

How to Generate authentication token via MZone API

This guide serves to assist the creation of an authentication token via the MZone API.

Step 1 - Create the Client secret and ID


1.1 - An agent would've created the client secret and ID which is required for the creation of the token, see steps on the article - Mzone API User authentication - Client Secret and ID setup( link below).

Step 2 - Set up API call


2.1 - Open your API testing application (Postman is being used in this example).

2.2 - Open a new tab and insert the following URL https://login.mzoneweb.net/connect/token
Note: https://login.mzoneweb.net/connect/token is for the live Mzone environment. For staging use the following URL - https://login-stg.mzoneweb.net/connect/token


2.3 - Enter client details



grant_type:                password - Grant Type
response_type:          code id token - Value to be returned
client_id:                     mz-rastreo - Client ID( as described here: Mzone API User authentication - Client Secret and ID setup)
client_secret:              gj4o^iuUP-mcJn@!9*nTw*pc - Client Secret( as described here: Mzone API User authentication - Client Secret and ID setup)
username:                   itdinasa - Mzone username where the data being queried belongs to
password:                   Dinasa@123456 - Mzone password where the data being queried belongs to

Step 3 - Copy the returned results

3.1 - After you set up and press Send, you should get the results as shown in the example below:



3.2 - Copy the highlighted values above(inside of the double quotes ") which then you can use it as a bearer authentication code as shown below:










    • Related Articles

    • MZone API - Get Mzone Inbox Notifications using API

      Get Mzone Inbox Notifications using API This guide serves to assist users to retrieve Mzone notifications using the MZone 6 API Step 1 - get MZone token 1.1 use the link below for instructions to get the authorization token: Mzone API User ...
    • Exciting News – MZone X Official Release on February 24, 2025!

      We are excited to announce the official launch of MZone X, the next-generation fleet management platform, on Monday February 24, 2025! MZone X represents the next step in fleet management innovation, offering a modernized experience with enhanced ...
    • Creating a Child User Group in MZone X : A Step-by-Step Guide

      Step 1: Logging into the MZone X Parent Group Begin by accessing the MZone X parent group using the designated credentials. This login provides you with access to the main account. -Creating a Child User Group Navigate to Configuration: After logging ...
    • Creating a Child User Group in MZone 6: A Step-by-Step Guide

      Step 1: Logging into the MZone Parent Group Begin by accessing the MZone parent group using the designated credentials. This login provides you with access to the main account. Step 2: Creating a Child User Group Navigate to Configuration: After ...
    • Understanding Roles vs. Security Groups in MZone X

      In MZone, security groups and roles control access by defining what you can view and what feature the user is able to see or edit. These settings can be applied to other Users within the same User Group. You can find these tools under >> ...