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/tuqo-ru:tuqo-ru-trash-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: Tuqo Ru Trash 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 trash 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: Trash
description: Site trash and restore.
paths:
/api/v1/trashed-sites:
get:
tags:
- Trash
operationId: list_trashed
summary: List trashed sites
description: Project sites pending deletion (`deletion_scheduled_at` is set). They can be restored via POST /api/v1/sites/{id}/restore.
x-scope: readonly
x-permission: any permission
responses:
'200':
description: Success
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Site'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalError'
servers:
- url: https://api.tuqo.ru
description: Production
/api/v1/sites/{id}/restore:
post:
tags:
- Trash
operationId: restore_site
summary: Restore a site from trash
description: Restores the site. Honors the plan's site and storage quotas (402/409) and project suspension.
x-scope: editor
x-permission: create_sites
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: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Site'
'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'
'500':
$ref: '#/components/responses/InternalError'
servers:
- url: https://api.tuqo.ru
description: Production
components:
schemas:
Site:
type: object
properties:
id:
type: string
format: uuid
project_id:
type: string
format: uuid
name:
type: string
description:
type: string
description: Site description (empty string if none).
subdomain:
type: string
description: 'Site name, one for all platform zones: the site opens at `https://<subdomain>.<zone>` — tuqo.app by default (any plan), tuqo.ru and tuqo.dev on paid plans (see `addresses` and `GET /api/v1/zones`).'
active_deploy_id:
type:
- string
- 'null'
format: uuid
description: Current live deploy (null until one is activated).
enabled:
type: boolean
description: Manual serving switch (false → “temporarily unavailable”).
subdomain_enabled:
type: boolean
description: Whether the platform address on `tuqo.ru` is served (custom domains keep working).
subdomain_redirect_enabled:
type: boolean
description: 'When the subdomain is disabled: true → 301 to a working address.'
subdomain_redirect_to:
type:
- string
- 'null'
description: Subdomain redirect target (host); null → automatic.
pending_subdomain:
type:
- string
- 'null'
description: 'Scheduled address change: the new subdomain is already reserved for the site; the switch happens at `subdomain_switch_at` (null = no change scheduled).'
subdomain_switch_at:
type:
- string
- 'null'
format: date-time
description: When the scheduled address change takes effect (24 hours after the request).
subdomain_changed_at:
type:
- string
- 'null'
format: date-time
description: Last completed address change; the next one is available 7 days later.
access_mode:
type: string
enum:
- public
- restricted
description: '`restricted` — the site is gated (see the access group).'
keep_deploys:
type: integer
description: How many deploy copies to keep (active + archived).
retention_days:
type: integer
description: Auto-delete archived copies older than N days (0 = off).
checks_enabled:
type: boolean
description: Whether to compute site checks (recommendations) on publish.
compressed_files:
type: boolean
description: 'Option “Compressed build files”: `.br`/`.gz` are served with `Content-Encoding` (compressed Unity builds).'
lang:
type: string
enum:
- ru
- en
description: 'Language of the platform pages visitors see on this site (login screen, 404, “temporarily unavailable”). A new site starts with the owner''s account language. Unless set manually in the panel, every activated deploy updates it from the start of `index.html`: Cyrillic in `<title>` means `ru`, otherwise `<html lang>` (`ru` or `en`) decides; anything else leaves it unchanged.'
lang_manual:
type: boolean
description: true — `lang` was set manually in the panel and deploys do not change it.
avatar:
type: integer
minimum: 1
maximum: 100
description: Site picture number in the dashboard (1–100, one of the isometric "worlds"). Assigned at random when the site is created; changed by the owner in the dashboard. Informational for agents.
deletion_scheduled_at:
type:
- string
- 'null'
format: date-time
description: 'Site in trash: time of the deletion request (null = active).'
deletion_reason:
type: string
description: 'Deletion reason: "owner" — the site is active or was deleted by the owner, "billing" — scheduled for deletion for non-payment. Column TEXT NOT NULL DEFAULT ''owner'': never an empty string.'
enum:
- owner
- billing
auto_disabled_at:
type:
- string
- 'null'
format: date-time
description: Site stopped automatically or by an operator (null = normal state).
disabled_reason:
type:
- string
- 'null'
blocked_at:
type:
- string
- 'null'
format: date-time
description: 'Site blocked by Tuqo administration (phishing or a terms violation). Visitors see a block notice; the site is read-only: every write request to /api/v1/sites/{id}/… returns 403 until support lifts the block.'
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
url:
type: string
format: uri
description: 'Working address of the site: the first enabled one — platform addresses (zone of creation first), then verified custom domains; if all are off, the platform address on the zone of creation. Show this to the user as the site link (computed field).'
addresses:
type: array
items:
$ref: '#/components/schemas/SiteAddress'
description: 'All addresses of the site: platform addresses by zone, then verified custom domains, each with `enabled` (computed field).'
pending_url:
type: string
format: uri
description: Future address on the zone of creation while an address change is scheduled (present only then).
form_endpoint:
type: string
format: uri
description: 'Where the site form sends submissions: `https://api.<host>/f/<site_id>` (computed field).'
recommendations:
$ref: '#/components/schemas/Recommendations'
required:
- id
- project_id
- name
- description
- subdomain
- active_deploy_id
- enabled
- subdomain_enabled
- subdomain_redirect_enabled
- subdomain_redirect_to
- pending_subdomain
- subdomain_switch_at
- subdomain_changed_at
- access_mode
- keep_deploys
- retention_days
- checks_enabled
- deletion_scheduled_at
- deletion_reason
- auto_disabled_at
- disabled_reason
- blocked_at
- lang
- lang_manual
- avatar
- created_at
- updated_at
- url
- addresses
- form_endpoint
description: Project site (`shared::model::Site` + computed `url`, `form_endpoint`). The `recommendations` field is added only in GET /api/v1/sites/{id}.
example:
id: 2b1d6a7e-0c1f-4b6e-9a2d-5f3c8e7d1a20
project_id: 7f7b8a2e-3c7e-4d5a-9c1b-2f0b7c0a1e11
name: Portfolio
description: ''
subdomain: moe-portfolio
active_deploy_id: c0ffee00-1234-4abc-8def-0123456789ab
enabled: true
subdomain_enabled: true
subdomain_redirect_enabled: false
subdomain_redirect_to: null
pending_subdomain: null
subdomain_switch_at: null
subdomain_changed_at: null
access_mode: public
keep_deploys: 3
retention_days: 0
checks_enabled: true
deletion_scheduled_at: null
deletion_reason: owner
auto_disabled_at: null
disabled_reason: null
blocked_at: null
lang: ru
lang_manual: false
avatar: 42
created_at: '2026-09-01T10:00:00Z'
updated_at: '2026-09-01T10:00:00Z'
url: https://moe-portfolio.tuqo.app
addresses:
- type: zone
host: moe-portfolio.tuqo.app
url: https://moe-portfolio.tuqo.app
enabled: true
zone: app
primary: true
redirect_enabled: true
redirect_to: null
form_endpoint: https://api.tuqo.ru/f/2b1d6a7e-0c1f-4b6e-9a2d-5f3c8e7d1a20
SiteAddress:
type: object
required:
- type
- host
- url
- enabled
- primary
properties:
type:
type: string
enum:
- zone
- domain
description: '`zone` — the site name on a platform zone, `domain` — a verified custom domain.'
host:
type: string
description: Host name, e.g. `online-shop.tuqo.app` or `shop.com`.
url:
type: string
format: uri
description: '`https://<host>`.'
enabled:
type: boolean
description: Whether this address is served; a disabled one redirects to a working address or shows a stub.
zone:
type: string
description: 'Platform zone key (`ru`), only for `type: zone`.'
primary:
type: boolean
description: 'The main address on Tuqo (chosen by the owner, otherwise the zone the site was created on): `url`, links and redirects point to it. Exactly one among zone addresses; always false for custom domains.'
redirect_enabled:
type: boolean
description: 'Only for `type: zone`: a disabled address redirects to the working address (true) or shows an unavailable page (false).'
redirect_to:
type:
- string
- 'null'
description: 'Only for `type: zone`: redirect target host; null — the working (main) address.'
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
responses:
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
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.
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
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
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