Tuqo Domains API

Custom domains with ownership verification and automatic SSL.

GitHub OpenAPI

Operations 4

GET /api/v1/sites/{id}/domains List site domains #
POST /api/v1/sites/{id}/domains Add a custom domain #
POST /api/v1/domains/{id}/verify Verify a domain #
DELETE /api/v1/domains/{id} Remove a custom domain #

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/tuqo-ru:tuqo-ru-domains-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

tuqo-ru-domains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tuqo Ru Domains 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 domains 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: Domains
  description: Custom domains with ownership verification and automatic SSL.
paths:
  /api/v1/sites/{id}/domains:
    get:
      tags:
      - Domains
      operationId: list_domains
      summary: List site domains
      description: Custom domains of the site.
      x-scope: readonly
      x-permission: 'domains: 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: Success
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Domain'
        '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'
    post:
      tags:
      - Domains
      operationId: set_custom_domain
      summary: Add a custom domain
      description: Adds a domain to the site and returns the TXT record for ownership verification (`_tuqo-verify.` = token). Domain already attached (to any site) — 409; plan domain quota / suspension — 409/402. After creating the TXT record (and an A record pointing to the serving IPs), call POST /api/v1/domains/{id}/verify. SSL is issued automatically after verification.
      x-scope: editor
      x-permission: 'domains: edit (manage)'
      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/AddDomainInput'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainAddResponse'
        '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':
          description: The domain name is already attached to another site. When that site belongs to the key's project, `holder` names it so the client can delete it there (DELETE /api/v1/domains/{holder.domain_id}) and add it here; otherwise `holder` is null and the site is not disclosed. If the name was released while the request was being handled, the message says so and a retry succeeds.
          content:
            application/json:
              schema:
                type: object
                required:
                - message
                properties:
                  message:
                    type: string
                    description: 'Human-readable error message in the language of the `Accept-Language` header: English for `en`, otherwise Russian.'
                  holder:
                    type:
                    - object
                    - 'null'
                    description: The site holding the domain, only when it is in the key's project.
                    properties:
                      domain:
                        type: string
                        description: 'The domain name that could not be attached (normalized: trimmed, lower-case).'
                      domain_id:
                        type: string
                        format: uuid
                      site_id:
                        type: string
                        format: uuid
                      site_name:
                        type: string
                      verified:
                        type: boolean
                        description: true — ownership already verified there; deleting it resets verification.
        '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/domains/{id}/verify:
    post:
      tags:
      - Domains
      operationId: verify_domain
      summary: Verify a domain
      description: 'Checks the TXT record and, if it matches, marks the domain verified. The response always includes A record diagnostics in `a_record` (does not affect `verified`). External DNS queries are throttled to once per 10 s per domain — for an unverified domain a repeated call sooner returns 429; for an already verified domain the call re-checks the A record (`a_record: null` while throttled). No request body.'
      x-scope: editor
      x-permission: 'domains: edit (manage)'
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Domain id (UUID). The domain must belong to a site of the key's project, otherwise 404.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainVerifyResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
    servers:
    - url: https://api.tuqo.ru
      description: Production
  /api/v1/domains/{id}:
    delete:
      tags:
      - Domains
      operationId: delete_domain
      summary: Remove a custom domain
      description: 'Deletes the site''s domain. Requires the `delete_sites` permission (older keys: the `full` scope).'
      x-scope: full
      x-permission: delete_sites
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Domain id (UUID). The domain must belong to a site of the key's project, otherwise 404.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OkResponse'
        '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
