DELETE
https://api.myidvirtual.com
/
mail
/
delete
/
tmp
Delete Temporary Email
curl --request DELETE \
  --url https://api.myidvirtual.com/mail/delete/tmp \
  --header 'Authorization: <authorization>'
{
  "401": {},
  "403": {},
  "404": {},
  "success": true,
  "message": "<string>"
}
This endpoint requires authentication with a valid JWT token and CUSTOMER role.

Authentication

Authorization
string
required
Bearer token for authentication

Response

success
boolean
Indicates if the temporary email was deleted successfully
message
string
Success or error message

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

401
object
Unauthorized - Invalid or missing token
403
object
Forbidden - User does not have CUSTOMER role
404
object
Not Found - No temporary email found for this user