Servera SSL API

Issue and manage Let's Encrypt certificates for your domains. We auto-detect the best validation method (hosting AutoSSL, DNS-01, or edge) and can install, return, or proxy the certificate. Free. Always preflight or dry-run first.

GitHub OpenAPI

Operations 6

POST /v1/ssl/preflight Preflight an SSL request #
GET /v1/ssl/certificates List your certificates #
POST /v1/ssl/certificates Issue a certificate #
GET /v1/ssl/budget Remaining SSL issuance budget #
GET /v1/ssl/certificates/{cert_id} Certificate status #
GET /v1/ssl/certificates/{cert_id}/download Download certificate #

Specifications

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-co-uk:servera-co-uk-ssl-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-co-uk-ssl-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Servera Developers SSL 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.co.uk
  description: Production
tags:
- name: SSL
  description: Issue and manage Let's Encrypt certificates for your domains. We auto-detect the best validation method (hosting AutoSSL, DNS-01, or edge) and can install, return, or proxy the certificate. Free. Always preflight or dry-run first.
paths:
  /v1/ssl/preflight:
    post:
      tags:
      - SSL
      summary: Preflight an SSL request
      description: 'Check, at **zero cost and without touching Let''s Encrypt**, how a certificate

        would be issued for each domain: which validation method we would auto-pick (hosting

        AutoSSL, DNS-01, edge, or a delegated/HTTP-01 fallback), whether wildcards are

        supported, and your remaining weekly issuance budget. Only domains you own are

        accepted. **Always preflight (or dry-run) before issuing.**'
      operationId: ssl_preflight
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SslPreflightBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SslPreflightResponse'
              example:
                results:
                - domain: example.lt
                  chosen_method: dns01
                  reason: Your DNS is managed with us — issuing via DNS validation (wildcard supported).
                  alternatives: []
                  wildcard_supported: true
                  checks:
                    owned: true
                    hosted_with_us: false
                    dns_managed_by_us: true
                    caa_ok: true
                  action_required: null
                - domain: '*.example.lt'
                  chosen_method: dns01
                  reason: Wildcard certificate — issued via DNS validation (your DNS is managed with us).
                  alternatives: []
                  wildcard_supported: true
                  checks:
                    owned: true
                    dns_managed_by_us: true
                    caa_ok: true
                  action_required: null
                budget:
                  registered_domain: example.lt
                  remaining: 45
                  limit: 45
                  window_days: 7
                  resets_at: '2026-10-06T00:00:00+00:00'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - ApiKey: []
  /v1/ssl/certificates:
    get:
      tags:
      - SSL
      summary: List your certificates
      description: List the managed certificates on your account (optionally filter by `domain`).
      operationId: ssl_list_certificates
      security:
      - ApiKey: []
      parameters:
      - name: domain
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Domain
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SslCertificateItem'
                title: Response Ssl List Certificates
              example:
              - id: 12
                domain: example.lt
                sans:
                - example.lt
                - www.example.lt
                method: dns01
                install_target: download
                status: issued
                environment: production
                key_custody: customer_csr
                not_before: '2026-09-29T10:00:00+00:00'
                not_after: '2026-12-28T10:00:00+00:00'
                last_error_code: null
                created_at: '2026-09-29T10:00:00+00:00'
                updated_at: '2026-09-29T10:01:00+00:00'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - SSL
      summary: Issue a certificate
      description: 'Issue a managed Let''s Encrypt certificate for domains you own. We auto-pick the

        validation method (see `preflight`). `dry_run=true` runs against Let''s Encrypt

        **staging** — it exercises the whole flow (real DNS challenge) but issues an

        untrusted cert and consumes **no** production budget; always dry-run first. Issuance

        runs in the background: poll `GET /v1/ssl/certificates/{id}` for status.'
      operationId: ssl_issue
      security:
      - ApiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SslIssueBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SslCertificateItem'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/ssl/budget:
    get:
      tags:
      - SSL
      summary: Remaining SSL issuance budget
      description: 'Remaining production issuances for a domain''s registered-domain in the rolling

        weekly window. We refuse to exceed this **before** hitting Let''s Encrypt''s own limit.'
      operationId: ssl_budget
      security:
      - ApiKey: []
      parameters:
      - name: domain
        in: query
        required: true
        schema:
          type: string
          title: Domain
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SslBudget'
              example:
                registered_domain: example.lt
                remaining: 45
                limit: 45
                window_days: 7
                resets_at: '2026-10-06T00:00:00+00:00'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/ssl/certificates/{cert_id}:
    get:
      tags:
      - SSL
      summary: Certificate status
      description: Status/expiry of one certificate (poll after issuing).
      operationId: ssl_get_certificate
      security:
      - ApiKey: []
      parameters:
      - name: cert_id
        in: path
        required: true
        schema:
          type: integer
          title: Cert Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SslCertificateItem'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/ssl/certificates/{cert_id}/download:
    get:
      tags:
      - SSL
      summary: Download certificate
      description: 'Download the issued certificate. `format=pem` returns the fullchain (and the private

        key, if we hold it). `format=pfx` returns a base64 **PKCS#12 / .pfx** bundle for

        Windows / IIS (optional `password`) — available only when Servera holds the private key

        (i.e. you did not supply your own CSR).'
      operationId: ssl_download
      security:
      - ApiKey: []
      parameters:
      - name: cert_id
        in: path
        required: true
        schema:
          type: integer
          title: Cert Id
      - name: format
        in: query
        required: false
        schema:
          enum:
          - pem
          - pfx
          type: string
          default: pem
          title: Format
      - name: password
        in: query
        required: false
        schema:
          type: string
          default: ''
          title: Password
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SslPreflightResponse:
      properties:
        results:
          items:
            $ref: '#/components/schemas/SslPreflightResult'
          type: array
          title: Results
        budget:
          $ref: '#/components/schemas/SslBudget'
      type: object
      required:
      - results
      - budget
      title: SslPreflightResponse
    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
    SslPreflightBody:
      properties:
        domains:
          items:
            type: string
          type: array
          maxItems: 100
          minItems: 1
          title: Domains
          description: Domain(s) to check. Use *.example.com for a wildcard.
      type: object
      required:
      - domains
      title: SslPreflightBody
      example:
        domains:
        - example.lt
        - '*.example.lt'
    SslBudget:
      properties:
        registered_domain:
          type: string
          title: Registered Domain
        remaining:
          type: integer
          title: Remaining
        limit:
          type: integer
          title: Limit
        window_days:
          type: integer
          title: Window Days
          default: 7
        resets_at:
          type: string
          title: Resets At
      type: object
      required:
      - registered_domain
      - remaining
      - limit
      - resets_at
      title: SslBudget
    SslIssueBody:
      properties:
        domains:
          items:
            type: string
          type: array
          maxItems: 100
          minItems: 1
          title: Domains
          description: Domain(s) for the certificate. First is the primary CN; use *.example.com for a wildcard.
        dry_run:
          type: boolean
          title: Dry Run
          description: Run against Let's Encrypt STAGING (validates everything, consumes NO production budget). Always dry-run first.
          default: false
        install_target:
          type: string
          enum:
          - auto
          - download
          - edge
          - cpanel
          - deploy_agent
          title: Install Target
          default: auto
        csr:
          anyOf:
          - type: string
          - type: 'null'
          title: Csr
          description: Optional PEM CSR — keeps the private key on YOUR side (we never see it).
      type: object
      required:
      - domains
      title: SslIssueBody
      example:
        domains:
        - example.lt
        - www.example.lt
        dry_run: true
        install_target: download
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    SslCertificateItem:
      properties:
        id:
          type: integer
          title: Id
        domain:
          type: string
          title: Domain
        sans:
          items:
            type: string
          type: array
          title: Sans
          default: []
        method:
          type: string
          title: Method
        install_target:
          type: string
          title: Install Target
        status:
          type: string
          title: Status
        environment:
          type: string
          title: Environment
        key_custody:
          type: string
          title: Key Custody
        not_before:
          anyOf:
          - type: string
          - type: 'null'
          title: Not Before
        not_after:
          anyOf:
          - type: string
          - type: 'null'
          title: Not After
        last_error_code:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Error Code
        created_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Created At
        updated_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Updated At
      type: object
      required:
      - id
      - domain
      - method
      - install_target
      - status
      - environment
      - key_custody
      title: SslCertificateItem
    SslPreflightResult:
      properties:
        domain:
          type: string
          title: Domain
        chosen_method:
          anyOf:
          - type: string
          - type: 'null'
          title: Chosen Method
        reason:
          type: string
          title: Reason
        error:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
        alternatives:
          items:
            type: string
          type: array
          title: Alternatives
          default: []
        wildcard_supported:
          type: boolean
          title: Wildcard Supported
          default: false
        checks:
          additionalProperties: true
          type: object
          title: Checks
          default: {}
        action_required:
          anyOf:
          - type: string
          - type: 'null'
          title: Action Required
      type: object
      required:
      - domain
      - reason
      title: SslPreflightResult
  securitySchemes:
    ApiKey:
      type: http
      description: 'Your `sk_live_…` API key, sent as `Authorization: Bearer <key>`.'
      scheme: bearer