POST
https://api.myidvirtual.com
/
mail
/
tmp
Create Temporary Email
curl --request POST \
  --url https://api.myidvirtual.com/mail/tmp \
  --header 'Authorization: <authorization>'
{
  "401": {},
  "403": {},
  "success": true,
  "email": "<string>",
  "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 created successfully
email
string
The generated temporary email address
message
string
Success or error message

Example Request

curl -X POST "http://localhost:3333/mail/tmp" \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Response Example

{
  "success": true,
  "email": "[email protected]",
  "message": "Temporary email created successfully"
}

Error Responses

401
object
Unauthorized - Invalid or missing token
403
object
Forbidden - User does not have CUSTOMER role