Skip to content

Delete authenticated user account

DELETE
/account
curl --request DELETE \
--url http://localhost:8000/api/v1/account \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "confirm_delete": true, "reason": "example" }'
Media type application/json
object
confirm_delete
required

Must be true to confirm deletion

boolean
reason

Reason for account deletion

string
<= 1000 characters
Example generated
{
"confirm_delete": true,
"reason": "example"
}

Account deleted successfully

Media type application/json
object
success
boolean
message
string
data
null
Example
{
"success": true,
"message": "Account deleted successfully."
}

Unauthorized

Forbidden

Validation error