Integrate through OTP

MIRACL Trust offers an OTP API, which can be used to integrate in systems that don’t support other integration methods.

# Generating an OTP

In order to generate an OTP, the user must first authenticate either in the browser or in the mobile app.

# Browser

https://api.mpin.io/otpgen?client_id=MIRACL_TRUST_CLIENT_ID

# Mobile

# API reference

  • POST /otp - Returns the generated OTP for that user ID.
Authorization: "Basic <base64(clientId:clientSecret)>"
Payload:
{
        userId: string,
        deviceName: string
}

Response:
{
        mpinId: string,
        hashMPinId: string,
        actToken: string,
        expireTime: integer
}