API Based Workflow
The API-based workflow is a two-step process:Generate OTP
Generate OTP for users using the Generate OTP endpoint. Users will obtain a One Time Password (OTP) on their registered email address with a validity of 10 minutes.
| HTTP Method | Resource | Description |
|---|---|---|
| GET | {{your_oauth_app_authenticate}}/otp?username={username} | API accepts username and sends OTP to registered email. |
Step 2
After obtaining theaccess_token, use it for all subsequent requests to access protected resources.
Additional Information
- The OTP is valid for 10 minutes.
- Ensure to handle errors appropriately, such as invalid OTP or expired OTP.