Help Center/ Server Migration Service/ API Reference/ API/ Privacy Agreement Management/ Checking Whether a User Has Agreed to the Privacy Agreement
Updated on 2026-01-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 Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token. The token can be obtained by calling the IAM API for obtaining a user token. The value of X-Subject-Token in the response header is the user token.

Response Parameters

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 Requests

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

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

Example Responses

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

See Error Codes.