Tuqo Blobs API
Manifest deploy: check for missing blobs, upload blobs one by one, assemble a deploy from blobs (for heavy media sites and the CLI).
Manifest deploy: check for missing blobs, upload blobs one by one, assemble a deploy from blobs (for heavy media sites and the CLI).
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-blobs-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 Blobs 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 blobs 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: Blobs
description: 'Manifest deploy: check for missing blobs, upload blobs one by one, assemble a deploy from blobs (for heavy media sites and the CLI).'
paths:
/api/v1/sites/{id}/deploys/check:
post:
tags:
- Blobs
operationId: check_manifest
summary: Check which manifest blobs are missing
description: 'Step 1 of a manifest deploy. Accepts a list of `{path, sha256[, size]}` and returns the hashes the project does not have yet. Validation: non-empty list, ≤2000 entries, each sha256 is 64 hex characters (400). With `activate:false` the preview-link entitlement is also checked (402). Before any upload it also checks what would fail later: the paths (static policy — no `package.json`, no `..`, no duplicates; 400), a suspended project, full storage (409), the daily deploy limit and build minutes (429) — so a client does not upload hundreds of megabytes only to be refused at step 3. Hashes the project already has get a fresh grace period against blob garbage collection. The request body (the file list) is limited to 4 MB.'
x-scope: editor
x-permission: 'code: edit (publish)'
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:
$ref: '#/components/schemas/ManifestInput'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/CheckResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'415':
$ref: '#/components/responses/UnsupportedMediaType'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'500':
$ref: '#/components/responses/InternalError'
servers:
- url: https://api.tuqo.ru
description: Production
/api/v1/blobs/{sha256}:
put:
tags:
- Blobs
operationId: put_blob
summary: Upload a single blob
description: 'Step 2 of a manifest deploy. The body is the RAW bytes of the file (up to 50 MB; an empty file is fine — its hash is the sha256 of the empty string). A hash the project already has is accepted at once without re-uploading. The sha256 of the body MUST match the hash in the path (otherwise 400). The blob is stored in the scope of the key''s project (S3 + `deploy_blobs`); text blobs are additionally gzip-compressed. Gates: storage quota (409) and the account''s daily upload volume — new blobs of the last 24 hours may not exceed three times the plan storage (429; an uploaded but unpublished blob does not count toward storage). Idempotent: repeating a PUT of the same hash is safe.'
x-scope: editor
x-permission: 'code: edit (publish)'
parameters:
- name: sha256
in: path
required: true
schema:
type: string
pattern: ^[0-9a-fA-F]{64}$
description: sha256 of the content in hex (64 characters).
requestBody:
required: true
description: File bytes.
content:
application/octet-stream:
schema:
type: string
format: binary
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/BlobPutResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'500':
$ref: '#/components/responses/InternalError'
servers:
- url: https://api.tuqo.ru
description: Production
/api/v1/sites/{id}/deploys/manifest:
post:
tags:
- Blobs
operationId: deploy_manifest
summary: Assemble a deploy from uploaded blobs
description: 'Step 3 of a manifest deploy. All blobs must be uploaded beforehand — otherwise 400 in the special `{error, missing}` format (see ManifestMissingError). The static policy is checked by paths (index.html at the root, no package.json — 400). The control-plane only writes the manifest and queues a deploy with `source_kind=manifest`; the build-runner publishes it by copying inside S3. A site is at most 500 MB (by the actual blob sizes; a file referenced by several paths counts for each — 400), and the plan''s storage quota applies on top (409). Gates: rate / build minutes (429), suspension (402), preview links when `activate:false` (402).'
x-scope: editor
x-permission: 'code: edit (publish)'
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:
$ref: '#/components/schemas/ManifestInput'
responses:
'200':
description: The deploy is queued (status=queued); may include `recommendations`.
content:
application/json:
schema:
$ref: '#/components/schemas/Deploy'
'400':
description: Invalid data (`{message}`) OR not all blobs are uploaded (`{error, missing}`).
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/Error'
- $ref: '#/components/schemas/ManifestMissingError'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'415':
$ref: '#/components/responses/UnsupportedMediaType'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalError'
servers:
- url: https://api.tuqo.ru
description: Production
components:
responses:
PayloadTooLarge:
description: 'Request body exceeds the route limit (axum, text/plain). Limits: JSON routes — 2 MB by default; deploys/deploy-files/blobs — 50 MB; autoreply/files — 52 MB.'
content:
text/plain:
schema:
type: string
Unauthorized:
description: 'Missing/invalid `Authorization: Bearer tqk_...` header, key revoked or expired. After 30 failed attempts from one IP within 60 s — 401 without checking the key.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
message: 'Authorization: Bearer tqk_... header is required'
InternalError:
description: Internal error (database, Redis, S3).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
message: internal error
PaymentRequired:
description: The feature or limit requires another plan/option, or the project is suspended for non-payment.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
message: build preview is available from the Start plan.
UnsupportedMediaType:
description: 'JSON route without `Content-Type: application/json` (axum, text/plain).'
content:
text/plain:
schema:
type: string
UnprocessableEntity:
description: 'JSON is syntactically valid but does not match the schema: missing required field or wrong type (axum, text/plain).'
content:
text/plain:
schema:
type: string
NotFound:
description: 'Resource not found or belongs to another project (tenant isolation: resources of other projects are indistinguishable from missing ones).'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
message: not found
BadRequest:
description: 'Invalid data: body/parameter validation failed (JSON error `{message}`). axum also returns 400 as text/plain for syntactically invalid JSON, an invalid UUID in the path or invalid query parameters.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
message: site name is required
Forbidden:
description: 'Not allowed. For a key with section permissions the message names the missing permission (for example “Form submissions: read”) or the site outside the key''s list; the project owner or an administrator changes permissions in Tuqo → project → AI & API without reissuing the key. Older keys get the previous text (“insufficient permissions”). Also returned for a blocked account or site.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
message: insufficient permissions
TooManyRequests:
description: 'Rate limit exceeded: deploys per day (beyond it deploys are taken from a one-off deploy pack if the account has one; the message names the plan and the pack), at most 60 deploys per hour per site (a guard against runaway scripts on every plan, not a plan limit), build minutes per month, domain DNS checks (once per 10 s).'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
message: domain check was run recently, please wait
Conflict:
description: State conflict (subdomain taken, storage/site/domain quota, invalid deploy status, etc.).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
message: subdomain 'moe-portfolio' is already taken
schemas:
Deploy:
type: object
properties:
id:
type: string
format: uuid
site_id:
type: string
format: uuid
status:
type: string
enum:
- queued
- building
- ready
- active
- failed
- superseded
- skipped
description: 'Lifecycle: queued → building → ready → active (or failed); replaced as live — superseded. skipped — a Git CD push that was not published because of a plan limit (reason in `error`, consecutive pushes merged into one record, see `skip_count`); not a deploy.'
source_ref:
type: string
description: S3 key of the sources/manifest (internal).
source_kind:
type: string
description: 'How it was created: "sources" — a full file set or archive (including deploy-files), "manifest" — a manifest deploy from blobs, "git" — Git CD. The value "dist" is mentioned in a model comment but never assigned by code (legacy).'
enum:
- sources
- manifest
- git
build_mode:
type:
- string
- 'null'
enum:
- static
- build
- null
description: 'How it was actually published (written by the build-runner): `static` — as is, no build minutes; `build` — a build ran. null until it reaches ready.'
commit_sha:
type:
- string
- 'null'
size_bytes:
type: integer
artifacts_purged:
type: boolean
description: Artifacts were purged by retention or deletion — the copy cannot be activated.
error:
type:
- string
- 'null'
description: Error text when status=failed.
created_by:
type:
- string
- 'null'
format: uuid
description: Creating user (null for an API key).
created_via:
type:
- string
- 'null'
enum:
- panel
- api_key
- oauth
- git
- instant
- null
description: 'How the deploy was created: panel, API key, OAuth app, Git CD push webhook (`git`), or Tuqo Drop draft (`instant`).'
creator_label:
type:
- string
- 'null'
description: Key name / `tqk_…` prefix or OAuth app name.
branch:
type:
- string
- 'null'
description: Branch (for source_kind=git).
is_preview:
type: boolean
description: Built without publishing (`activate:false`) — the live URL was not changed.
has_preview_link:
type: boolean
description: Whether a preview link has been issued (the secret itself is not returned).
content_hold:
type: boolean
description: 'The version waits for a decision after a layout change: built but not activated, because the new markup loses content. Only on ready versions with files; omitted when false.'
content_warnings:
type: array
items:
type: object
properties:
level:
type: string
enum:
- info
- advice
- danger
code:
type: string
key:
type: string
message:
type: string
description: In the request language.
rename:
type: object
description: Suggested mapping for the `renames` of a content edit.
properties:
list:
type: string
from:
type: string
to:
type: string
description: 'Activating this version loses content: the differences between its markup and the content. Activation needs `accept_content_warnings=true`. Also on a version that no longer waits (a newer layout is live) and on a build without publishing. Omitted when no confirmation is needed.'
content:
type: object
description: 'Only in `GET /api/v1/deploys/{id}`, on sites with the content editor: `revision` of the content, markup `issues`, `changes` of the layout against the content, `overridden` values, `hold` (waits for a decision) and `hint` — what to do next.'
pr_number:
type:
- integer
- 'null'
skipped_paths:
type: array
items:
type: string
description: 'Paths that were not published, PHP files first: PHP (`.php`, `.phtml`, … — Tuqo never runs server code; use Tuqo Forms for contact forms) and service paths (`.git`, `.env`, `/__tuqo/…`, `/.well-known/acme-challenge/…`); the list is truncated.'
skip_count:
type: integer
format: int32
minimum: 0
description: 'For `skipped`: how many consecutive pushes were not published (`created_at` — the first, `finished_at` — the last). 0 for other statuses.'
from_pack:
type: boolean
description: The deploy went beyond the plan's daily deploy limit and was paid from the account's one-off deploy pack (bought in the panel). A failed build returns it to the pack.
created_at:
type: string
format: date-time
started_at:
type:
- string
- 'null'
format: date-time
finished_at:
type:
- string
- 'null'
format: date-time
recommendations:
$ref: '#/components/schemas/Recommendations'
required:
- id
- site_id
- status
- source_ref
- source_kind
- build_mode
- commit_sha
- size_bytes
- artifacts_purged
- error
- created_by
- created_via
- creator_label
- branch
- is_preview
- has_preview_link
- pr_number
- skipped_paths
- skip_count
- from_pack
- created_at
- started_at
- finished_at
description: Site deploy (`shared::model::Deploy`). The `recommendations` field appears only in deploy-files and deploys/manifest responses when checks are enabled and there are findings.
example:
id: c0ffee00-1234-4abc-8def-0123456789ab
site_id: 2b1d6a7e-0c1f-4b6e-9a2d-5f3c8e7d1a20
status: queued
source_ref: ''
source_kind: manifest
build_mode: null
commit_sha: null
size_bytes: 0
artifacts_purged: false
error: null
created_by: null
created_via: api_key
creator_label: ci-key
branch: null
is_preview: false
has_preview_link: false
pr_number: null
skipped_paths: []
skip_count: 0
from_pack: false
created_at: '2026-09-07T12:00:00Z'
started_at: null
finished_at: null
CheckResponse:
type: object
properties:
missing:
type: array
items:
type: string
description: sha256, lowercase
description: Hashes the project does not have — upload them via PUT /api/v1/blobs/{sha256}. Empty list — POST …/deploys/manifest can be called right away.
required:
- missing
example:
missing:
- 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
ManifestInput:
type: object
properties:
files:
type: array
items:
$ref: '#/components/schemas/ManifestEntry'
minItems: 1
maxItems: 2000
activate:
type: boolean
default: true
description: false — build without publishing (see DeployFilesInput.activate).
required:
- files
example:
files:
- path: index.html
sha256: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
size: 1234
activate: true
ManifestEntry:
type: object
properties:
path:
type: string
description: Relative file path (same rules as FileInput.path).
sha256:
type: string
pattern: ^[0-9a-fA-F]{64}$
description: sha256 of the file content in hex (64 characters; case-insensitive, normalized to lowercase).
size:
type: integer
description: Size in bytes — optional and ignored by the server (the limit is computed from actual blob sizes).
required:
- path
- sha256
BlobPutResponse:
type: object
properties:
stored:
type: boolean
description: Always true on success.
sha256:
type: string
description: Hash in lowercase.
required:
- stored
- sha256
example:
stored: true
sha256: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
ManifestMissingError:
type: object
properties:
error:
type: string
description: Error text.
message:
type: string
description: The same text in the usual error field (since 18.11.2026).
missing:
type: array
items:
type: string
description: sha256 (hex, lowercase)
description: Hashes of blobs the project does not have yet — upload them via PUT /api/v1/blobs/{sha256}.
required:
- error
- missing
description: 'Special 400 format for POST /api/v1/sites/{id}/deploys/manifest when not all blobs are uploaded: the text is in both `error` and `message`, plus the `missing` hashes.'
example:
error: not all blobs are uploaded — upload the missing ones first via PUT /api/v1/blobs/{sha256}
missing:
- 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
Recommendations:
type: object
properties:
summary:
type: object
properties:
fix:
type: integer
improve:
type: integer
description: Number of findings of each level in the whole report.
items:
type: array
items:
$ref: '#/components/schemas/Finding'
description: First 5 items (most important first).
more:
type: integer
description: Number of items not shown.
note:
type: string
description: 'Reminder: these are suggestions about files, not errors — the site is published and working.'
required:
- summary
- items
- more
- note
description: Recommendations for the latest publish (`shared::checks::recommendations`). Present only if the site's `checks_enabled` switch is on and the report is not empty.
Finding:
type: object
properties:
code:
type: string
description: Machine-readable finding code.
level:
type: string
enum:
- fix
- improve
description: '`fix` — worth fixing, `improve` — a suggestion.'
title:
type: string
why:
type: string
description: Why it matters.
how:
type: string
description: How to fix it.
where:
type: array
items:
type: string
description: File paths where it was found.
required:
- code
- level
- title
- why
- how
- where
description: A site checks recommendation item (`shared::checks::Finding`).
Error:
type: object
properties:
message:
type: string
description: 'Human-readable error message in the language of the `Accept-Language` header: English for `en`, otherwise Russian.'
required:
- message
description: 'Common REST API error format: `{"message": "..."}`. Codes: 400 — invalid data (validation), 401 — key missing/invalid/revoked/expired, 402 — the feature or limit requires a paid plan/option, 403 — the key lacks the permission named in the message, or the site is outside the key''s list, 404 — resource not found or belongs to another project (resources of other projects are indistinguishable from missing ones), 409 — state conflict (subdomain taken, storage quota, deploy cannot be activated, etc.), 429 — rate limit exceeded (deploys per day, the 60-deploys-per-hour-per-site guard against runaway scripts, build minutes, DNS checks), 500 — internal error, 503 — service/storage unavailable.'
example:
message: not found
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