Generate a new OTP code
Similar to QR Code pairing but uses a numeric or alphanumeric code instead. The OTP Code should have a short TTL (e.g., 60 seconds).
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/generate HTTP/1.1
Host: protocol.jframework.io
Brand-URL: text
Accept: */*
{
"success": true,
"statusCode": 200,
"message": "The request was successful.",
"data": {
"code": "123456",
"id": "c96b0310-9583-484f-82e7-3c5850130913",
"status": "New",
"approvedAt": null
},
"errors": []
}
Last updated
Was this helpful?