Delete a user account
Authentication
Delete User
Deletes a user account, checks for suspension reports and OTP verification.
DELETE
Delete a user account
Delete User User Flow
Report Suspension Checking
If the user has any of the following, this process will fail and no OTP will be generated:
- A report marked with
reviewing/suspendedstatus; - The user
isSuspendedis true; - The user has a post with
isSuspendedis true.
OTP Creation
An OTP is sent to the user’s email or phone. If the user has both an email and a phone number, the OTP will be sent to the email.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
API key required for authentication
Body
application/json
Optional OTP code for user account deletion.
OTP code for verifying the deletion request.
Example:
"123456"
Response
User account deleted successfully.
Indicates whether the deletion was successful.
