/api/create-email
{
"domain": "string" // Optional, defaults to iredmail.my.id
}
{
"success": true,
"email": "random123@domain.com"
}
/api/create-named-email
{
"firstName": "string",
"lastName": "string",
"domain": "string" // Optional, defaults to iredmail.my.id
}
{
"success": true,
"email": "firstname.lastname123@domain.com"
}
/api/messages/:emailId
emailId
: The part before @ in the email address
{
"success": true,
"messages": [
{
"id": "string",
"from": "string",
"subject": "string",
"date": "string",
"content": "string"
}
]
}
{
"success": false,
"message": "Error description"
}
400
- Bad Request (Invalid parameters)401
- Unauthorized (Invalid or missing token)403
- Forbidden (Insufficient permissions)404
- Not Found500
- Internal Server Error