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

Authentication

Authorization
string
required
Bearer token for authentication

Path Parameters

id
string
required
The unique identifier of the email

Response

id
string
Email identifier
from
string
Sender’s email address
subject
string
Email subject
body
string
Full email content/body
received_at
string
Timestamp when email was received

Example Request

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

Response Example

{
  "id": "email_123",
  "from": "[email protected]",
  "subject": "Welcome to our service",
  "body": "Hello! Welcome to our platform. Please verify your email...",
  "received_at": "2024-01-15T10:35:00Z"
}

Error Responses

401
object
Unauthorized - Invalid or missing token
403
object
Forbidden - User does not have CUSTOMER role
404
object
Not Found - Email not found