# Privacy Policy Management V3 APIs

General Data Protection Regulation (GDPR) and the California Consumer Privacy Act (CCPA) define that consumer/data subjects have the right to view, update, extract, and delete the data that controllers and business have saved on them. When the consumer/data subject exercises their rights they create a data request.
These APIs are used to delete the members from one or multiple sites by using the DELETE request method and if the user wants to revoke his account, then it can be done with the help of the PUT request method.

Version: 3.0.1

## Servers

```
https://api.socialannex.com/3.0/tenant/privacy
```

## Download OpenAPI description

[Privacy Policy Management V3 APIs](https://annexcloud.redocly.app/_bundle/ppm/ppm.yaml)

## User Delete

The DELETE request method is used to remove a user from one or more sites. If the user wishes to revoke their account entirely, this can be done using the PUT request method.

### Generate an authorization token

 - [GET /tenant/privacy/gettoken](https://annexcloud.redocly.app/ppm/ppm/user-delete/tenantprivacygettoken.md): In order to make a successful delete request using the privacy api, you must start by generating an authorization token that you will use to make the request.

### Delete member from one or multiple sites

 - [DELETE /deleteuser](https://annexcloud.redocly.app/ppm/ppm/user-delete/deleteuser.md): This method is used to request the deletion of members. When a user submits a member deletion request, the API endpoint designated for handling such requests uses the DELETE method to remove the member from the system. This ensures that the members are permanently deleted from the database. This API will receive and store the requests in the queue periodically. The delete request runs every 12 hours at 05:30 AM UTC and 05:30 PM UTC. Member by member in the queue will be picked and deleted from every table in the database.

### Revoke Delete Request

 - [PUT /revokeuser](https://annexcloud.redocly.app/ppm/ppm/user-delete/revokeuser.md): When a user requests to delete a member, the request will be in a queue, and within 12 hours the request will be deleted his personal information. If the user wants to revoke his request within 12 hours then it can be cancelled. But beyond 12 hours if the user wants to revoke his requisition, then the request cannot be cancelled. In this API if the user makes the revoke request before getting deleted, then his request to delete the member is removed from the queue.

## User Group Details

The User Group Details section allows you to fetch and view user information across multiple sites simultaneously. The User Details API receives and queues these requests, and the user information is then periodically processed and sent via email in JSON format.

### User Group Details

 - [PUT /getuserdetails](https://annexcloud.redocly.app/ppm/ppm/user-group-details/usergroupdetails.md): The Get Token process is a critical first step for initiating privacy-related requests, such as delete operations, within the Privacy API. This endpoint generates an authorization token to ensure secure and authorized access, which must be included in all subsequent API requests. User group details are validated twice daily—at 12:00 AM and 12:00 PM UTC. The data is processed group by group, and group details from either a single site or multiple sites are delivered via email in a JSON response format.

