URL

https://verify.safeid.io/api/v1.0/oath/sync

Input Parameters

clientId
non/aClient ID of your account provided by the service provider
apiKey
non/aAPI Key of your account provided by the service provider
tsn
non/aThe serial number of the token to be verified
otp1
non/a1st one-time passcode 
otp2
non/a2nd one-time passcode The 1st and 2nd OTP should be consecutive
ParamValuesOptionalDefault ValueRemarksExample

Remarks

This command should be posted, and its body should be a JSON object containing all of above parameters, e.g.

{ "clientId" : "xxxxxxx", "apiKey": "*******************", "tsn": "nnnnnnnn", "otp1": "nnnnnn", "otp2": "nnnnnn" }

Output Result

The output of this api function is a JSON object containing the following key/value pairs:

  1. error: the error code of the result. 0 means success, others mean failure
  2. message: the description of the error

Examples

Example

POST: https://verify.safeid.io/api/v1.0/oath/sync

BODY: { "clientId" : "438929220", "apiKey": "XS91cLX5_Gt7-n_TdzR4.t_8t.C-7b6-", "tsn": "90002109", "otp1": "657159", "otp2": "006977" }

Result: {"error":0,"message":"OK"}


  • No labels