Servera Domains API

Your domains and their DNS records (read and edit).

GitHub OpenAPI

Operations 8

GET /v1/domains List domains #
GET /v1/domains/{domain_id} Get domain #
GET /v1/domains/{domain_id}/dns Get DNS records #
GET /v1/domains/{domain_id}/verification Domain contact email verification status #
POST /v1/domains/{domain_id}/verification/resend Resend domain verification email #
POST /v1/domains/{domain_id}/dns/records Add DNS record #
PUT /v1/domains/{domain_id}/dns/records Update DNS record #
DELETE /v1/domains/{domain_id}/dns/records Delete DNS record #

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-domains-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-domains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Servera Developers Domains 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: Domains
  description: Your domains and their DNS records (read and edit).
paths:
  /v1/domains:
    get:
      tags:
      - Domains
      summary: List domains
      description: List your registered domains (status, expiry, nameservers, lock, DNSSEC).
      operationId: list_domains
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                domains:
                - id: 15465
                  domain: example.com
                  status: Active
                  tld: com
                  registrar: OpenSRS
                  registration_date: '2026-05-30'
                  expiry_date: '2027-05-30'
                  next_due_date: '2027-05-30'
                  registration_period: 1
                  auto_renew: true
                  dnssec_enabled: false
                  transfer_locked: true
                  nameservers:
                  - ns1.dedikuotas.lt
                  - ns2.dedikuotas.lt
                  recurring_amount: 12.0
                  money_masked: false
      security:
      - ApiKey: []
  /v1/domains/{domain_id}:
    get:
      tags:
      - Domains
      summary: Get domain
      description: One domain's details.
      operationId: get_domain
      security:
      - ApiKey: []
      parameters:
      - name: domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Domain Id
        description: Domain id (from GET /domains).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                id: 15465
                domain: example.com
                status: Active
                tld: com
                registrar: OpenSRS
                registration_date: '2026-05-30'
                expiry_date: '2027-05-30'
                next_due_date: '2027-05-30'
                registration_period: 1
                auto_renew: true
                dnssec_enabled: false
                transfer_locked: true
                nameservers:
                - ns1.dedikuotas.lt
                - ns2.dedikuotas.lt
                recurring_amount: 12.0
                money_masked: false
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/domains/{domain_id}/dns:
    get:
      tags:
      - Domains
      summary: Get DNS records
      description: The DNS zone records for a domain you own (A/AAAA/CNAME/TXT/MX/…).
      operationId: get_dns_records
      security:
      - ApiKey: []
      parameters:
      - name: domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Domain Id
        description: Domain id (from GET /domains).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                zone_exists: true
                domain: example.com
                kind: Master
                managed_dns: true
                records:
                - name: '@'
                  type: A
                  content: 185.209.139.4
                  ttl: 3600
                  priority: null
                - name: www
                  type: CNAME
                  content: example.com.
                  ttl: 3600
                  priority: null
                - name: '@'
                  type: MX
                  content: mail.example.com.
                  ttl: 3600
                  priority: 10
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/domains/{domain_id}/verification:
    get:
      tags:
      - Domains
      summary: Domain contact email verification status
      description: 'ICANN registrant/contact email-verification status for a domain you own

        (verifying/pending/verified/not_verified/suspended) plus the suspension

        deadline. gTLDs only — ccTLDs report `supported: false`.'
      operationId: get_domain_verification
      security:
      - ApiKey: []
      parameters:
      - name: domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Domain Id
        description: Domain id (from GET /domains).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/domains/{domain_id}/verification/resend:
    post:
      tags:
      - Domains
      summary: Resend domain verification email
      description: 'Resend the ICANN contact email-verification message for a domain you own.

        If the contact email isn''t verified before the deadline the domain is

        suspended, so use this when the holder didn''t receive the original email.'
      operationId: resend_domain_verification
      security:
      - ApiKey: []
      parameters:
      - name: domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Domain Id
        description: Domain id (from GET /domains).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/domains/{domain_id}/dns/records:
    post:
      tags:
      - Domains
      summary: Add DNS record
      description: 'Add a DNS record to a domain whose DNS zone is hosted with us.


        TXT values may be up to 4096 characters and are quoted automatically. A record

        the DNS server does not accept returns HTTP 400 `dns_server_rejected` (fix the

        value); a failure on our side returns HTTP 502 `dns_server_error`.'
      operationId: add_dns_record
      security:
      - ApiKey: []
      parameters:
      - name: domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Domain Id
        description: Domain id (from GET /domains).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DnsRecordCreate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                success: true
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Domains
      summary: Update DNS record
      description: Update a DNS record (identify it by its current name/type/content).
      operationId: update_dns_record
      security:
      - ApiKey: []
      parameters:
      - name: domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Domain Id
        description: Domain id (from GET /domains).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DnsRecordUpdate'
            example:
              old_name: www
              old_type: A
              old_content: 185.209.139.4
              new_name: www
              new_type: A
              new_content: 185.209.139.5
              ttl: 3600
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                success: true
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Domains
      summary: Delete DNS record
      description: Delete a DNS record (pass its name, type and content as query params).
      operationId: delete_dns_record
      security:
      - ApiKey: []
      parameters:
      - name: domain_id
        in: path
        required: true
        schema:
          type: integer
          title: Domain Id
        description: Domain id (from GET /domains).
      - name: name
        in: query
        required: true
        schema:
          type: string
          title: Name
        description: DNS record name — `@` for the apex, or a subdomain label.
      - name: type
        in: query
        required: true
        schema:
          type: string
          title: Type
        description: DNS record type (A, AAAA, CNAME, MX, TXT, SRV, CAA) — identifies the record to delete.
      - name: content
        in: query
        required: true
        schema:
          type: string
          title: Content
        description: The record's exact content/value — identifies the record to delete.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
              example:
                success: true
        '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
    DnsRecordUpdate:
      properties:
        old_name:
          type: string
          title: Old Name
        old_type:
          type: string
          title: Old Type
        old_content:
          type: string
          title: Old Content
        new_name:
          type: string
          title: New Name
        new_type:
          type: string
          enum:
          - A
          - AAAA
          - CNAME
          - MX
          - TXT
          - SRV
          - CAA
          title: New Type
        new_content:
          type: string
          title: New Content
        ttl:
          type: integer
          title: Ttl
          default: 3600
        priority:
          anyOf:
          - type: integer
          - type: 'null'
          title: Priority
      type: object
      required:
      - old_name
      - old_type
      - old_content
      - new_name
      - new_type
      - new_content
      title: DnsRecordUpdate
    DnsRecordCreate:
      properties:
        name:
          type: string
          title: Name
          description: Record name/subdomain, or '@' for the apex. Letters, digits and '-', '_', '.', '*' only.
        type:
          type: string
          enum:
          - A
          - AAAA
          - CNAME
          - MX
          - TXT
          - SRV
          - CAA
          title: Type
        content:
          type: string
          title: Content
        ttl:
          type: integer
          title: Ttl
          default: 3600
        priority:
          anyOf:
          - type: integer
          - type: 'null'
          title: Priority
      type: object
      required:
      - name
      - type
      - content
      title: DnsRecordCreate
      example:
        content: 185.209.139.4
        name: api
        ttl: 3600
        type: A
    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