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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/maketa-pro:maketa-pro-screens-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
openapi: 3.2.0
info:
title: Maketa Screens 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: screens
description: Экраны из кода и ветки
paths:
/screen/push:
post:
tags:
- screens
operationId: pushCodeScreen
summary: Upsert code-экрана из кода (CI, maketa_sync)
description: Требует проектный ключ mk_pk_ этой доски в заголовке x-maketa-key (песочный mk_sb_ здесь не действует). Upsert по стабильному `key` (например, роуту), каждая загрузка — новая версия. `screen` — экран модели v2 (`slots` + `nodes`); старый плоский `{objects:[…]}` пока принимается ради ещё не переписанных экстракторов, но новый код должен слать дерево.
security:
- maketaKey: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- id
- key
- screen
properties:
id:
type: string
key:
type: string
description: Стабильный ключ экрана, 1–80 симв. [A-Za-z0-9_./-]
screen:
$ref: '#/components/schemas/Screen'
meta:
type: object
properties:
repo:
type: string
route:
type: string
commit:
type: string
method:
type: string
responses:
'200':
description: Экран синхронизирован
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
screenId:
type: string
version:
type: integer
screens:
type: integer
'400':
$ref: '#/components/responses/BadRequest'
'402':
$ref: '#/components/responses/PlanLimit'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
description: too_many_screens
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'410':
$ref: '#/components/responses/Gone'
'429':
$ref: '#/components/responses/TooMany'
/screen/branch:
post:
tags:
- screens
operationId: branchScreen
summary: Создать редактируемую ветку экрана
description: 'Право: edit-токен (поле edit), сессия владельца или песочный ключ своей доски (x-maketa-key). Проектный ключ mk_pk_ ветку НЕ создаёт (push-only) — ответ 403 forbidden_for_project_key. Для code-экранов ветка — единственный способ правки.'
security:
- {}
- maketaKey: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- id
- screenId
properties:
id:
type: string
screenId:
type: string
edit:
type: string
name:
type: string
responses:
'200':
description: Ветка создана
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
screenId:
type: string
parentId:
type: string
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PlanLimit'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
description: too_many_screens
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'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 дней после истечения ключа
Look:
type: object
description: Оформление узла.
properties:
bg:
type: string
description: '#hex, `none` или `transparent`'
border:
type: string
description: '#hex, `none` или `transparent`'
borderW:
type: number
minimum: 0
maximum: 12
radius:
description: 'Скругление: число или `[tl, tr, br, bl]`, 0–400'
anyOf:
- type: number
minimum: 0
maximum: 400
- type: array
items:
type: number
minItems: 4
maxItems: 4
shadow:
type: string
enum:
- none
- soft
- card
description: 'Три состояния вместо числа elevation: плоско / чуть приподнято / карточка'
opacity:
type: number
minimum: 0
maximum: 1
additionalProperties: false
Layout:
type: object
description: 'Правила раскладки детей. Только у контейнера (узла с `children`). Закон, взятый у Flutter/Compose/SwiftUI дословно: ограничения идут вниз, размеры идут вверх, положение задаёт родитель.'
properties:
dir:
type: string
enum:
- down
- right
- over
- wrap
default: down
description: down — колонкой вниз; right — строкой вбок; over — свободное размещение (ребёнок ставится точкой `at` и смещением `dx`/`dy`); wrap — сеткой с переносом.
pad:
description: 'Внутренние отступы: число, `[верт, гориз]` или `[верх, право, низ, лево]`. 0–400.'
anyOf:
- type: number
minimum: 0
maximum: 400
- type: array
items:
type: number
minItems: 1
maxItems: 4
gap:
type: number
minimum: 0
maximum: 400
description: Зазор между детьми. Внешних отступов (`margin`) у узла нет — зазор задаёт только родитель.
main:
type: string
enum:
- start
- center
- end
- between
- around
- evenly
default: start
description: Выравнивание вдоль оси `dir`
cross:
type: string
enum:
- start
- center
- end
- stretch
default: start
description: Выравнивание поперёк оси `dir`; stretch распрямляет детей с размером `hug` на всю поперечную ширину
scroll:
type: boolean
description: true — содержимое прокручивается по оси `dir`
cols:
type: integer
minimum: 1
maximum: 12
description: 'Число колонок; имеет смысл при `dir: "wrap"`'
visible:
type: number
minimum: 1
maximum: 12
description: 'Сколько карточек ВИДНО в кадре у горизонтальной ленты: 2, 2.5, 3 (шаг 0.1). Так и задаётся ширина карточки — пикселями её не задают, иначе лента разъезжается на другом устройстве. Половинка означает «край следующей карточки виден» — подсказка, что список листается.'
additionalProperties: false
Action:
type: object
description: Что делает нажатие. Режим открытия читается из `action.mode` — отдельного поля `linkMode` в v2 нет.
required:
- t
properties:
t:
type: string
enum:
- goto
- show
- none
description: goto — перейти на экран; show — переключить блоки на ТОМ ЖЕ экране (вкладки, шаги формы, раскрытие); none — ничего
screen:
type: string
description: 'Для `goto`: id существующего экрана. Ссылка в никуда — отказ `unknown_screen`.'
mode:
type: string
enum:
- push
- modal
- dialog
- replace
description: 'Для `goto`: экраном целиком (push, умолчание), шторкой снизу (modal), окном по центру (dialog) или заменой без возврата (replace)'
show:
type: array
maxItems: 30
items:
type: string
description: 'Для `show`: id узлов, которые надо показать'
hide:
type: array
maxItems: 30
items:
type: string
description: 'Для `show`: id узлов, которые надо спрятать'
additionalProperties: false
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
NodeContent:
type: object
description: 'Содержимое узла — поля зависят от `type`:
· `text` — text (≤5000), size 8–200, weight 100–900 сотнями, color #hex, align left|center|right, lines (обрезать N строками, 0 — не обрезать), emoji: true для текста-иконки;
· `image` — src (только `data:image/…`, ≤2 МБ), fit cover|contain|fill, ratio 0.05–20 (отношение сторон вместо высоты);
· `button` — text, icon (эмодзи), kind filled|tonal|text, size, weight, color, align;
· `input` — placeholder, value, search: true (лупа слева), kind text|password|multiline;
· `choice` — items (до 20 × `{text, on}`), multi: true (галочки вместо «один из»), active (0-based);
· `tabs` — items (до 8 × `{text, icon, link (id экрана), shows (id блока), action}`), active (0-based), variant bottom|pill|underline|segmented, color, muted, activeText;
· `item` — slots `{lead, title, sub, trail}`: это РОЛИ над уже существующими узлами экрана («вот этот здесь за значок»), а не отдельные дети. Один и тот же узел законно стоит и в `children`, и в роли.
У `stack` и `screen` содержимого нет — они только контейнеры.'
additionalProperties: true
Screen:
type: object
description: 'Экран модели v2: метаданные, `slots` (что стоит сверху, в теле, снизу и поверх) и `nodes` — плоская карта узлов, дерево внутри неё задают массивы `children`. Абсолютных координат нет ни у одного узла. kind: design (правится) | code (из кода, заблокирован — правки через ветку).'
properties:
id:
type: string
description: 1–40 симв. [A-Za-z0-9_-]
name:
type: string
device:
type: string
description: модель из /devices.json, например iphone-15
w:
type: number
default: 393
description: 40–4000 px
h:
type: number
default: 852
description: 40–4000 px
bg:
type: string
default: '#FFFFFF'
safe:
type: boolean
default: true
description: Учитывать безопасные зоны устройства — вырез сверху и полосу-домой снизу.
kind:
type: string
enum:
- design
- code
locked:
type: boolean
parentId:
type:
- string
- 'null'
description: id родителя, если экран — ветка
branches:
type: array
items:
type: string
description: id веток (связь двусторонняя)
slots:
$ref: '#/components/schemas/Slots'
nodes:
type: object
description: 'Карта узлов экрана: ключ — id узла (1–40 симв. [A-Za-z0-9_-]), значение — сам узел. Карта, а не вложенные объекты, потому что узел адресуется по id из действий, из панели структуры и из MCP. Не больше 1000 узлов на экран и 5000 на макет.'
additionalProperties:
$ref: '#/components/schemas/Node'
additionalProperties: true
Node:
type: object
required:
- type
description: 'Узел дерева экрана. Координат у узла НЕТ: место задаёт родитель порядком в `children` и своей раскладкой (`layout`). Полей `x`, `y`, `margin`, `flex`, `zIndex` не существует — внешний зазор задаётся `gap` родителя, порядок отрисовки — позицией в `children`.
Целостность проверяется на входе и нарушение — отказ 400 с указанием узла: `bad_node_type` (неизвестный тип), `unknown_node` (ссылка в никуда), `node_two_parents` (узел встречается ребёнком дважды), `tree_cycle`, `too_deep` (глубже 12), `unknown_screen` (действие ведёт на несуществующий экран).'
properties:
id:
type: string
description: 1–40 симв. [A-Za-z0-9_-]; уникален в пределах экрана
type:
type: string
enum:
- screen
- stack
- item
- text
- image
- button
- input
- choice
- tabs
description: 'Девять типов, больше нет. `stack` — контейнер, из которого собирается ВСЁ: карточка (фон + скругление), список (`dir: down` с `gap`), лента (`dir: right` со `scroll` и `visible`), сетка (`dir: wrap` с `cols`), шапка, разделитель (`h: 1` с `look.bg`). `item` — пункт списка со слотами lead/title/sub/trail. Кнопка — `button`, а не прямоугольник с надписью; поле ввода — `input`; группа переключателей — один `choice`; нижнее меню — один `tabs`.'
name:
type: string
description: Человеческое имя узла — его видно в панели структуры
children:
type: array
items:
type: string
description: id детей по порядку — только у контейнеров. Каждый узел встречается ребёнком РОВНО ОДИН раз во всём экране.
w:
description: 'Размер по оси: `hug` — по содержимому (умолчание, поле можно не писать), `fill` — занять всё свободное место родителя, число — px (0–4000). Коэффициентов роста и базисов нет намеренно.'
anyOf:
- type: string
enum:
- hug
- fill
- type: number
minimum: 0
maximum: 4000
h:
description: 'Размер по оси: `hug` — по содержимому (умолчание, поле можно не писать), `fill` — занять всё свободное место родителя, число — px (0–4000). Коэффициентов роста и базисов нет намеренно.'
anyOf:
- type: string
enum:
- hug
- fill
- type: number
minimum: 0
maximum: 4000
layout:
$ref: '#/components/schemas/Layout'
look:
$ref: '#/components/schemas/Look'
content:
$ref: '#/components/schemas/NodeContent'
action:
$ref: '#/components/schemas/Action'
hidden:
type: boolean
description: true — блок лежит на экране, но не показывается, пока его не откроет действие `{t:"show"}` (вкладки, шаги формы, раскрытие)
repeat:
type: integer
minimum: 2
maximum: 50
description: 'Повторитель: нарисовать узел N раз подряд внутри родителя. Список из десяти строк — ОДИН узел с `repeat: 10`, а не десять копий; правится образец — меняются все. Больше 50 обрезается до 50 (это не отказ). Работает у прямого ребёнка контейнера с `dir` ≠ `over`.'
at:
type: string
enum:
- top-left
- top-center
- top-right
- center-left
- center
- center-right
- bottom-left
- bottom-center
- bottom-right
description: 'Только внутри контейнера с `dir: "over"` (и в слое `over` экрана): к какой из девяти точек родителя прижать узел.'
dx:
type: number
description: Смещение от точки `at` по горизонтали, px
dy:
type: number
description: Смещение от точки `at` по вертикали, px
additionalProperties: false
Slots:
type: object
description: Места экрана; любое может отсутствовать. Шапка и нижнее меню не прокручиваются, тело занимает остаток высоты, слой `over` лежит поверх всего экрана. Узел, стоящий в слоте, не может одновременно лежать внутри другого узла — это `node_two_parents`.
properties:
top:
type: string
description: id узла-шапки — не прокручивается
body:
type: string
description: id узла с прокручиваемым содержимым
bottom:
type: string
description: id узла нижнего меню — не прокручивается
over:
type: array
maxItems: 50
items:
type: string
description: 'слой поверх: плавающие кнопки, подсказки. Ребёнок такого слоя ставится полем `at` и смещением `dx`/`dy`.'
additionalProperties: false
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'
Unauthorized:
description: Нет или неверный/просроченный ключ (bad_key | key_expired | no_key). hint подскажет, как получить новый.
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_.