Approve a OTP Code
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-URLstringRequiredExample:
The brand URL of the request. This is used to identify the brand.
YOUR_BRAND_URL
Responses
200
The request was successful.
application/json
429
API call exceeded rate limit due to too many requests.
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?