Maketa Keys API

Проектные ключи mk_pk_ (постоянный headless-доступ к одной доске, push-only: POST /screen/push и push-инструменты MCP; хранятся как sha256)

GitHub OpenAPI

Operations 3

POST /project/key Выдать проектный ключ mk_pk_ (показывается один раз; push-only, на диске sha256) #
GET /project/keys Список проектных ключей доски (без секретов) #
POST /project/key/revoke Отозвать проектный ключ #

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/maketa-pro:maketa-pro-keys-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

maketa-pro-keys-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Maketa Keys API
  version: 2.0.0
  summary: Публичный API конструктора экранов Maketa (доски, экраны-деревья, автономные ИИ-агенты)
  description: 'Maketa — программируемый конструктор экранов приложений. Модель сцены — JSON `maketa.board.v2`: экран не список фигур, а ДЕРЕВО узлов. Своих координат у узла нет — место задаёт родитель порядком в `children` и своей раскладкой.


    Путь автономного агента без человека: `POST /agent/register` → ключ `mk_sb_…` (заголовок `x-maketa-key`) → `POST /create` → `POST /save` → поделиться ссылкой `https://maketa.pro/app/?b=` → `GET /load?id=` читается любым (linkAccess=view по умолчанию).


    Все ошибки — JSON `{error, hint?}`: `error` — стабильный машинный код, `hint` — по-русски, что делать. Нарушение целостности дерева (висячая ссылка, узел у двух родителей, цикл, глубина >12) — это 400 с указанием экрана и узла, а не тихая починка. 410 Gone — доска удалена навсегда.


    Песочный ключ mk_sb_ живёт 14 дней и НЕ даёт ИИ-функции (/ai/*) и оплату. Постоянный доступ (проектный ключ mk_pk_) выдаёт владелец доски. MCP-endpoint: POST /mcp (OAuth 2.1, либо Bearer mk_pk_/mk_sb_). Документация: https://maketa.pro/docs/ и https://maketa.pro/llms.txt'
  contact:
    name: Студия demda.pro
    url: https://demda.pro/
servers:
- url: https://maketa.pro/maketa/api
tags:
- name: Keys
  description: 'Проектные ключи mk_pk_ (постоянный headless-доступ к одной доске, push-only: POST /screen/push и push-инструменты MCP; хранятся как sha256)'
paths:
  /project/key:
    post:
      tags:
      - Keys
      operationId: createProjectKey
      summary: Выдать проектный ключ mk_pk_ (показывается один раз; push-only, на диске sha256)
      description: 'Право: сессия владельца доски или edit-токен (поле edit). Ключ даёт headless-доступ (push экранов из кода, MCP) в рамках одной доски и не истекает, пока не отозван.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - id
              properties:
                id:
                  type: string
                edit:
                  type: string
                label:
                  type: string
                  maxLength: 60
      responses:
        '200':
          description: Ключ выдан
          content:
            application/json:
              schema:
                type: object
                properties:
                  key:
                    type: string
                  label:
                    type: string
        '400':
          $ref: '#/components/responses/BadRequest'
        '402':
          $ref: '#/components/responses/PlanLimit'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: too_many_keys
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '410':
          $ref: '#/components/responses/Gone'
        '429':
          $ref: '#/components/responses/TooMany'
  /project/keys:
    get:
      tags:
      - Keys
      operationId: listProjectKeys
      summary: Список проектных ключей доски (без секретов)
      parameters:
      - name: id
        in: query
        required: true
        schema:
          type: string
      - name: edit
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Ключи
          content:
            application/json:
              schema:
                type: object
                properties:
                  keys:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: публичный id ключа — им отзывают
                        label:
                          type: string
                        hint:
                          type: string
                        createdAt:
                          type: integer
                        lastUsed:
                          type: integer
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '410':
          $ref: '#/components/responses/Gone'
  /project/key/revoke:
    post:
      tags:
      - Keys
      operationId: revokeProjectKey
      summary: Отозвать проектный ключ
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - id
              properties:
                id:
                  type: string
                  description: id доски
                edit:
                  type: string
                keyId:
                  type: string
                  description: поле id из GET /project/keys — так отзывают из интерфейса
                key:
                  type: string
                  description: сам ключ mk_pk_…, если он есть у клиента
      responses:
        '200':
          description: Отозвано
          content:
            application/json:
              schema:
                type: object
                properties:
                  revoked:
                    type: integer
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '410':
          $ref: '#/components/responses/Gone'
components:
  schemas:
    GoneError:
      allOf:
      - $ref: '#/components/schemas/Error'
      - type: object
        properties:
          deletedAt:
            type:
            - integer
            - 'null'
            description: Unix ms удаления
          reason:
            type: string
            description: Например sandbox_expired — доска песочницы удалена спустя 30 дней после истечения ключа
    PlanLimit:
      type: object
      required:
      - error
      - limit
      - used
      - max
      - hint
      properties:
        error:
          type: string
          enum:
          - plan_limit
        limit:
          type: string
          enum:
          - boards
          - screens
          - bytes
          - collaborators
          - flex
          - mcpKeys
          - mcpWrite
          - seats
          - team
        used:
          type: integer
        max:
          type: integer
          description: Предел действующего тарифа
        plan:
          type: string
          enum:
          - free
          - pro
          - studio
        upgrade:
          type:
          - string
          - 'null'
          enum:
          - pro
          - studio
          - null
        hint:
          type: string
        readOnly:
          type: boolean
          description: 'В ответе /load и /rev: макет открыт только для просмотра после перехода на «Бесплатно»'
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
          description: 'Стабильный машинный код: bad_id, bad_doc, bad_key, key_expired, no_key, forbidden, not_found, gone, conflict, quota_boards, quota_saves, too_many, too_many_keys, too_many_screens, too_many_objects, doc_too_large. Целостность дерева v2: bad_nodes, bad_node, bad_node_id, bad_node_type, bad_children, bad_child_ref, bad_slot, bad_screen, bad_screen_size, duplicate_screen, unknown_node, unknown_screen, node_two_parents, tree_cycle, too_deep — такой ответ дополнительно несёт screen и node. Предел тарифа — отдельный ответ 402 plan_limit (см. PlanLimit).'
        hint:
          type: string
          description: 'Человеко- и агенто-читаемая подсказка по-русски: что сделать, чтобы запрос удался'
        retryAfterMin:
          type: integer
          description: 'Для 429: через сколько минут окно лимита сбросится'
        screen:
          type: string
          description: 'Для отказов по дереву: id экрана, на котором нашлась ошибка'
        node:
          type: string
          description: 'Для отказов по дереву: id узла, из-за которого отказ'
      additionalProperties: true
  responses:
    TooMany:
      description: Rate limit / квота (too_many | quota_saves); retryAfterMin — минут до сброса окна
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    PlanLimit:
      description: 'plan_limit — предел тарифа (только при включённых тарифах, MAKETA_PLANS=1). limit: boards | screens | bytes | collaborators | flex | mcpKeys | mcpWrite | seats; used/max — числа; upgrade — какой тариф снимает предел (pro | studio | null); hint — подсказка по-русски. Просмотр по ссылке, экспорт экрана и чтение через API не ограничиваются никогда.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PlanLimit'
    Gone:
      description: Удалено навсегда (gone) — с deletedAt и reason
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GoneError'
    Forbidden:
      description: Прав нет (forbidden | quota_boards)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: Некорректный запрос
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Не существует (not_found)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    maketaKey:
      type: apiKey
      in: header
      name: x-maketa-key
      description: Песочный ключ агента mk_sb_… (POST /agent/register) или проектный ключ доски mk_pk_… (POST /project/key).
    editToken:
      type: apiKey
      in: query
      name: edit
      description: Секретный edit-токен доски из ответа POST /create (в POST-ручках передаётся полем edit в теле).
    mcpBearer:
      type: http
      scheme: bearer
      description: OAuth 2.1 access-токен, либо непосредственно ключ mk_pk_/mk_sb_.