Skip to main content

Authenticate from Web

Trigger a mobile authentication request for a user identified by their NNI (Numéro National d'Identité). The user receives a push notification on their MobileID app to confirm or reject the request.

Endpoint

POST /api/organization/authenticatefromweb
https://sandbox-services.mobileid.dj/api/organization/authenticatefromweb

Headers

HeaderRequiredDescription
AuthorizationYesBearer YOUR_JWT_TOKEN

Query Parameters

ParameterTypeRequiredDescription
client_idstringYesNNI of the user to authenticate

Response

{
"ref": "<encrypted_reference_token>"
}
FieldTypeDescription
refstringReference token — use with Check Status to poll the result

Example Request

POST /api/organization/authenticatefromweb?client_id=YOUR_CLIENT_NIN HTTP/1.1
Host: sandbox-services.mobileid.dj
Authorization: Bearer YOUR_JWT_TOKEN

Notes

  • The user must have the MobileID app installed and registered.
  • Poll Check Status until you receive a terminal status (approved, rejected, or expired).