rombik Top Up API
The Top Up API from rombik — 1 operation(s) for top up.
The Top Up API from rombik — 1 operation(s) for top up.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/rombik-app:rombik-app-top-up-api"
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.
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: 3.2.0
info:
title: rombik Topup 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: Top Up
paths:
/topup:
post:
summary: Оплата тарифу — лінк на оплату (лише Україна, грн)
description: 'Створює pending-платіж і повертає посилання на оплату plata by mono (картка / Apple·Google Pay). ⚠️ УВАГА: оплата тут — ЛИШЕ для України (у гривні). Міжнародним користувачам: оформлюйте тариф на сайті rombik.app — там є оплата карткою в USD (Paddle), а API-ключем далі користуйтесь як завжди (тариф той самий). Тіло: {kind: plan, id} — id особистого тарифу з /products. 409 plan_conflict — Студент, поки діє Pro.'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/TopupRequest'
responses:
'200':
description: Лінк на оплату
content:
application/json:
schema:
$ref: '#/components/schemas/TopupResponse'
'400':
$ref: '#/components/responses/Error'
'401':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
'503':
$ref: '#/components/responses/Error'
'500':
$ref: '#/components/responses/Error'
tags:
- Top Up
operationId: postTopup
x-operation-id-source: derived
components:
schemas:
TopupResponse:
type: object
description: 'ЄДИНА форма для всіх провайдерів — ключі однакові, різняться лише значення (гілкуйся по provider, а не по наявності полів). plata by mono (активний): payUrl — платіжна сторінка, iframe=true у вебі. jar (запасний): payUrl — банка, iframe=false, invoiceId порожній, code — коментар для ручного переказу.'
properties:
provider:
type: string
enum:
- plata
- jar
description: 'Провайдер оплати: plata by mono (картка / Apple·Google Pay) або jar (monobank-банка)'
payUrl:
type: string
description: 'Посилання на оплату — відкрий у браузері (plata: сторінка; jar: банка з готовими сумою+кодом)'
iframe:
type: boolean
description: Чи можна вбудувати payUrl в iframe (plata у вебі → true; CLI/API та jar → false — відкривай лінком)
invoiceId:
type: string
description: id інвойса для звірки статусу/повернення (plata; для jar — порожній рядок)
code:
type: string
description: Код платежу для звірки статусу через /pay/verify (для jar — ще й коментар до ручного переказу)
label:
type: string
description: Людська назва покупки (напр. «Студент · місяць (30 дн.)»)
plan:
type: string
enum:
- student
- pro
days:
type: integer
description: Скільки днів тарифу дасть оплата
amountKop:
type: integer
description: Сума в копійках
amountUah:
type: number
description: Сума в гривнях
TopupRequest:
type: object
required:
- kind
- id
properties:
kind:
type: string
enum:
- plan
id:
type: integer
description: id особистого тарифу (Студент або Pro) з /products
provider:
type: string
enum:
- plata
- jar
- paddle
description: 'необов''язково: paddle → оплата в USD через Paddle (міжнародна); порожньо → серверний дефолт (plata/jar, ₴)'
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
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.