Authentication
Send verification code
Send a verification code to the user via the specified method (e.g., email). Used for 2FA verification during sensitive operations.
AuthorizationBearer <token>
Bearer token authentication for user sessions
In: header
Path Parameters
typestring
The verification method type
Value in
"email" | "totp"Response Body
application/json
application/json
application/json
curl -X GET "https://nox.hactazia.fr/api/auth/email/send"{
"data": {
"success": true,
"message": "Verification code sent"
},
"request": "/api/",
"time": 1750945093437
}{
"error": {
"message": "You are not logged in.",
"code": 7,
"status": 401
},
"data": null
}{
"error": {
"message": "An internal error occurred while trying to {0}.",
"code": 9,
"status": 500
},
"data": null
}