This endpoint requires authentication with a valid JWT token and CUSTOMER role.
Authentication
Bearer token for authentication
Response
Indicates if the temporary email was deleted successfully
Example Request
curl -X DELETE "http://localhost:3333/mail/delete/tmp" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Response Example
{
"success": true,
"message": "Temporary email deleted successfully"
}
Error Responses
Unauthorized - Invalid or missing token
Forbidden - User does not have CUSTOMER role
Not Found - No temporary email found for this user