Ask for a reset link
POST
/api/auth/forgot-passwordAlways answers the same sentence, so it cannot be used to find out which usernames exist. Sends by email when SMTP is set up and the account has an address, otherwise by Discord direct message; sends nothing when neither applies or no public address is saved.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/auth/forgot-password" \ -H "Content-Type: application/json" \ -d '{ "username": "string" }'{ "message": "string"}