API REST - One Time Password (OTP) API
OpenAPI Specifications:
You can find all the documentation and specifications under the OpenAPI standard in our developer portal: https://dev.danaconnect.com.
API REST – One Time Password (OTP) API
The REST API is a service for generating OTP codes for multi-factor authentication.
The one-time password generation process has two parts:
OTP Code Generation – Send Service
The code is generated and sent through the various channels of the DANAConnect platform. It is possible to generate two types of codes: numeric and alphanumeric.
OTP Code Verification – Verify Service
This is a one-time use code with expiration, depending on the expiration time configured at the time of generation. By default, the user can enter the wrong code 5 times; after that, the code is disabled.
Base URL:
All URLs related to this API have the following base:
Protocol: HTTP
URL: https://api.danaconnect.com/otp/1.0/
API Authentication
The API uses the same credential system as DANAConnect users.
Authentication is done using HTTP BASIC AUTH, which is based on a login and password.
Credentials:
- Login: The login consists of the DANAConnect username concatenated with an @ and followed by the company code (IDCompany) in DANAConnect.
- Password: This corresponds to the user in DANAConnect.
Example of Request:
```json
{
"idRequest": 251,
"otp": "Rf24sG"
}
###Example of Response:
{
"idRequest": 251,
"responseCode": "01",
"responseDescription": "Success",
"conversationRequestId": "87a9ab9b-5abf-4802-abfa-e7b891d2a042"
}
Updated on: 09/03/2024
Thank you!