Skip to content

User di_hash lookup API

This API retrieves the di_hash value of a user who has successfully completed adult verification.

Request information

Item Description
Production URL https://adult-auth.qpyou.cn/external/auth/di_hash
Sandbox URL https://sandbox-adult-auth.qpyou.cn/external/auth/di_hash
HTTP Method POST
Data Format JSON

HTTP header

Item Description
Content-Type application/json;charset=utf-8
Authorization Bearer
Bearer token location Corresponds to the Hive authentication key in [App Center > Project Management > Game List - Select your company game > Game details > Basic information].

Request body

Name Type Required (Mandatory: M, Optional: O) Description
gameindex Integer M App Center game index
user_id String M Hive account information

Response elements

Name Type Required (Mandatory: M, Optional: O) Description
result_code Integer M Response code
result_msg String M Result message for the response code
user_id String O Hive account information
di_hash String O di_hash
verified_at String O Time of adult verification

Example of retrieving di_hash for an adult-verified user

Request

To retrieve the di_hash of a user who completed adult verification, include gameindex and user_id in the request.

curl -L -v \
 -d '{"gameindex" : 539, "user_id": "30000056996"}' \
 -H "Content-Type: application/json" \
 -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJIaXZlIiwiaWF0IjoxNjAyMDU2NzI2LCJqdGkiOiIxODczMTExMzIwIn0.3soFiHTPlObCoqR5xX9ZeOQTSvnHrHDHWmopP3QfWtY" \
 https://sandbox-adult-auth.qpyou.cn/external/auth/di_hash

Response

{
  "result_code": 0,
  "result_msg": "Success",
  "user_id": "30000056996",
  "di_hash": "0c7b9088fc80db0532e599ee444b176fb6dfeb035767f98cf960eb59777f04ce",
  "verified_at": "2026-04-27 15:35:03"
}

Response codes (API server)

Code Description Message
0 Success Success
201 Empty request Request parameters are missing.
202 Invalid request parameter Request parameters are invalid.
209 Header authentication failed The authentication information does not match. Please check the information you entered again.