Skip to content

Return mail from mailbox.

GET
/api/mailbox/{mailId}

Authorizations

Parameters

Path Parameters

mailId*
Typestring
Required

Responses

Success.
JSON
{
"id": 0,
"mailboxId": 0,
"mailboxFolder": 0,
"from": null,
"time": "string",
"subject": "string",
"body": "string",
"bodyHtml": "string",
"isRead": true,
"isAnswered": true
}

Samples

cURL
curl -X GET http://localhost/api/mailbox/{mailId}
JavaScript
fetch("http://localhost/api/mailbox/{mailId}")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/mailbox/{mailId}");
Python
import requests
response = requests.get("http://localhost/api/mailbox/{mailId}")
print(response.json())