📖 GhostMailer API Documentation 📖

Endpoint: POST /send

Base URL: api.xorusovh.xyz:3389

Headers:

Request Body (JSON):

{
  "sender": "[email protected]",
  "recepient": "[email protected]",
  "subject": "Subject",
  "message": "Message body"
}

Limit: subject and message max 1000 characters

Example Request (bash):

curl -x POST 'http://api.xorusovh.xyz:3389/send' \
-H 'X-API-Key: your_api_key' \
-H 'Content-Type: application/json' \
-d '{"sender": "[email protected]", "recepient": "[email protected]", "subject": "Test", "message": "Hello!"}'

Python Example:

import requests
API_URL = 'http://api.xorusovh.xyz:3389/send'
API_KEY = 'your_api_key'

data = {
    'sender': '[email protected]',
    'recepient': '[email protected]',
    'subject': 'Test Email',
    'message': 'Hi, this is a test!'
}
headers = {'X-API-Key': API_KEY, 'Content-Type': 'application/json'}

response = requests.post(API_URL, json=data, headers=headers)
print(response.json())

Expected Success Response:

{"status": "success", "message": "Email queued", "email_count": 1}

Error Responses:

Limits: