Approve a OTP Code

Approve an OTP Code pairing request.

post

This endpoint is called by the target device after receiving the OTP code generated by POST api/v1/users/auth/passwordless/otp/generate. Once approved, the OTP Code's status changes to "Approved".

Path parameters
otpCodestringRequired

The OTP code value.

Header parameters
Brand-URLstringRequired

The brand URL of the request. This is used to identify the brand.

Example: YOUR_BRAND_URL
Responses
200

The request was successful.

application/json
post
POST /api/v1/users/auth/passwordless/otp/{otpCode}/approve HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Accept: */*
{
  "success": true,
  "statusCode": 200,
  "message": "The request was successful.",
  "data": {
    "id": "9670de27-f236-4d04-91e5-fd8dd135aeef",
    "status": "New",
    "approvedAt": null
  },
  "errors": []
}

Last updated

Was this helpful?