Hostilo Versions API

Version history and one-call restore.

GitHub OpenAPI

Operations 2

GET /list_versions List site versions #
POST /restore_version Restore a version #

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/hostilo-app:hostilo-app-versions-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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

hostilo-app-versions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Hostilo REST Versions API
  version: 1.1.0
  summary: Create, publish, restore and measure websites on hostilo.app.
  description: 'REST API of Hostilo.app (IMJ sp. z o.o.) for AI agents and automation tools (Make, n8n, Zapier, GPT Actions). The same actions as the Hostilo MCP server (https://hostilo.app/mcp). JSON in, JSON out. Auth: API key from Dashboard > API & tools, sent as "Authorization: Bearer hk_...". Rate limit: 60 requests per minute per key. Every action is also available as https://hostilo.app/api.php?action= (original address). Messages are in Polish. Guide: https://hostilo.app/docs#rest'
  termsOfService: https://hostilo.app/terms
  license:
    name: Proprietary, use under the Hostilo terms
    url: https://hostilo.app/terms
  contact:
    name: Hostilo support
    url: https://hostilo.app/contact
    email: hello@hostilo.app
servers:
- url: https://hostilo.app/api/v1
  description: Production
security:
- apiKey: []
tags:
- name: Versions
  description: Version history and one-call restore.
paths:
  /list_versions:
    get:
      operationId: listVersions
      summary: List site versions
      description: Lists saved previous versions of a site, newest first, with version_id, save time and size. How many are kept depends on the plan.
      tags:
      - Versions
      parameters:
      - name: site_id
        in: query
        required: true
        description: Site id (number) or name, e.g. 123 or "my-page" or "my-page.hostilo.page".
        schema:
          type: string
        example: '123'
      responses:
        '200':
          description: Success.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListVersionsResponse'
              example:
                success: true
                site_id: 123
                url: https://my-page.hostilo.page
                versions:
                - version_id: '1760601600'
                  saved_at: '2026-10-16T08:00:00Z'
                  size_bytes: 2048
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
  /restore_version:
    post:
      operationId: restoreVersion
      summary: Restore a version
      description: Restores a previous version (version_id from listVersions) and publishes it. The current version is saved to history first, so this can be undone.
      tags:
      - Versions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RestoreVersionRequest'
            example:
              site_id: 123
              version_id: '1760601600'
      responses:
        '200':
          description: Success.
          headers:
            X-RateLimit-Limit:
              $ref: '#/components/headers/RateLimitLimit'
            X-RateLimit-Remaining:
              $ref: '#/components/headers/RateLimitRemaining'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestoreVersionResponse'
              example:
                success: true
                message: Przywrócono wersję 1760601600. Poprzednia wersja trafiła do historii.
                site_id: 123
                url: https://my-page.hostilo.page
                restored_version: '1760601600'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: Human-readable message (Polish).
        success:
          type: boolean
          const: false
        retry_after:
          type: integer
          description: Seconds to wait (429 only).
        site_id:
          type: integer
          description: 'createSite with files: the site was created but files were not published.'
        url:
          type: string
    Version:
      type: object
      properties:
        version_id:
          type: string
          description: Use with restoreVersion.
        saved_at:
          type: string
          format: date-time
        size_bytes:
          type: integer
    RestoreVersionRequest:
      type: object
      required:
      - site_id
      - version_id
      properties:
        site_id:
          oneOf:
          - type: integer
          - type: string
          description: Site id (number) or site name.
        version_id:
          type: string
          description: version_id from listVersions.
    ListVersionsResponse:
      type: object
      required:
      - success
      - site_id
      - versions
      properties:
        success:
          type: boolean
        site_id:
          type: integer
        url:
          type: string
        versions:
          type: array
          items:
            $ref: '#/components/schemas/Version'
    RestoreVersionResponse:
      type: object
      required:
      - success
      - site_id
      - restored_version
      properties:
        success:
          type: boolean
        message:
          type: string
        site_id:
          type: integer
        url:
          type: string
        restored_version:
          type: string
  responses:
    RateLimited:
      description: More than 60 requests per minute.
      headers:
        Retry-After:
          description: Seconds to wait.
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Przekroczono limit zapytań (60/min). Spróbuj ponownie za chwilę.
            retry_after: 30
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Nieprawidłowy klucz API.
    BadRequest:
      description: Invalid input, unknown site, limit reached or wrong HTTP method.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Strona nie istnieje lub nie masz do niej dostępu.
    Forbidden:
      description: Account blocked or expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Konto wygasło. Zaloguj się do panelu, aby przedłużyć.
  headers:
    RateLimitLimit:
      description: Requests allowed per minute.
      schema:
        type: integer
    RateLimitRemaining:
      description: Requests left in the current minute.
      schema:
        type: integer
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: hk_ API key
      description: 'API key from Dashboard > API & tools (starts with hk_). Header: Authorization: Bearer hk_...'