Skip to content

Return mail from mailbox.

GET
/api/mailbox/{mailId}

Authorizations

api_key
Type: API Key (header: X-CSRF-Token)

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
}
Authorization
api_key
Variables
Key
Value
mailId*
cURL
curl -X GET \
'http://localhost/api/mailbox/{mailId}'

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())