GET
https://api.myidvirtual.com
/
mail
/
tmp
/
email
Get Temporary Email Address
curl --request GET \
  --url https://api.myidvirtual.com/mail/tmp/email \
  --header 'Authorization: <authorization>'
{
  "401": {},
  "403": {},
  "404": {},
  "email": "<string>",
  "created_at": "<string>"
}
This endpoint requires authentication with a valid JWT token and CUSTOMER role.

Authentication

Authorization
string
required
Bearer token for authentication

Response

email
string
The user’s temporary email address
created_at
string
Timestamp when the email was created

Example Request

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

Response Example

{
  "email": "[email protected]",
  "created_at": "2024-01-15T10:30:00Z"
}

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