Skip to main content

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

HeaderRequiredDescription
WebMobileIDAuthorizationYesStatic API key assigned to your organization
OReferenceYesUUID identifying your organization

Response

{
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9..."
}
FieldTypeDescription
tokenstringJWT 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.