Tuqo Autoreply API

Auto-reply to form submitters and lead magnet (delivery files, delivery page design).

GitHub OpenAPI

Operations 8

GET /api/v1/sites/{id}/autoreply Get auto-reply settings #
PUT /api/v1/sites/{id}/autoreply Save auto-reply settings #
POST /api/v1/sites/{id}/autoreply/files Add a delivery file (lead magnet) #
DELETE /api/v1/sites/{id}/autoreply/files/{fid} Delete a delivery file #
PUT /api/v1/sites/{id}/autoreply/files/{fid}/label Set a delivery file label #
PUT /api/v1/sites/{id}/autoreply/delivery Set delivery page design and link lifetime #

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-autoreply-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-autoreply-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tuqo Ru Autoreply 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 autoreply 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: autoreply
  description: Auto-reply to form submitters and lead magnet (delivery files, delivery page design).
paths:
  /api/v1/sites/{id}/autoreply:
    get:
      tags:
      - autoreply
      operationId: get_autoreply
      summary: Get auto-reply settings
      description: Settings of the email sent to the submitter, delivery files, plan entitlement and the number of emails sent this month.
      x-scope: readonly
      x-permission: 'leads: 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: Current auto-reply settings, delivery files and the monthly counter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoreplyView'
        '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'
    put:
      tags:
      - autoreply
      operationId: set_autoreply
      summary: Save auto-reply settings
      description: 'Full write of `enabled/subject/body/email_field` (not a patch: missing subject/body become empty). Limits: subject ≤120, body ≤4096, email_field ≤64 characters (400). Enabling (`enabled:true`) requires the Start plan or higher (402).'
      x-scope: editor
      x-permission: 'leads: edit (process)'
      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/AutoreplyPut'
      responses:
        '200':
          description: Current auto-reply settings, delivery files and the monthly counter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoreplyView'
        '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/sites/{id}/autoreply/files:
    post:
      tags:
      - autoreply
      operationId: add_autoreply_file
      summary: Add a delivery file (lead magnet)
      description: 'The body is the RAW bytes of the file (up to 50 MB; route body limit 52 MB). Allowed types are detected by content: PDF, PNG/JPEG/GIF/WebP, zip, UTF-8 text (HTML/SVG/XML are rejected). At most three files per site (400). Requires a plan with auto-reply (402) and free storage quota (409).'
      x-scope: editor
      x-permission: 'leads: edit (process)'
      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: query
        required: true
        schema:
          type: string
          maxLength: 120
        description: File name for download (truncated to 120 characters).
      - name: label
        in: query
        required: false
        schema:
          type: string
          maxLength: 80
        description: Label shown on the delivery page.
      requestBody:
        required: true
        description: File bytes.
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: Current auto-reply settings, delivery files and the monthly counter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoreplyView'
        '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'
        '503':
          $ref: '#/components/responses/Unavailable'
    servers:
    - url: https://api.tuqo.ru
      description: Production
  /api/v1/sites/{id}/autoreply/files/{fid}:
    delete:
      tags:
      - autoreply
      operationId: remove_autoreply_file
      summary: Delete a delivery file
      description: Removes the file from the delivery page and from storage. Unknown file — 404.
      x-scope: editor
      x-permission: 'leads: edit (process)'
      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: fid
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Delivery file id.
      responses:
        '200':
          description: Current auto-reply settings, delivery files and the monthly counter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoreplyView'
        '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}/autoreply/files/{fid}/label:
    put:
      tags:
      - autoreply
      operationId: set_autoreply_file_label
      summary: Set a delivery file label
      description: Changes the file's label on the delivery page. Body `{label}`; a missing field = empty label.
      x-scope: editor
      x-permission: 'leads: edit (process)'
      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: fid
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Delivery file id.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FileLabelInput'
      responses:
        '200':
          description: Current auto-reply settings, delivery files and the monthly counter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoreplyView'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '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/sites/{id}/autoreply/delivery:
    put:
      tags:
      - autoreply
      operationId: set_autoreply_delivery
      summary: Set delivery page design and link lifetime
      description: '`link_ttl_days` — lifetime of the file link; `page_title` + `upsell_text` — page design (both or neither; ≤80/≤500 characters); `page_logo_framed`/`page_logo_rounded` — logo appearance. Texts cannot be cleared while a logo is uploaded (400).'
      x-scope: editor
      x-permission: 'leads: edit (process)'
      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/DeliveryPut'
      responses:
        '200':
          description: Current auto-reply settings, delivery files and the monthly counter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoreplyView'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '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/sites/{id}/autoreply/page-logo:
    put:
      tags:
      - autoreply
      operationId: set_autoreply_page_logo
      summary: Upload a delivery page logo
      description: The body is the raw bytes of a PNG/JPEG/WebP image up to 1 MB (SVG is rejected); the server fits it into 512×256 and compresses it. Requires the page design to be filled in (page_title + upsell_text, otherwise 400) and a plan with auto-reply (402). Route body limit — 2 MB.
      x-scope: editor
      x-permission: 'leads: edit (process)'
      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:
          image/png:
            schema:
              type: string
              format: binary
          image/jpeg:
            schema:
              type: string
              format: binary
          image/webp:
            schema:
              type: string
              format: binary
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: Current auto-reply settings, delivery files and the monthly counter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoreplyView'
        '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'
        '500':
          $ref: '#/components/responses/InternalError'
    delete:
      tags:
      - autoreply
      operationId: remove_autoreply_page_logo
      summary: Remove the delivery page logo
      description: Deletes the logo.
      x-scope: editor
      x-permission: 'leads: edit (process)'
      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: Current auto-reply settings, delivery files and the monthly counter.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutoreplyView'
        '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
    Unavailable:
      description: Service temporarily unavailable (for example, storage is not configured).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            message: storage is not configured
    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
    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
    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:
    DeliveryPut:
      type: object
      properties:
        link_ttl_days:
          type: integer
          description: Delivery link lifetime, days. The server clamps the value to 1–60.
          minimum: 1
          maximum: 60
        upsell_text:
          type: string
          maxLength: 500
          default: ''
          description: Description on the delivery page. Set ONLY together with page_title (both or neither, otherwise 400).
        page_title:
          type: string
          maxLength: 80
          default: ''
          description: Delivery page title. Cannot be cleared while a logo is uploaded (400).
        page_logo_framed:
          type: boolean
          default: true
        page_logo_rounded:
          type: boolean
          default: false
      required:
      - link_ttl_days
      example:
        link_ttl_days: 7
        page_title: Your guide is ready
        upsell_text: Download the file using the button below
        page_logo_framed: true
        page_logo_rounded: false
    FileLabelInput:
      type: object
      properties:
        label:
          type: string
          maxLength: 80
          description: File label; an absent field = empty label.
      example:
        label: Checklist
    SiteAutoreply:
      type: object
      properties:
        site_id:
          type: string
          format: uuid
        enabled:
          type: boolean
        subject:
          type: string
          description: Email subject (up to 120 characters).
        body:
          type: string
          description: Email body (up to 4096 characters). Supports markup (**bold**, lists, quotes, [links](https://…)) and {{field_name}} placeholders from the submission.
        email_field:
          type:
          - string
          - 'null'
          description: Name of the form field with the submitter's address (null = heuristic).
        link_ttl_days:
          type: integer
          description: Delivery link lifetime, days. The server clamps the value to 1–60.
          minimum: 1
          maximum: 60
        upsell_text:
          type: string
          description: Description on the delivery page.
        page_title:
          type:
          - string
          - 'null'
          description: Delivery page title.
        has_page_logo:
          type: boolean
        page_logo_framed:
          type: boolean
        page_logo_rounded:
          type: boolean
        download_count:
          type: integer
          description: How many times the delivery file was downloaded.
        updated_at:
          type: string
          format: date-time
      required:
      - site_id
      - enabled
      - subject
      - body
      - email_field
      - link_ttl_days
      - upsell_text
      - page_title
      - has_page_logo
      - page_logo_framed
      - page_logo_rounded
      - download_count
      - updated_at
      description: Auto-reply settings (`shared::model::SiteAutoreply`).
    AutoreplyView:
      type: object
      properties:
        allowed:
          type: boolean
          description: Whether auto-reply is allowed by the owner's plan (from the Start plan).
        upgrade_hint:
          type: string
          description: Hint about which plan to upgrade to (empty string if allowed).
        settings:
          oneOf:
          - $ref: '#/components/schemas/SiteAutoreply'
          - type: 'null'
          description: null if auto-reply has never been configured.
        files:
          type: array
          items:
            $ref: '#/components/schemas/LeadFile'
        sent_this_month:
          type: integer
          description: Auto-replies sent this month.
      required:
      - allowed
      - upgrade_hint
      - settings
      - files
      - sent_this_month
      description: Common response of all auto-reply endpoints (GET and all mutating ones).
    AutoreplyPut:
      type: object
      properties:
        enabled:
          type: boolean
          description: Enable auto-reply. Enabling requires the Start plan or higher (otherwise 402); disabling or editing the text is allowed on any plan.
        subject:
          type: string
          maxLength: 120
          default: ''
        body:
          type: string
          maxLength: 4096
          default: ''
          description: Markup and {{field_name}} placeholders.
        email_field:
          type:
          - string
          - 'null'
          maxLength: 64
          description: Name of the form field with the address; empty/null → heuristic.
      required:
      - enabled
      example:
        enabled: true
        subject: Thank you for your request
        body: Hello, {{name}}! We have received your request.
        email_field: email
    LeadFile:
      type: object
      properties:
        id:
          type: string
          format: uuid
        file_name:
          type: string
          description: File name for download.
        label:
          type: string
          description: Label shown on the delivery page.
        mime:
          type: string
        bytes:
          type: integer
      required:
      - id
      - file_name
      - label
      - mime
      - bytes
      description: Delivery file (lead magnet), up to three per site.
    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