Query GDPR Information

Query the GDPR policy version and confirmation status.

Request URL

GET {base_url}/{api_path}/gdpr/get?access_token={access_token}

Request parameters

Parameter Required Type Description
scope No String Specify the scope of the query.

Valid value:

  • all: Return GDPR information for both administrators and extensions.
  • admin: Return GDPR information for administrators only.
  • ext: Return GDPR information for extensions only.
username No String Specify the username of the user.
  • For an administrator, specify the administrator's username.
  • For an extension user, specify the user's extension number.
Note: If this parameter is specified, the scope parameter in the request is ignored, and the GDPR confirmation details for the specified user are returned.

Response parameters

Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.
data Object<GDPR> The GDPR policy version and confirmation status information.
GDPR
Parameter Type Description
admin Object<GDPR_Admin> The GDPR policy version and confirmation status for administrators.
ext Object<GDPR_Ext> The GDPR policy version and confirmation statistics for extensions.
user Object<GDPR_User> The GDPR policy version and confirmation details for a specific user.
Note: This parameter is returned only when the username parameter is specified.
GDPR_Admin
Parameter Type Description
version Number The version number of the GDPR policy.
confirmed Boolean Whether the administrator has confirmed the current GDPR policy version.
confirm_time String The confirmation time, in Unix timestamp (seconds).
Note: The value 0 indicates that the policy has not been confirmed.
GDPR_Ext
Parameter Type Description
version Number The version number of the GDPR policy.
confirmed_count Integer The number of extensions that have confirmed the GDPR policy.
unconfirmed_count Integer The number of extensions that have not confirmed the GDPR policy.
GDPR_User
Parameter Type Description
username String The username of the user.
user_type String The type of the user.
  • admin: The user is an administrator.
  • extension: The user is an extension user.
version Number The version number of the GDPR policy.
confirmed Boolean Whether the user has confirmed the GDPR policy.
confirm_time String The confirmation time, in Unix timestamp (seconds).
Note: The value 0 indicates that the policy has not been confirmed.

Example

Request example

GET /openapi/v1.0/gdpr/get?access_token=xVx9wX2B38gSD0C2o4y9b9bd5QOPz2MK HTTP/1.1

Host: yeastardocs.example.yeastarcloud.com

Response example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "data": {
        "admin": {
            "version": 16,
            "confirmed": true,
            "confirm_time": "1794377989"
        },
        "ext": {
            "version": 26,
            "confirmed_count": 0,
            "unconfirmed_count": 4
        }
    }
}