Download OpenAPI specification:Download
This REST API is a service to generate OTP codes for single-use multi-factor keys. The one-time key generation process has two parts, generation and verification:
username
and password
in the DANAConnect platform.conversationID
) for this flow.conversationID
)?For most DANAConnect API requests, you will need to send the Conversation ID as a parameter.
This conversation ID refers to the number assigned to the activation of the flow and can be found by logging into the DANAConnect platform and looking in the activation report for the conversation you need to refer to.
It is important to mention that every time a conversation is reactivated, a new Conversation ID will be generated.
Here is a video explaining how to find the conversation ID:
The API uses the same user credential system that is used to enter the DANAConnect platform.
The method used for all DANAConnect APIs is HTTP BASIC AUTH, which is based on login and password authentication.
Login: The login consists of the username concatenated with an @ and followed by the company code.
Login example:
Security Scheme Type | HTTP |
---|---|
HTTP Authorization Scheme | basic |
This service generates the requested One Time Password Code
JSON with the data required to generate the OTP code
idConversation required | integer <int32> >= 1 Conversation id | ||||||
type required | integer <int32> [ 1 .. 2 ] Enum: 1 2 OTP code type
| ||||||
length required | integer <int32> [ 3 .. 12 ] Number of characters that the OTP code contains | ||||||
secondsExpiration required | integer <int32> [ 1 .. 3200 ] Time in seconds until the OTP code expires | ||||||
maximumTries | integer <int32> Default: 5 Maximum number of failed attempts allowed by the end user. Default is 5 | ||||||
Array of objects (Values) |
Request an OTP code
{- "idConversation": 824541,
- "values": [
- {
- "key": "COD1_EMAIL",
- "value": "test@danaconnect.com"
}, - {
- "key": "COD1_NAME",
- "value": "Test DANAConnect"
}
], - "type": 1,
- "length": 12,
- "secondsExpiration": 3000,
- "maximumTries": 5
}
Successful request result
{- "idRequest": 251,
- "responseCode": "01",
- "responseDescription": "Success",
- "conversationRequestId": "87a9ab9b-5abf-4802-abfa-e7b891d2a042"
}
This service verifies an OTP code previously generated
JSON with the data required to validate the OTP code
idRequest required | integer <int32> >= 1 OTP Request ID, given in the response of a past OTP request |
otp required | string non-empty OTP code |
Validates an OTP code
{- "idRequest": 251,
- "otp": "Rf24sG"
}
Successful verification result
{- "idRequest": 251,
- "responseCode": "01",
- "responseDescription": "Success"
}