Help Center/ Server Migration Service/ API Reference/ APIs V3.0/ Privacy Agreement Management/ Querying Whether a User Has Signed the Privacy Agreement
Updated on 2024-09-04 GMT+08:00

Querying Whether a User Has Signed 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 parameter

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

OK

{
  "flag" : true
}

Status Codes

Status Code

Description

200

OK

Error Codes

For details, see Error Codes.