GET
https://api.myidvirtual.com
/
mail
/
tmp
/
inbox
Get Temporary Email Inbox
curl --request GET \
  --url https://api.myidvirtual.com/mail/tmp/inbox \
  --header 'Authorization: <authorization>'
{
  "401": {},
  "403": {},
  "emails": [
    {
      "id": "<string>",
      "from": "<string>",
      "subject": "<string>",
      "received_at": "<string>"
    }
  ]
}
This endpoint requires authentication with a valid JWT token and CUSTOMER role.

Authentication

Authorization
string
required
Bearer token for authentication

Response

emails
array
List of received emails

Example Request

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

Response Example

{
  "emails": [
    {
      "id": "email_123",
      "from": "[email protected]",
      "subject": "Welcome to our service",
      "received_at": "2024-01-15T10:35:00Z"
    },
    {
      "id": "email_124",
      "from": "[email protected]",
      "subject": "Verify your account",
      "received_at": "2024-01-15T10:40:00Z"
    }
  ]
}

Error Responses

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