Servera Hosting API

cPanel hosting add-ons - dedicated mail IPv4 (your account's email sent from its own IP with its own PTR/HELO; the website is not moved): status, DNS records to set, price. Order it via POST /orders with item type dedicated_mail_ip.

GitHub OpenAPI

Operations 2

GET /v1/hosting/{service_id}/dedicated-mail-ip Dedicated mail IPv4 status #
POST /v1/hosting/{service_id}/dedicated-mail-ip/remove Remove the dedicated mail IPv4 (destructive) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/servera-lt:servera-lt-hosting-api"
All apis
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.

Get an API 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 Specification

servera-lt-hosting-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Servera Developers Hosting 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: Hosting
  description: 'cPanel hosting add-ons - dedicated mail IPv4 (your account''s email sent from its own IP with its own PTR/HELO; the website is not moved): status, DNS records to set, price. Order it via POST /orders with item type dedicated_mail_ip.'
paths:
  /v1/hosting/{service_id}/dedicated-mail-ip:
    get:
      tags:
      - Hosting
      summary: Dedicated mail IPv4 status
      description: 'State of the **dedicated mail IPv4** add-on on one of your cPanel hosting services.


        With the add-on, email from the account''s domains is sent from its own IPv4 address

        (own PTR and HELO name) instead of the shared server IP. The website is NOT moved -

        only mail. Returns `active`, `status`, `ip`, `helo`, `shared_ip`, the `domains` covered,

        `dns_changes` (records we updated automatically), `dns_manual` (records YOU must set

        when a domain''s DNS is hosted elsewhere), `waiting_for_dns`, `not_hosted_here`, plus

        `can_order` / `cannot_order_reason` and the `price`.


        `status` is one of `none`, `setup_queued`, `setup_scheduled` (with `setup_at`, UTC: our staff may schedule the setup for a quiet hour), `setup_delayed`, `pending` / `provisioning` (setup running), `active`, `removing`. `waiting_for_dns` lists domains still sending from the shared IP until you set their `dns_manual` records; `not_hosted_here` lists domains of the account whose DNS is external AND whose mail is hosted on another server: they are left untouched and need no records.


        Order it with `POST /orders` using `{"type": "dedicated_mail_ip", "service_id": }`,

        then pay the returned invoice. After payment the setup is queued and runs by itself,

        usually within minutes; if an attempt fails nothing is left half-configured and it is

        retried automatically (after 1 h, 6 h and 24 h). `cannot_order_reason` may be

        `already_ordered` (paid, setup not finished yet), `already_active`, `order_pending`

        (an unpaid order exists), `not_offered_for_this_plan`, or a service-state reason.

        Removing the add-on lowers the service''s recurring amount by the add-on price.'
      operationId: get_dedicated_mail_ip
      security:
      - ApiKey: []
      parameters:
      - name: service_id
        in: path
        required: true
        schema:
          type: integer
          title: Service Id
        description: Service id of the VPS/VDS (from GET /vps) or Virtual Router (from GET /virtual-routers).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/hosting/{service_id}/dedicated-mail-ip/remove:
    post:
      tags:
      - Hosting
      summary: Remove the dedicated mail IPv4 (destructive)
      description: 'Cancel the dedicated mail IPv4 add-on on a hosting service - the same action as

        removing the add-on in the panel. Mail goes back to the shared server IP, the DNS

        records we changed are reverted, and the IP is released; records you set yourself at

        an external DNS provider must be changed back by you. Takes effect right away and the

        add-on stops being billed from the next renewal; no refund for the current period.

        Requires `confirm: true` and an `Idempotency-Key` header.'
      operationId: remove_dedicated_mail_ip
      security:
      - ApiKey: []
      parameters:
      - name: service_id
        in: path
        required: true
        schema:
          type: integer
          title: Service Id
        description: Service id of the VPS/VDS (from GET /vps) or Virtual Router (from GET /virtual-routers).
      - name: Idempotency-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DedicatedMailIpRemoveBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DedicatedMailIpRemoveBody:
      properties:
        confirm:
          type: boolean
          title: Confirm
          description: Must be true - this removes the dedicated IP.
          default: false
      type: object
      title: DedicatedMailIpRemoveBody
    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
  securitySchemes:
    ApiKey:
      type: http
      description: 'Your `sk_live_…` API key, sent as `Authorization: Bearer <key>`.'
      scheme: bearer