Help Center/ Server Migration Service/ API Reference/ API/ Privacy Agreement Management/ Checking Whether a User Has Agreed to the Privacy Agreement
Updated on 2025-11-27 GMT+08:00

Checking Whether a User Has Agreed to the Privacy Agreement

Function

This API is used to query whether a user has signed the privacy agreement.

Calling Method

For details, see Calling APIs.

URI

GET /v3/privacy-agreements

Request

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

The user token. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Response

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

flag

Boolean

The result of the request to query whether the user has signed the privacy agreement.

Example Request

This example queries whether a user has signed the privacy agreement.

GET https://{endpoint}/v3/privacy-agreements

Example Response

Status code: 200

Querying whether a user has agreed to the privacy agreement succeeded.

{
  "flag" : true
}

Status Codes

Status Code

Description

200

Querying whether a user has agreed to the privacy agreement succeeded.

Error Codes

For details, see Error Codes.