[html]
<head>
<style>
body {
color: #333;
}
h1 {
color: #0056b3;
border-bottom: 2px solid #0056b3;
padding-bottom: 10px;
}
h2 {
color: #0056b3;
margin-top: 40px;
}
p {
line-height: 1.6;
}
code {
background-color: #e8e8e8;
padding: 2px 4px;
border-radius: 4px;
}
ul {
list-style-type: none;
padding: 0;
}
li {
background: #fff;
margin: 5px 0;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
}
.endpoint {
background-color: #0056b3;
color: #fff;
padding: 10px;
border-radius: 4px;
margin: 20px 0;
}
.parameters {
margin-top: 10px;
}
.parameter {
background-color: #e8e8e8;
padding: 10px;
border-radius: 4px;
margin-top: 5px;
}
.parameter code {
background-color: transparent;
}
</style>
</head>
<body>
<h1>API Documentation</h1>
<h2>List Domains</h2>
<p>Retrieve the current list of available domains.</p>
<div class="endpoint"><strong>GET</strong> :: <code>https://yourdomain.com/api/domains/[apikey]</code></div>
<div class="parameters">
<p><strong>Parameters:</strong></p>
<ul>
<li class="parameter"><code>[apikey]</code> - Your API key.</li>
</ul>
</div>
<h2>Create Email</h2>
<p>Validate the email ID and provide a sanitized version.</p>
<div class="endpoint"><strong>GET</strong> :: <code>https://yourdomain.com/api/email/[email]/[apikey]</code></div>
<div class="parameters">
<p><strong>Parameters:</strong></p>
<ul>
<li class="parameter"><code>[apikey]</code> - Your API key.</li>
<li class="parameter"><code>[email]</code> - The email ID you want to create.</li>
</ul>
</div>
<h2>Fetch Messages</h2>
<p>Retrieve email messages for the specified email ID.</p>
<div class="endpoint"><strong>GET</strong> :: <code>https://yourdomain.com/api/messages/[email]/[apikey]</code></div>
<div class="parameters">
<p><strong>Parameters:</strong></p>
<ul>
<li class="parameter"><code>[apikey]</code> - Your API key.</li>
<li class="parameter"><code>[email]</code> - The email ID for which you want to retrieve messages.</li>
</ul>
</div>
<h2>Delete Message</h2>
<p>Delete a specific email message with the given ID.</p>
<div class="endpoint"><strong>DELETE</strong> :: <code>https://yourdomain.com/api/message/[message_id]/[apikey]</code></div>
<div class="parameters">
<p><strong>Parameters:</strong></p>
<ul>
<li class="parameter"><code>[apikey]</code> - Your API key.</li>
<li class="parameter"><code>[message_id]</code> - The unique identifier for the message to delete.</li>
</ul>
</div>
</body>
</html>
[/html]