QR Code to show during a control

When the employee is controlled, he must show a QR Code generated by Mobilic API

API REST

POST /control/generate-user-read-token
Content-Type: application/json

{}

Authentification

In order to use this API, you must be authenticated : Authentification.

The generated QR Code will be associated to the authenticated user. The controller will have access to this user's data.

Response

If successful, this API will return two fields in JSON format:

{
    "controlToken":"frefr5e6f45614564yhFRFDSFS.tGDGDFgDFGd4g565dg65dgdGDGDFGD.eZFEZfdsQY-c646s",
    "token":"46sE-itIeK39_fre6f456e44641n65yh4ngn"
}

QR Code construction with response data

The string that has to be put in QR code format can be constructed this way:

https://mobilic.beta.gouv.fr/control/user-history?token=retrieved_token&ts=current_timestamp&controlToken=retrieved_control_token

Last updated