Servera Mail API
Email delivery & protection - delivery trace, RBL checks, whitelists, trusted senders, autoresponders.
Email delivery & protection - delivery trace, RBL checks, whitelists, trusted senders, autoresponders.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/servera-lt:servera-lt-mail-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Servera Developers Mail API
description: 'A REST API for your Servera account - the same operations you have in the customer
area, available programmatically, plus an **MCP** endpoint so AI agents can use
them as tools. Every request is authenticated with a scoped API key and rate-limited. ### What you can do
Everything from your customer area, grouped by area (each needs the matching scope):
- **VPS / VDS** - list servers; live status + CPU/RAM/disk/network metrics; power
on/off/reboot; snapshots (create, roll back, delete); backups (create, delete);
the per-VM firewall (view, enable/disable, rules add/update/delete/reorder - on
standalone and behind-Virtual-Router VMs); and OS reinstall. - **VPC Networks** - list your private networks and manage their firewall (rules,
options, VM↔VM isolation toggle). - **Virtual Routers** - overview, WireGuard peers, public-IP mappings, and
attach/detach VMs behind the router. - **Domains & DNS** - list domains (nameservers, lock, DNSSEC, expiry) and read or
edit DNS records (A, AAAA, CNAME, MX, TXT, SRV, CAA) on all DNS zones
hosted with us. - **WAF** - list protected domains, enable/disable protection, toggle threat
filtering, apply security presets, advanced rules, bot policy, IP/country
allow-block lists, and read traffic logs. - **Email - delivery & protection** - delivery trace, RBL/blocklist checks, the
RBL self-whitelist, trusted senders, and autoresponders. - **Billing** - list invoices, download their PDFs, and check your account balance. - **Orders** - list and inspect your orders. - **Support** - read tickets, open new ones, and post replies. - **IP protection** - check whether an IP is blocked on shared hosting, self-unblock
it, and view the history. - **Users** - list account users, invite new ones, and resend invitations. - **Contacts** - list and manage your account contacts. - **Tags & comments** - organise your services and domains with tags (a predefined
grouped catalog of international labels, or your own custom text) and a free-text
comment on each; find services/domains by tag. Scopes `tags:read`/`tags:write`. - **System emails** - the transactional emails we''ve sent to your account. - **Activity log** - your account''s audited actions. ## Base URL
```
https://developers.servera.lt
```
Every `servera.*` brand has its own host (e.g. `https://developers.servera.co.uk`);
they share this API. ## Quick start
```bash
# Public - no auth
curl https://developers.servera.lt/v1/status
# Authenticated - list your VPS/VDS
curl https://developers.servera.lt/v1/vps \
-H "Authorization: Bearer sk_live_…"
```
## Authentication
Create a scoped API key in your customer area (**Developers → API keys**), then
send it as a bearer token on every request:
```
Authorization: Bearer sk_live_…
```
Keys are shown **once** at creation (only a hashed form is stored) and can be
revoked anytime. Send keys over HTTPS only, in the header - never in a URL.'
version: 1.0.0
servers:
- url: https://developers.servera.lt
description: Production
tags:
- name: Mail
description: Email delivery & protection - delivery trace, RBL checks, whitelists, trusted senders, autoresponders.
paths:
/v1/mail/servers:
get:
tags:
- Mail
summary: List mail servers
description: Mail-enabled servers hosting your domains, with the domains on each.
operationId: mail_servers
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
servers:
- server_id: 96
domains:
- example.com
can_manage: true
security:
- ApiKey: []
/v1/mail/rbl-check:
get:
tags:
- Mail
summary: RBL / blocklist check
description: Check an IP (or a sender address/domain) against DNS blocklists across your mail servers.
operationId: mail_rbl_check
security:
- ApiKey: []
parameters:
- name: ip
in: query
required: false
schema:
type: string
default: ''
title: Ip
description: IP address to check. For mail RBL-check this may also be a sender address/domain.
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
ip: 203.0.113.7
sender: null
listed: false
listings: []
whitelisted: false
ip_info:
asn: AS3320
country: DE
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/mail/coverage:
get:
tags:
- Mail
summary: Mail-log coverage
description: How far back the delivery-log search reaches.
operationId: mail_coverage
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
oldest: '2026-07-01T00:00:00'
newest: '2026-08-19T09:00:00'
security:
- ApiKey: []
/v1/mail/trace:
get:
tags:
- Mail
summary: Delivery trace
description: Search your mail delivery log - was a message sent, blocked, or RBL-rejected.
operationId: mail_trace
security:
- ApiKey: []
parameters:
- name: q
in: query
required: false
schema:
type: string
default: ''
title: Q
description: Free-text filter — an address, IP, or subject fragment.
- name: limit
in: query
required: false
schema:
type: integer
default: 60
title: Limit
description: Maximum rows to return (1–200, default 50).
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
domains:
- example.com
entries:
- time: '2026-08-19 09:12:03'
from: sender@other.com
to: you@example.com
status: ok
home_cc: LT
multi_server: false
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/mail/history:
get:
tags:
- Mail
summary: Mail action history
description: Your mail protection action history (whitelists, checks, trusted, …).
operationId: mail_history
security:
- ApiKey: []
parameters:
- name: limit
in: query
required: false
schema:
type: integer
default: 50
title: Limit
description: Maximum rows to return (1–200, default 50).
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
events:
- action: rbl_check
ip: 203.0.113.7
at: '2026-08-19T09:00:00+00:00'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/mail/whitelist:
get:
tags:
- Mail
summary: List RBL whitelist
description: Your self-whitelisted sender IPs + today's remaining quota.
operationId: mail_whitelist_list
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
entries:
- id: 5
ip: 203.0.113.7
added_at: '2026-08-10T10:00:00+00:00'
daily_limit: 10
used_today: 0
remaining_today: 10
can_manage: true
security:
- ApiKey: []
post:
tags:
- Mail
summary: Whitelist a sender IP
description: Whitelist a sender IP (only if it was recently RBL-rejected to your own domain). Rate-limited.
operationId: mail_whitelist_add
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/WhitelistAdd'
example:
ip: 203.0.113.7
reason: our office mail server
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
applied: true
ip: 203.0.113.7
server_id: 96
id: 5
domains:
- example.com
remaining_today: 9
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- ApiKey: []
/v1/mail/whitelist/{wl_id}:
delete:
tags:
- Mail
summary: Remove whitelist entry
operationId: mail_whitelist_remove
security:
- ApiKey: []
parameters:
- name: wl_id
in: path
required: true
schema:
type: integer
title: Wl Id
description: RBL-whitelist entry id (from GET /mail/whitelist).
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
removed: true
ip: 203.0.113.7
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Remove one of your RBL-whitelist entries by its id.
/v1/mail/trusted:
get:
tags:
- Mail
summary: List trusted senders
description: Trusted senders per mail account (always accepted, never spam-flagged).
operationId: mail_trusted_list
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
accounts:
- server_id: 96
cpanel_user: exampl
domain: example.com
platform: cpanel
entries:
- good@sender.com
reachable: true
can_manage: true
max_per_account: 50
security:
- ApiKey: []
post:
tags:
- Mail
summary: Add trusted sender
operationId: mail_trusted_add
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TrustedSender'
example:
server_id: 96
cpanel_user: exampl
sender: good@sender.com
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
added: true
sender: good@sender.com
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- ApiKey: []
description: Add a trusted sender (email, `*@domain`, or a bare domain) — its mail is always accepted and never spam-flagged.
/v1/mail/trusted/remove:
post:
tags:
- Mail
summary: Remove trusted sender
operationId: mail_trusted_remove
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/TrustedSender'
example:
server_id: 96
cpanel_user: exampl
sender: good@sender.com
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
removed: true
sender: good@sender.com
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- ApiKey: []
description: Remove a trusted sender from a mail account.
/v1/mail/autoresponders:
get:
tags:
- Mail
summary: List autoresponders
description: Your mailboxes and which have an autoresponder set.
operationId: mail_ar_list
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
accounts:
- server_id: 96
cpanel_user: exampl
domain: example.com
mailboxes:
- email: info@example.com
has_ar: true
subject: On vacation
can_manage: true
security:
- ApiKey: []
put:
tags:
- Mail
summary: Set autoresponder
description: Create or update the autoresponder for one of your mailboxes.
operationId: mail_ar_set
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Autoresponder'
example:
email: info@example.com
subject: On vacation
body: I'm away until Monday and will reply then.
interval: 24
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
email: info@example.com
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- ApiKey: []
/v1/mail/autoresponders/get:
get:
tags:
- Mail
summary: Get autoresponder
operationId: mail_ar_get
security:
- ApiKey: []
parameters:
- name: email
in: query
required: false
schema:
type: string
default: ''
title: Email
description: Mailbox address — must be on a domain you own on a cPanel server.
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
autoresponder:
subject: On vacation
body: Back on Monday.
interval: 24
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
description: Get the autoresponder configured on one of your mailboxes.
/v1/mail/autoresponders/delete:
post:
tags:
- Mail
summary: Turn off autoresponder
operationId: mail_ar_delete
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/EmailRef'
example:
email: info@example.com
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
example:
ok: true
email: info@example.com
removed: true
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- ApiKey: []
description: Turn off the autoresponder on one of your mailboxes.
components:
schemas:
Autoresponder:
properties:
email:
type: string
title: Email
subject:
type: string
title: Subject
body:
type: string
title: Body
from_name:
anyOf:
- type: string
- type: 'null'
title: From Name
interval:
type: integer
title: Interval
default: 24
start_at:
anyOf:
- type: string
- type: 'null'
title: Start At
stop_at:
anyOf:
- type: string
- type: 'null'
title: Stop At
type: object
required:
- email
- subject
- body
title: Autoresponder
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
WhitelistAdd:
properties:
ip:
type: string
title: Ip
reason:
anyOf:
- type: string
- type: 'null'
title: Reason
type: object
required:
- ip
title: WhitelistAdd
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
EmailRef:
properties:
email:
type: string
title: Email
type: object
required:
- email
title: EmailRef
TrustedSender:
properties:
server_id:
type: integer
title: Server Id
cpanel_user:
anyOf:
- type: string
- type: 'null'
title: Cpanel User
sender:
type: string
title: Sender
type: object
required:
- server_id
- sender
title: TrustedSender
securitySchemes:
ApiKey:
type: http
description: 'Your `sk_live_…` API key, sent as `Authorization: Bearer <key>`.'
scheme: bearer