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": "a3c4b9f1-f158-4be2-a59a-67313962e9c6",
"status": "New",
"approvedAt": null
},
"errors": []
}
Last updated
Was this helpful?