Use the HumanDetect API to verify tokens generated by the HumanDetect SDK. What does HumanDetect do? Read the overview.
HumanDetect tokens are generated by the SDK for both humans and bots, so all tokens need to be passed to the API to determine the outcome.
Verify a HumanDetect token
Use this endpoint to verify a token generated by the HumanDetect SDK.
Request body format:
The token generated by the HumanDetect SDK
200 The token has been successfully verified by UnifyID. Returns an instance of VerifyTokenResponse.
badRequest type error may be returned when the token is missing or incorrectly formed. Returns an instance of Error.
Successful Token Verification
VerifyTokenResponse object represents a successful verification of a HumanDetect token.
|valid||boolean||Indicates human (true) or bot (false).|
|identifier||string||The identifer provided to the SDK during token generation.|
Timestamp of when the token was created, as determined by the device.
|checksum||string||A checksum representing the data collected by the device.|
|version||integer||Token version, currently always 1.|
Errors returned by the API follow a consistent structure.
A code representing the type of error encountered.
|message||string||Human readable value providing more detail about the error.|