Get the current status of a OTP Code
Possible statuses: pending, approved, expired, rejected. This endpoint is usually polled every few seconds by the initiating device until the OTP Code is approved or expired.
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
get
GET /api/v1/users/auth/passwordless/otp/{otpCode} HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Accept: */*
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": {
"id": "5f20c0c6-87e5-41ce-b713-bcb08297416d",
"status": "New",
"approvedAt": null
},
"errors": []
}
Last updated
Was this helpful?