Get Token
Obtain a short-lived JWT token to authenticate subsequent API calls.
Endpoint
GET /api/organization/gettoken
https://sandbox-services.mobileid.dj/api/organization/gettoken
Headers
| Header | Required | Description |
|---|---|---|
WebMobileIDAuthorization | Yes | Static API key assigned to your organization |
OReference | Yes | UUID identifying your organization |
Response
{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
}
| Field | Type | Description |
|---|---|---|
token | string | JWT token — valid for 5 minutes |
Example Request
GET /api/organization/gettoken HTTP/1.1
Host: sandbox-services.mobileid.dj
WebMobileIDAuthorization: YOUR_WEB_MOBILEID_AUTHORIZATION_KEY
OReference: YOUR_ORGANIZATION_REFERENCE_UUID
Notes
- The token expires after 5 minutes. Request a new one as needed.
- Use the returned token as
Authorization: Bearer <token>on all subsequent API calls. - Call Remove Token to explicitly invalidate a token before its natural expiry.