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
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer YOUR_JWT_TOKEN |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
client_id | string | Yes | NNI of the user to authenticate |
Response
{
"ref": "<encrypted_reference_token>"
}
| Field | Type | Description |
|---|---|---|
ref | string | Reference 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, orexpired).