rombik R API

The R API from rombik — 2 operation(s) for r.

GitHub OpenAPI

Operations 2

POST /r Тимчасовий публічний лінк на результат (1 година) #
GET /r/{token} Забрати результат за тимчасовим лінком #

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/rombik-app:rombik-app-r-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

rombik-app-r-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: rombik R API
  version: 1.4.5
  description: 'Генерація блок-схем алгоритмів з коду за ДСТУ. Той самий рушій, що й на сайті rombik, по HTTP. Авторизація — API-ключем (rk_…) у заголовку X-API-Key або Authorization: Bearer. Рендер за ключем — у тарифі Pro; кожен експортований файл іде в місячний ліміт тарифу. Стороннім застосункам доступний вхід «через rombik» — OAuth 2.0 з PKCE + OIDC: див. /oauth/token.'
servers:
- url: https://rombik.app/api/v1
security:
- ApiKeyAuth: []
tags:
- name: R
paths:
  /r:
    post:
      summary: Тимчасовий публічний лінк на результат (1 година)
      description: Кладе готовий файл у тимчасове сховище і повертає посилання на нього — для клієнтів, які не показують файли (чат-боти, вебхуки, листи). Тіло запиту — САМ файл (байти з /render), Content-Type — його MIME. Посилання живе годину; картинки й PDF відкриваються в браузері, решта віддається на завантаження. У CLI те саме робить прапорець --link.
      parameters:
      - name: name
        in: query
        required: false
        schema:
          type: string
        description: Імʼя файлу для завантаження (напр. schema.pdf)
      requestBody:
        required: true
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: Посилання на результат
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TempLink'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
      tags:
      - R
      operationId: postR
      x-operation-id-source: derived
  /r/{token}:
    get:
      summary: Забрати результат за тимчасовим лінком
      description: Публічно (без ключа) — посилання й є секретом. Після спливання години повертає 404.
      security: []
      parameters:
      - name: token
        in: path
        required: true
        schema:
          type: string
        description: Токен із відповіді POST /r
      responses:
        '200':
          description: Файл із тим самим MIME, що клали
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        '404':
          description: Лінк недійсний або протермінований
      tags:
      - R
      operationId: getRByToken
      x-operation-id-source: derived
components:
  responses:
    Error:
      description: Помилка
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                description: людський опис
              code:
                type: string
                description: 'машиночитаний код (стабільний; гілкуйся по ньому, не по тексту): unauthorized, pro_required, no_credits, fair_use, plan_conflict, unknown_format, unknown_lang, bad_request, bad_source, render_failed, rate_limited, payment_unavailable, server_error, busy, chart_too_large, fn_not_found, empty_chart'
                enum:
                - unauthorized
                - pro_required
                - no_credits
                - fair_use
                - plan_conflict
                - unknown_format
                - unknown_lang
                - bad_request
                - bad_source
                - render_failed
                - rate_limited
                - payment_unavailable
                - server_error
                - busy
                - chart_too_large
                - fn_not_found
                - empty_chart
  schemas:
    TempLink:
      type: object
      properties:
        url:
          type: string
          format: uri
          description: Публічне посилання на файл
        expiresIn:
          type: integer
          description: Скільки секунд житиме посилання (3600)
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
    OAuth2:
      type: oauth2
      description: '«Увійти через rombik»: користувач дає згоду у своєму акаунті, а застосунок отримує ключ до API від його імені. PKCE S256 обов’язковий для клієнтів без секрета.'
      flows:
        authorizationCode:
          authorizationUrl: https://rombik.app/oauth/authorize
          tokenUrl: https://rombik.app/api/v1/oauth/token
          scopes:
            api: виклики API від імені користувача (за його тарифом)
            openid: видати id_token з ідентичністю
            email: пошта користувача
            profile: ім’я користувача
x-rate-limit: /render — без ліміту запитів (обмежений місячним лімітом тарифу). /me, /topup, /products — 60 запитів/хв на ключ; при перевищенні — 429 із заголовком Retry-After.