Skip to content

Returns all mails from mailbox.

GET
/api/mailbox/all/{mailboxId}/{folderId}

Authorizations

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

Parameters

Path Parameters

mailboxId*
Typestring
Required
folderId*
Typestring
Required

Query Parameters

page
Typestring
pageSize
Typestring

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
mailboxId*
folderId*
page
pageSize
cURL
curl -X GET \
'http://localhost/api/mailbox/all/{mailboxId}/{folderId}'

Samples

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