Get Messages
Retrieve a list of email messages for a specified email address.
Endpoint: POST /api/mail/messages
Retrieve a list of email messages for a specified email address.
Request Headers
Authorization: Bearer your_api_token_here
Content-Type: application/json
Request Body
{
"email": "ms3cgwumw0@mloqq.com"
}
Response Example
{
"messages": [
{
"id": 1,
"subject": "Test Email",
"from": "user@example.com",
"body": "This is a test message.",
"created_at": "2025-05-06T12:21:00Z"
},
{
"id": 2,
"subject": "Another Email",
"from": "admin@example.com",
"body": "Hello!",
"created_at": "2025-05-06T12:45:00Z"
}
]
}
Usage Examples
JavaScript (fetch)
fetch('https://mailblinker.com/api/mail/messages', {
method: 'POST',
headers: {
'Authorization': 'Bearer 5720c4dbb4601183486a9259a8e8f7b9b6fef2dc61f34ee901516995710e49aa',
'Content-Type': 'application/json'
},
body: JSON.stringify({ email: 'ms3cgwumw0@mloqq.com' })
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
Python (requests)
import requests
import sys
sys.stdout.reconfigure(encoding='utf-8')
url = 'https://mailblinker.com/api/mail/messages'
headers = {
'Authorization': 'Bearer 5720c4dbb4601183486a9259a8e8f7b9b6fef2dc61f34ee901516995710e49aa',
'Content-Type': 'application/json'
}
data = {
'email': 'ms3cgwumw0@mloqq.com'
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
cURL
curl -X POST https://mailblinker.com/api/mail/messages \
-H "Authorization: Bearer your_api_token_here" \
-H "Content-Type: application/json" \
-d '{"email": "ms3cgwumw0@mloqq.com"}'