grantiva.identify().
Authentication
This endpoint accepts a server API key sent asAuthorization: Bearer <key>, or a dashboard session cookie.
The owner of a personal key (
gpat_) must also have the admin role or higher.
Delete the data of a user
What the endpoint deletes
- Each support ticket that the user submitted, with all its messages. This includes the replies from your team and the email address on the ticket.
- Each feature request that the user submitted, with all its votes and comments. This includes the votes and comments of other users on that request.
- Each vote and comment of the user on a feature request of a different user. Grantiva corrects the vote count and the comment count of that request.
- Each message of the user on a support ticket of a different user.
What the endpoint does not delete
- Device records. Grantiva stores attestations, heartbeats, and flag evaluations under the device key and not under a user ID. The endpoint cannot find them from a user ID.
- Feedback from a user who was not identified. If your app did not call
grantiva.identify()before the user sent feedback, Grantiva stored that feedback under an ID of the device. - Subscription records. Grantiva stores subjects and entitlements under the subject ID, and one subject can be a group of users.
- Replies and comments from your team on a ticket or request of a different user.
- Values that your team wrote into a feature flag or a targeting rule, such as a list of user IDs or email addresses. Remove those values with the feature flag endpoints.
How the user ID must match
The match is exact and case-sensitive. Send the same string that your app gives tograntiva.identify().
For example, UUID().uuidString in Swift gives uppercase letters. If your server sends the same UUID in lowercase letters, Grantiva finds no data and each count is 0.
Retries
An unknown user ID gives200 with each count at 0. Thus you can send the same request again safely.
Send the request again after a network error, a 429 response, or a 5xx response. Do not make the user wait for this request. Record the deletion on your server and send the request until Grantiva answers 200.
Errors
Audit log
Each request writes anend_user.data_deleted entry to the audit log. The entry has the counts and the key or the user that made the request. It does not have the user ID.