components:
  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
    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
    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
    InternalError:
      description: Internal error (database, Redis, S3).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            message: internal error
    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'
    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
    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
    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
    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
  schemas:
    ARecordDiagnostics:
      type: object
      properties:
        ok:
          type: boolean
          description: All found A records point to Tuqo serving IPs.
        found:
          type: array
          items:
            type: string
          description: Found A records.
        expected:
          type: array
          items:
            type: string
          description: Tuqo serving IPs the A record should point to.
        message:
          type: string
          description: Human-readable explanation.
      required:
      - ok
      - found
      - expected
      - message
      description: A record diagnostics (`dns::a_diagnostics`). Does not affect `verified`, but shows whether the site will open on the domain.
    DomainVerifyHint:
      type: object
      properties:
        type:
          type: string
          const: TXT
        name:
          type: string
          description: 'Record name: `_tuqo-verify.<domain>`.'
        value:
          type: string
          description: Value = verification_token.
      required:
      - type
      - name
      - value
    OkResponse:
      type: object
      properties:
        ok:
          type: boolean
          description: Always true.
      required:
      - ok
      example:
        ok: true
    AddDomainInput:
      type: object
      properties:
        domain:
          type: string
          maxLength: 253
          description: 'Domain name, e.g. `example.com` or `пример.рф`. Normalized before validation: surrounding whitespace and quotes, URL scheme, path, query, port and trailing dot are stripped; case is folded; Cyrillic (IDN) is converted to punycode (`xn--…`), and the response returns this stored ASCII form. The result must have ≥2 labels, each 1–63 characters `[a-z0-9-]` without leading/trailing hyphen. 400 with the reason: email address, IP address, wildcard, spaces, characters outside Latin/Cyrillic, Latin and Cyrillic mixed within one label, mimicking brands or government bodies (also in Cyrillic).'
      required:
      - domain
      example:
        domain: example.ru
    Domain:
      type: object
      properties:
        id:
          type: string
          format: uuid
        site_id:
          type: string
          format: uuid
        domain:
          type: string
          description: FQDN in lowercase.
        verified:
          type: boolean
          description: Ownership verified by the TXT record.
        enabled:
          type: boolean
          description: Whether the domain is served.
        redirect_enabled:
          type: boolean
        redirect_to:
          type:
          - string
          - 'null'
        verification_token:
          type: string
          description: Value of the `_tuqo-verify.<domain>` TXT record.
        ssl_status:
          type: string
          enum:
          - active
          - pending
          - failed
          description: Certificate status from the last probe.
        ssl_checked_at:
          type:
          - string
          - 'null'
          format: date-time
        a_record_ok:
          type:
          - boolean
          - 'null'
          description: 'A record diagnostics: true — points to the serving IPs; false — missing or points elsewhere; null — not checked. Does not affect `verified`.'
        a_record_found:
          type:
          - string
          - 'null'
          description: Found A records, comma-separated.
        a_checked_at:
          type:
          - string
          - 'null'
          format: date-time
        created_at:
          type: string
          format: date-time
        verified_at:
          type:
          - string
          - 'null'
          format: date-time
      required:
      - id
      - site_id
      - domain
      - verified
      - enabled
      - redirect_enabled
      - redirect_to
      - verification_token
      - ssl_status
      - ssl_checked_at
      - a_record_ok
      - a_record_found
      - a_checked_at
      - created_at
      - verified_at
      description: Custom domain of a site (`shared::model::Domain`).
    DomainVerifyResponse:
      type: object
      properties:
        verified:
          type: boolean
        domain:
          $ref: '#/components/schemas/Domain'
          description: Present when verified=true.
        message:
          type: string
          description: 'Present when verified=false: “TXT record not found or does not match”.'
        a_record:
          oneOf:
          - $ref: '#/components/schemas/ARecordDiagnostics'
          - type: 'null'
          description: null if DNS resolution failed or, for an already verified domain, the throttle (10 s) kicked in.
      required:
      - verified
      description: Domain verification response. For an already verified domain the call re-checks the A record (no 429).
      example:
        verified: false
        message: TXT record not found or does not match
        a_record:
          ok: false
          found: []
          expected:
          - 201.51.6.16
          message: A record not found
    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
    DomainAddResponse:
      type: object
      properties:
        domain:
          $ref: '#/components/schemas/Domain'
        verify:
          $ref: '#/components/schemas/DomainVerifyHint'
          description: Which TXT record to create in DNS.
      required:
      - domain
      - verify
  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