rombik OAuth API

The Oauth API from rombik — 3 operation(s) for oauth.

GitHub OpenAPI

Operations 3

POST /oauth/token Обмін коду авторизації на токен #
GET /oauth/userinfo Хто цей користувач (OIDC userinfo) #
GET /oauth/jwks Публічні ключі для перевірки id_token (JWKS) #

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-oauth-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-oauth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: rombik OAuth 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: OAuth
paths:
  /oauth/token:
    post:
      summary: Обмін коду авторизації на токен
      description: 'Вхід «через rombik» у три кроки. 1) Опублікуй на своєму домені JSON-документ метаданих клієнта (CIMD) {"client_id": "", "client_name": "…", "redirect_uris": ["https://…/callback"]} — його https-URL і є client_id, реєстрація не потрібна; користувач на сторінці згоди бачить домен застосунку. Конфіденційного клієнта з секретом видає адміністрація rombik на запит. 2) Відправ користувача на https://rombik.app/oauth/authorize?response_type=code&client_id=…&redirect_uri=…&scope=openid+email+api&state=…&code_challenge=…&code_challenge_method=S256. 3) Обміняй code тут. Метадані: https://rombik.app/.well-known/oauth-authorization-server, OIDC — https://rombik.app/.well-known/openid-configuration. RFC 6749; тіло — application/x-www-form-urlencoded. Секрет конфіденційного клієнта передається у формі (client_secret) або в HTTP Basic. CIMD-клієнт секрета не має і зобов’язаний використати PKCE S256, redirect_uri мусить збігатися з тим, що був в authorize. Отриманий access_token — це звичайний ключ API rombik (rk_…): ним викликають /render і решту ендпоінтів, а рендер іде за тарифом користувача, який дав згоду (потрібен Pro). Термін дії не обмежений; користувач відкликає доступ у своєму акаунті (ключ зникає). Зі scope openid у відповіді додатково приходить id_token (RS256; ключі — GET /oauth/jwks).'
      security: []
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/OAuthTokenRequest'
      responses:
        '200':
          description: Токен доступу (плюс id_token за scope openid)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthTokenResponse'
        '400':
          $ref: '#/components/responses/OAuthError'
        '401':
          $ref: '#/components/responses/OAuthError'
      tags:
      - OAuth
      operationId: postOauthToken
      x-operation-id-source: derived
  /oauth/userinfo:
    get:
      summary: Хто цей користувач (OIDC userinfo)
      description: 'Ідентичність власника токена. Токен — у заголовку Authorization: Bearer.'
      security:
      - OAuth2:
        - openid
      responses:
        '200':
          description: Профіль користувача
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserInfo'
        '401':
          $ref: '#/components/responses/OAuthError'
      tags:
      - OAuth
      operationId: getOauthUserinfo
      x-operation-id-source: derived
  /oauth/jwks:
    get:
      summary: Публічні ключі для перевірки id_token (JWKS)
      description: Набір ключів RFC 7517. Перевіряй підпис id_token за kid із його заголовка.
      security: []
      responses:
        '200':
          description: Набір ключів
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JWKS'
      tags:
      - OAuth
      operationId: getOauthJwks
      x-operation-id-source: derived
components:
  schemas:
    JWKS:
      type: object
      properties:
        keys:
          type: array
          items:
            type: object
            properties:
              kty:
                type: string
              use:
                type: string
              alg:
                type: string
              kid:
                type: string
              n:
                type: string
              e:
                type: string
    OAuthTokenResponse:
      type: object
      properties:
        access_token:
          type: string
          description: ключ API rombik (rk_…) — ним викликають /render та інші ендпоінти
        token_type:
          type: string
          enum:
          - bearer
        scope:
          type: string
          description: видані області, розділені пробілом
        id_token:
          type: string
          description: 'JWT RS256 з ідентичністю (лише зі scope openid): iss, sub, aud, exp, email, email_verified, name, nonce'
    UserInfo:
      type: object
      properties:
        sub:
          type: string
          description: стабільний ідентифікатор користувача в rombik
        email:
          type: string
        email_verified:
          type: boolean
          description: 'завжди true: вхід лише через провайдерів із підтвердженою поштою або через лист-посилання'
        name:
          type: string
    OAuthTokenRequest:
      type: object
      required:
      - grant_type
      - code
      - redirect_uri
      - client_id
      properties:
        grant_type:
          type: string
          enum:
          - authorization_code
        code:
          type: string
          description: одноразовий код зі сторінки згоди; живе 10 хвилин
        redirect_uri:
          type: string
          description: той самий, що в authorize-запиті
        client_id:
          type: string
        client_secret:
          type: string
          description: для конфіденційного клієнта, якщо не передано в HTTP Basic
        code_verifier:
          type: string
          description: 'PKCE: рядок, чий S256-хеш дорівнює code_challenge з authorize'
  responses:
    OAuthError:
      description: Помилка OAuth (RFC 6749 §5.2)
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                description: 'код помилки: invalid_request, invalid_client, invalid_grant, unsupported_grant_type, invalid_client_metadata, invalid_redirect_uri, server_error'
                enum:
                - invalid_request
                - invalid_client
                - invalid_grant
                - unsupported_grant_type
                - invalid_client_metadata
                - invalid_redirect_uri
                - invalid_token
                - server_error
              error_description:
                type: string
                description: людський опис
  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.