API Documentation
Base URL
code
https://e29edba9f72c89e1.bestmailer.info/api/Endpoints
| Endpoint | Method | Description |
|---|---|---|
| /api/send | POST | Send email |
| /api/services | GET | List of services |
Authorization
Include your API token in the request body (api field).
Important
All requests must include `Content-Type: application/json` header.
Requests without this header will be blocked (403 Forbidden).
POST /api/send
Request Body (JSON)
json
{
"email": "[email protected]",
"link": "https://your-link.com/page",
"service": "Marktplaats",
"country": "nl",
"api": "your_api_token",
"userId": "123456789",
"username": "user",
"product": "iPhone 15",
"cost": "€999"
}Required Parameters
| Parameter | Type | Description |
|---|---|---|
| string | Recipient email | |
| link | string | Link for template |
| service | string | Service name |
| country | string | Country: code (nl, de), Russian (Нидерланды), or English (Netherlands) |
| api | string | Your API token |
| userId | string | User ID |
| username | string | Username |
Optional Parameters
| Parameter | Type | Description |
|---|---|---|
| product | string | Product name |
| cost | string | Product price |
Success Response (200)
json
{
"success": true,
"log": {
"id": "unique_id",
"email": "[email protected]",
"service": "Marktplaats",
"status": "success"
}
}Error Responses
400 Bad Request
json
{ "error": "Missing required fields" }401 Unauthorized
json
{ "error": "Invalid or expired API token" }403 Forbidden
json
{ "error": "User is blocked" }GET /api/services
Get list of available services.
Response (200)
json
{
"services": [
{
"name": "Marktplaats",
"countries": ["Netherlands"],
"countryCodes": ["nl"]
}
],
"totalServices": 15,
"totalCountries": 12
}Examples
cURL
bash
curl -X POST https://e29edba9f72c89e1.bestmailer.info/api/send \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"link": "https://example.com/verify",
"service": "Marktplaats",
"country": "nl",
"api": "your_token",
"userId": "123456789"
}'Python
python
import requests
response = requests.post(
"https://e29edba9f72c89e1.bestmailer.info/api/send",
json={
"email": "[email protected]",
"link": "https://example.com/verify",
"service": "Marktplaats",
"country": "nl",
"api": "your_token",
"userId": "123456789"
}
)
print(response.json())JavaScript
javascript
const response = await fetch('https://e29edba9f72c89e1.bestmailer.info/api/send', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
email: '[email protected]',
link: 'https://example.com/verify',
service: 'Marktplaats',
country: 'nl',
api: 'your_token',
userId: '123456789'
})
});
console.log(await response.json());28 services available
| Service | Countries |
|---|---|
| anpost | ie |
| BGPost | bg |
| Bolha | sk |
| CityExpress | rs |
| DAO | dk |
| depop | gb |
| Dexpress | rs |
| DHL | rs |
| donedeal | ie |
| DPD | rs |
| Ebay | de |
| Econt | bg |
| FANcourier | bg |
| Halooglasi | rs |
| inpost | pl |
| kargoekspres | mk |
| kleinanzeigen | de |
| KupujemProdajem | rs |
| MarktplaaatsTest | nl |
| Marktplaats | nl |
| Milanuncios | es |
| njuskalo | hr |
| OLX | bgbrptro |
| PostExpress | rs |
| quoka | de |
| subito | it |
| tise | no |
| wallapop | esitpt |