POST
https://api.myidvirtual.com
/
mail
/
report
/
{id}
Send Report Email
curl --request POST \
  --url https://api.myidvirtual.com/mail/report/{id} \
  --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

Path Parameters

id
string
required
The reseller ID being reported

Response

success
boolean
Indicates if the report was sent successfully
message
string
Success or error message

Example Request

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

Response Example

{
  "success": true,
  "message": "Report sent successfully"
}

Error Responses

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