Session Token with TOTP (Time-Based One-Time Password)
Generates a session token for the authenticated user, after validating their TOTP code.
This API endpoint allows users to authenticate using TOTP (Time-based One-Time Password). Upon successful validation, it generates a secure session token that permits access to the Open API for a specified period.
Endpoint
https://oapi-cug.torusdigital.com/api/v1/session/totp/generate
Header Parameters
Name
Value
Content-Type
application/json
Request Parameters
ATTRIBUTE
DESCRIPTION
API_KEY
The apiKey generated during Merchant Onboarding step for the specific merchant
TOTP
The one-time password generated by the authenticator app for this session. This code is time-sensitive and changes periodically.
Request
curl --location 'https://oapi-cug.torusdigital.com/api/v1/session/totp/generate' \
--header 'Content-Type: application/json' \
--data '{
"API_KEY": "<API_KEY>",
"TOTP": "<TOTP>"
}'
On successful TOTP validation, the API responds with a session token that allows users to access the Open API:
Response
{
"AccessToken": "<AccessToken>",
}
Last updated