Tuqo Content API
Content editor: edit page fields on Start or higher, and collection records on Pro or higher, then publish the draft
Content editor: edit page fields on Start or higher, and collection records on Pro or higher, then publish the draft
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/tuqo-ru:tuqo-ru-content-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: Tuqo Ru Content API
version: '2026-11-14'
contact:
name: Tuqo Support
url: https://tuqo.ru/support/
license:
name: Tuqo Public Offer
url: https://tuqo.ru/legal/offer/
termsOfService: https://tuqo.ru/legal/
description: 'Operations tagged content across 2 of this provider''s published API definitions: openapi.json, tuqo-ru-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.tuqo.ru
description: Production
security:
- apiKey: []
tags:
- name: Content
description: 'Content editor: edit page fields on Start or higher, and collection records on Pro or higher, then publish the draft'
paths:
/api/v1/sites/{id}/content:
get:
tags:
- Content
operationId: get_content
summary: 'Get site content: schema, draft, published revision'
description: 'Read the schema, versioned draft, published revision and issues. content_fields and content_records describe plan access. publishable_changes reports changes the current plan can publish. pending_record_changes reports retained collection edits outside the current plan. Static sites declare fields in data-tuqo HTML markup, optionally enriched by tuqo.content.json. A Node build declares its schema and JSON/Markdown inputs in tuqo.content.json with output=files. build_files=true means content publication rebuilds the saved source and uses build minutes. connected=false means the live version does not supply an editor schema. When stored_only=true, schema, draft and version describe the retained content from an earlier layout. Reconnect a compatible layout to edit or publish it. After an upgrade to Start or above, a supported live version can connect on the first call using its initial values. Returns 402 on Free. `pending` — a version whose new layout loses content and waits for a decision: its `deploy_id`, `changes` and `schema`. `beta` — the editor is in beta; the note says where the user can report problems and ideas (Tuqo support). Entry pages (a list with a `/_entry.html` template marked ``): `schema.lists.X.entry` has `template`, `base`, `page_size`, `rss`, `feed`; the record field `url` is computed (`computed: true`, read-only); `urls` — `{list: {id: {url, href, status, redirects_from}}}` with the addresses the next publish gives (`status`: `live` — already on the site, `pending` — appears or changes after publish, `draft` — no page while hidden, `no_page` — the publication gives no page: `reason` says why); `base_url` — the site address used for canonical, sitemap and RSS; `sitemap` and `feeds` of the live version; `address_changed` — the site address changed since publishing (publish again).'
x-scope: readonly
x-permission: 'content: view'
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Site id (UUID). The site must belong to the key's project, otherwise 404.
responses:
'200':
description: Content view
content:
application/json:
schema:
type: object
properties:
connected:
type: boolean
description: Whether the live deploy currently exposes an editable schema.
stored_only:
type: boolean
description: True when the retained draft is available for reading after the live layout lost its editor schema.
content_fields:
type: boolean
description: Whether the owner's plan includes page field editing.
content_records:
type: boolean
description: Whether the owner's plan includes collection editing.
publishable_changes:
type: boolean
description: Whether the current layout and plan allow publishing draft changes.
pending_record_changes:
type: boolean
description: Whether the draft retains unpublished record edits outside the current plan.
build_files:
type: boolean
description: Whether the active version writes content into source files before a Node build.
'402':
description: 'Start or higher is required to use the editor (feature: content_fields, required_plan: starter).'
'404':
description: Site not found
patch:
tags:
- Content
operationId: update_content
summary: Edit the content draft in one atomic batch
description: 'Applies single-field changes and list operations to the draft. Any error — nothing is saved (422 with `errors`). Visitors see nothing until publish. Without `version` the batch is applied to the latest draft (retried on concurrent writes). `renames` (applied first) move a field''s values to a new name after a layout change and keep the old name as an alias. Fields of a version waiting for a decision (`pending.schema` in GET) are accepted too. Entry pages: `url` of such a list is computed and cannot be written (`computed_field`); set `slug` on `add`/`update` instead — lowercase latin letters, digits and `-` (not at the ends, not doubled), up to 80 characters, not page/index/rss/feed/sitemap (otherwise `invalid_slug`), `""` removes the explicit one; a list without entry pages refuses it (`slug_without_entry_pages`). A slug taken by another record (now or before, drafts included), a code file or another record of the batch is refused (`slug_taken`). On a site with entry pages, write addresses in values (images, links, url fields) from the root (/img/a.jpg) or as full URLs: the call refuses relative ones (`relative_address`, 422); older relative values stay as they are on the code pages and are resolved on entry and list pages from a stable page (for a single field — the home page if it shows the field, otherwise the first code page that does; for list records, including a record''s own fields on its entry page, the page the list was seeded from). Former `url` values move out with `renames` (`{"list": "news", "from": "url", "to": "link"}`). The response has `urls` of the touched records and `warnings` (`entry_address_changes`: the old address redirects after publish).'
x-scope: editor
x-permission: 'content: edit'
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Site id (UUID). The site must belong to the key's project, otherwise 404.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
version:
type: integer
description: Draft version you read (get); the call fails with 409 if the draft changed since
dry_run:
type: boolean
description: Validate and return the resulting draft without saving (images are not uploaded)
fields:
type: object
additionalProperties: true
description: 'Single fields by key: {"hero.title": "New title"}; null empties a field. Images: {"src", "alt"} where src is a site path, https:// or data:image/…;base64 (jpeg, png, gif, webp, avif; up to 5 MB each and 30 MB per call)'
records:
type: array
description: List operations, applied in order
items:
type: object
required:
- op
- list
properties:
op:
type: string
enum:
- add
- update
- delete
- move
list:
type: string
description: List name (data-tuqo-list)
id:
type: string
description: Record id (update, delete, move)
values:
type: object
additionalProperties: true
description: Record fields (add; update — only the given ones)
position:
type: integer
description: Place in manual order, 0 = first (add, move)
draft:
type: boolean
description: Hidden from the site until set back to false
slug:
type: string
description: 'Entry page address in the template folder (add, update): "kruassan" → /news/kruassan/; "" removes the explicit one. Lowercase latin, digits, "-" (not at the ends, not doubled), up to 80 characters, not page/index/rss/feed/sitemap (otherwise `invalid_slug`); only lists with entry pages (otherwise `slug_without_entry_pages`); a taken one — `slug_taken`'
renames:
type: array
description: 'Field renames after a layout change: [{"list": "news", "from": "text", "to": "body"}]; without `list` — a single field {"from": "hero.title", "to": "hero.heading"}'
items:
type: object
required:
- from
- to
properties:
list:
type: string
from:
type: string
to:
type: string
responses:
'200':
description: 'Result: `saved`, `version`, `changes`, `added` (ids of new records), `draft`; `pending_deploy_id` — a version waits for a decision after a layout change: publish the content into it (`deploy_id` of publish); `urls` and `warnings` — entry pages of the touched records'
content:
application/json:
schema:
type: object
properties:
saved:
type: boolean
dry_run:
type: boolean
version:
type: integer
description: Draft version after the call
changes:
type: integer
added:
type: array
items:
type: string
description: Ids of new records, in the order of the add operations
errors:
type: array
items:
type: object
description: Empty on success (with errors the status is 422)
draft:
type: object
description: The resulting draft
pending_deploy_id:
type: string
format: uuid
description: A version waits for a decision after a layout change
urls:
type: object
description: 'Entry pages of the touched records (only for lists with entry pages): {list: {id: {url, href, status, redirects_from, reason}}}; status — live (on the live site), pending (appears or changes after publish), draft (no page while hidden), no_page (the publication gives no page: reason says why)'
additionalProperties:
type: object
additionalProperties:
type: object
properties:
url:
type:
- string
- 'null'
description: 'Path from the site root: /news/kruassan/'
href:
type:
- string
- 'null'
description: Absolute address (null without a site address)
status:
type: string
enum:
- live
- pending
- draft
- no_page
redirects_from:
type: array
items:
type: string
description: Former addresses that will redirect here
reason:
type: object
description: 'For no_page: the issue (code, key, message)'
warnings:
type: array
items:
type: object
description: 'Not errors: entry_address_changes — a record address changes after publish, the old one redirects'
'409':
description: The draft changed since `version`
'422':
description: Validation errors; nothing saved
'402':
description: 'Start or higher is required to use the editor (feature: content_fields, required_plan: starter). Collection changes require Pro (feature: content_records, required_plan: pro). A mixed request that changes records is rejected in full.'
servers:
- url: https://api.tuqo.ru
description: Production
/api/v1/sites/{id}/content/files:
get:
tags:
- Content
operationId: get_content_files
summary: Export draft JSON and Markdown files for a local build
x-scope: readonly
x-permission: 'content: view'
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Site id (UUID). The site must belong to the key's project, otherwise 404.
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- version
- code_id
- files
- markdown_dirs
- media
properties:
version:
type: integer
code_id:
type: string
format: uuid
files:
type: array
items:
type: object
required:
- path
- content
properties:
path:
type: string
content:
type: string
maxItems: 2000
description: Combined UTF-8 file content is limited to 16 MiB. Each collection allows up to 1,000 records including hidden ones.
markdown_dirs:
type: array
items:
type: string
media:
type: array
items:
type: string
'400':
description: The active version does not use build content files.
'402':
description: 'Start or higher is required to use the editor (feature: content_fields, required_plan: starter).'
description: For a live build project configured with output=files, export mapped groups and visible records from the current draft. files contains UTF-8 source files. markdown_dirs lists the managed Markdown directories and media lists referenced site-owned image filenames. Use the version and code_id together when saving changes.
post:
tags:
- Content
operationId: update_content_files
summary: Save the complete set of edited files to the draft
x-scope: editor
x-permission: 'content: edit'
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Site id (UUID). The site must belong to the key's project, otherwise 404.
description: Send the complete set of UTF-8 files with the version and code_id returned by a pull. JSON files are required. Omitting a visible record from its JSON array or removing its Markdown file deletes that record from the draft. Hidden records are preserved. Saving the draft does not publish the site.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- version
- code_id
- files
properties:
version:
type: integer
code_id:
type: string
format: uuid
files:
type: array
items:
type: object
required:
- path
- content
properties:
path:
type: string
content:
type: string
maxItems: 2000
description: Combined UTF-8 file content is limited to 16 MiB. Each collection allows up to 1,000 records including hidden ones.
responses:
'200':
description: Successful operation
content:
application/json:
schema:
type: object
required:
- version
properties:
version:
type: integer
'409':
description: The draft or source code changed. Pull again and merge local changes.
'400':
description: The active version does not use build content files, or the supplied files are invalid.
'402':
description: 'Start or higher is required to use the editor (feature: content_fields, required_plan: starter). Collection changes require Pro (feature: content_records, required_plan: pro). A mixed request that changes records is rejected in full. Unchanged collections can accompany field updates.'
servers:
- url: https://api.tuqo.ru
description: Production
/api/v1/sites/{id}/content/media/{name}:
get:
tags:
- Content
operationId: get_content_media
summary: Read a draft image owned by this site
x-scope: readonly
x-permission: 'content: view'
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Site id (UUID). The site must belong to the key's project, otherwise 404.
- name: name
in: path
required: true
schema:
type: string
description: The SHA-256 file name and raster extension from get_content_files.
responses:
'200':
description: Image bytes
content:
application/octet-stream:
schema:
type: string
format: binary
'404':
description: The site does not own this image.
servers:
- url: https://api.tuqo.ru
description: Production
/api/v1/sites/{id}/content/publish:
post:
tags:
- Content
operationId: publish_content
summary: Publish content changes available on the current plan
description: 'Publishes the draft as a regular deploy: the live code of the site with the new values (same checks, limits and rollback). Uses one deploy from the daily limit. Source builds with build_files=true also use build minutes to rebuild the saved source. Poll `GET /api/v1/deploys/{id}` until `active`; its `content` block lists markup issues and `overridden` values. `deploy_id` publishes the content into that version''s code instead of the live one — for a version waiting for a decision after a layout change, once the fields are mapped with `renames`. The same content can be published again when GET shows `address_changed` (entry pages, sitemap and RSS then get the new site address).'
x-scope: editor
x-permission: 'content: edit'
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: Site id (UUID). The site must belong to the key's project, otherwise 404.
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
version:
type: integer
description: Draft version you reviewed; 409 if the draft changed since
deploy_id:
type: string
format: uuid
description: 'Version to publish the content into (default: the live one)'
responses:
'202':
description: '`deploy` (queued) and `revision` number'
'400':
description: Invalid draft or the site has no version published as files
'402':
description: Publishing a site with only collection markup requires Pro. On Start a mixed site publishes page fields over the live records and keeps pending record edits in the draft.
'409':
description: The draft changed since `version`
'429':
description: Daily deploy limit
servers:
- url: https://api.tuqo.ru
description: Production
components:
securitySchemes:
apiKey:
type: http
scheme: bearer
bearerFormat: tqk_<prefix>_<secret>
description: 'Project API key in the `tqk_<prefix>_<secret>` format — issued in the panel app.tuqo.ru on the project''s “AI & API” tab (shown once). Passed in the `Authorization: Bearer tqk_...` header. Permissions are set per key by section — create_sites, delete_sites (true/false), code, content, leads, visitors, domains (none/view/edit), stats (none/view) — and by site (all project sites or selected ones); presets: full, developer, content, crm, readonly. The permission each operation needs is in the `x-permission` extension; `GET /api/v1/whoami` returns the key''s own (`access`). Older keys (`access.legacy = true`) are checked by their scope: `full` ⊃ `editor` ⊃ `readonly`, the level is in `x-scope`. A key is bound to ONE project; projects, keys, members and billing are managed only in the panel.'
x-refined-from:
- openapi.json
- tuqo-ru-openapi.json