Skip to main content

Authorization

Every request needs an auth token, obtained with your application ID and API key.

Get an auth token​

GET/authorization No authentication

Exchanges your application ID and API key for an auth token (JWT). Send it as Authorization: Bearer <AUTH_TOKEN> in every other request. Tokens last 30 minutes by default.

Mobbeel provides two kinds of API key:

  • API role — for server-to-server calls from your backend. This is the key you use with this API.
  • SDK role — for the tokens your backend hands to the mobile and web SDKs. They only allow biometric operations.

Keep the API key on the server. Never ship it in an app or a web page: request tokens from your backend.

Headers

  • applicationIdstring· uuidRequired

    Your application ID.

  • apiKeystring· uuidRequired

    Your API key.

Response200 · application/json

  • authTokenstringRequired

    JWT to send as Authorization: Bearer <AUTH_TOKEN> in the following requests.

Status codes

  • 200Token issued.
  • 400Missing or invalid parameters.
  • 401Invalid or expired licence. LICENSE_NOT_VALID.
  • 403Invalid API key. API_KEY_NOT_VALID.
  • 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X GET 'https://{SERVER-URL}/api/v7/authorization' \
-H 'applicationId: <applicationId>' \
-H 'apiKey: <apiKey>'
Responses
200OKapplication/json
{
"authToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjEifQ…"
}

Get the public keys (JWKS)​

GET/.well-known/jwks.json No authentication

Returns the public keys that sign MobbID tokens, as a JSON Web Key Set. Use them to validate a token locally, matching its kid header.

Response200 · application/json

  • keysobject[]Required

    Public keys that sign the tokens.

Status codes

  • 200Public keys.
  • 429Too many requests: the caller's IP is temporarily or permanently blocked.
curl -X GET 'https://{SERVER-URL}/api/v7/.well-known/jwks.json'
Responses
200OKapplication/json
{
"keys": [
{
"kty": "RSA",
"kid": "mobbid-2026-1",
"use": "sig",
"alg": "RS256",
"n": "0vx7agoebGcQSuuPiLJXZptN9nndrQmbXEps2aiAFbWhM78LhWx4…",
"e": "AQAB"
}
]
}