Skip to main content
POST
cURL
Validate an OTPless auth token and retrieve device fingerprint data in a single backend call. Call this after the OTPless SDK returns an auth token; the response includes both authentication details and device fingerprint data.
Device fingerprinting mode. The OTPless SDK supports two modes, ASYNC and SYNC, configured by your native developer at the SDK level. Both modes use this same endpoint; only the timing of when the token is available to your app differs.

Integration flows

Both modes call this same endpoint. The difference is only in when the SDK returns the auth token to your app.

ASYNC mode

Authentication and device fingerprinting run concurrently. The SDK returns the auth token as soon as authentication completes, without waiting for fingerprinting to finish. The fingerprint result is attached by the OTPless backend when your backend calls validate token.

SYNC mode

The SDK returns the auth token only after both authentication and device fingerprinting have completed. This guarantees fingerprint data is always available when your backend calls validate token.
PENDING and TIMEOUT can only occur in ASYNC mode, where the SDK returns the auth token before fingerprinting completes. In SYNC mode, the SDK waits for fingerprinting to finish, so the status is always SUCCESS or FAILED.

Authorizations

clientId
string
header
required

The clientId used for API authentication.

clientSecret
string
header
required

The clientSecret used for API authentication.

Body

application/json

Payload containing the auth token received from the OTPless SDK.

token
string
required

The auth token received from the OTPless SDK.

Response

Authentication completed. Check deviceFingerprinting.status for the fingerprint result.

token
string

The auth token passed in the request.

status
string

SUCCESS when authentication passed.

Example:

"SUCCESS"

userId
string

Unique user identifier assigned by OTPless.

timestamp
string<date-time>

ISO 8601 timestamp of the authentication event.

identities
object[]
deviceFingerprinting
object

Device fingerprint result. Present when Device Fingerprinting is enabled.