Skip to content

Get Soft OTP Status ​

Returns the current SmartOTP status of a user's device.

Endpoint ​

http
POST /api/v1/saas-sotp/get-status
Content-Type: application/json
json
{
  "partner_id": "{{partner_id}}",
  "partner_key": "{{partner_key}}",
  "token": "{{token}}"
}

Parameters:

ParamTypeRequiredDefaultDescription
partner_idstringYes—The partner id.
partner_keystringYes—The partner key.
tokenstringYes—The registration token generated by Register.

Returns: GetStatusResponse

Sample Request ​

bash
curl --location --request POST '<BASE_URL>/saas-sotp/get-status' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "partner_id": "{{partner_id}}",
    "partner_key": "{{partner_key}}",
    "token": "{{token}}"
  }'

Response ​

json
{
  "success": true,
  "code": 1,
  "message": "success",
  "data": {
    "status": "ACTIVATED"
  }
}
FieldTypeDescription
successboolRequest status.
codeintThe status code — 1 on success.
data.statusstringThe user's soft OTP status: NON_ACTIVATED, ACTIVATED or TEMPORARY_BLOCKED.

Status values ​

FieldTypeDescription
NON_ACTIVATEDstringRegistered but not yet activated, or never registered.
ACTIVATEDstringSmartOTP is live on this device and can generate codes.
TEMPORARY_BLOCKEDstringTemporarily blocked, typically after repeated failed validations.

Errors ​

CodeMessage
103Thông tin Partner không chính xác — Partner details are incorrect.
190005SmartOTP đang kích hoạt trên một thiết bị khác — SmartOTP is active on another device.

190005 means the user has SmartOTP on a different device. Call Retire on the old device before registering the new one.

Next Steps ​

  • Register — register a device reporting NON_ACTIVATED
  • Retire — release an activation held on another device

Developers