Tuqo Forms API

Form submissions from static forms (the site's `form_endpoint`).

GitHub OpenAPI

Operations 5

GET /api/v1/forms/overview Get the project forms overview #
GET /api/v1/forms/submissions List project form submissions #
GET /api/v1/forms/submissions/{sid}/files/{fid} Download a submission file #
GET /api/v1/sites/{id}/form-files Get file upload settings #
PUT /api/v1/sites/{id}/form-files Configure file uploads #

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-forms-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-forms-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tuqo Ru Forms 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 forms 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: Forms
  description: Form submissions from static forms (the site's `form_endpoint`).
paths:
  /api/v1/forms/overview:
    get:
      tags:
      - Forms
      operationId: get_forms_overview
      summary: Get the project forms overview
      description: Monthly submission quota and usage, purchased balance, number of submissions hidden over the limit, project sites with form settings and per-status counters.
      x-scope: readonly
      x-permission: 'leads: view'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FormsOverview'
        '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/forms/submissions:
    get:
      tags:
      - Forms
      operationId: get_form_submissions
      summary: List project form submissions
      description: Project submissions, newest first. Submissions hidden over the limit (`hidden=true`) have an empty `data` field — the content is revealed after purchasing capacity. Search (`q`) does not look into hidden submissions. Each submission lists saved `files` (with a download `url`) and `files_rejected` — attached files that were not saved, with a reason.
      x-scope: readonly
      x-permission: 'leads: view'
      parameters:
      - name: site
        in: query
        required: false
        schema:
          type: string
          format: uuid
        description: Filter by site. A site of another project returns nothing.
      - name: status
        in: query
        required: false
        schema:
          type: string
          enum:
          - verified
          - spam
          - archive
          default: verified
        description: Any other value is treated as verified.
      - name: q
        in: query
        required: false
        schema:
          type: string
        description: Search in submission content (ILIKE, substring).
      - name: field
        in: query
        required: false
        schema:
          type: string
        description: Restrict the search to one form field.
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 50
          minimum: 1
          maximum: 200
        description: Clamped to 1–200.
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          default: 0
          minimum: 0
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmissionsResponse'
        '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/forms/submissions/{sid}/files/{fid}:
    get:
      tags:
      - Forms
      operationId: get_form_file
      summary: Download a submission file
      description: File bytes with the stored content type, always as an attachment. A hidden (over the limit) submission returns 409 until it is unlocked.
      x-scope: readonly
      x-permission: 'leads: view'
      parameters:
      - name: sid
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Submission id.
      - name: fid
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: File id from `files`.
      responses:
        '200':
          description: File bytes with the stored content type (image/png, application/pdf, …), as an attachment.
          content:
            '*/*':
              schema:
                type: string
                format: binary
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '500':
          $ref: '#/components/responses/InternalError'
        '503':
          $ref: '#/components/responses/Unavailable'
    servers:
    - url: https://api.tuqo.ru
      description: Production
  /api/v1/sites/{id}/form-files:
    get:
      tags:
      - Forms
      operationId: get_form_files
      summary: Get file upload settings
      description: Whether the site accepts files in form submissions, the chosen categories and the rules.
      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: File upload settings and rules.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FormFilesSettings'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
    put:
      tags:
      - Forms
      operationId: set_form_files
      summary: Configure file uploads
      description: Turn file uploads in the site's form submissions on or off and choose the categories. Enabling requires a paid plan (402). Off by default. With uploads on, post the form as multipart/form-data; the response carries `files` with accepted and rejected files and a ready `message` for the visitor.
      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/FormFilesPut'
      responses:
        '200':
          description: File upload settings and rules.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FormFilesSettings'
        '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'
        '500':
          $ref: '#/components/responses/InternalError'
    servers:
    - url: https://api.tuqo.ru
      description: Production
components:
  schemas:
    SubmissionsResponse:
      type: object
      properties:
        submissions:
          type: array
          items:
            $ref: '#/components/schemas/FormSubmission'
        status:
          type: string
          enum:
          - verified
          - spam
          - archive
          description: Applied status filter.
      required:
      - submissions
      - status
    FormSubmission:
      type: object
      properties:
        id:
          type: string
          format: uuid
        site_id:
          type: string
          format: uuid
        project_id:
          type: string
          format: uuid
        data:
          type: object
          additionalProperties: true
          description: Form fields as sent by the site. For hidden submissions (`hidden=true`) — an empty object `{}`.
        ip:
          type:
          - string
          - 'null'
        origin:
          type:
          - string
          - 'null'
        is_spam:
          type: boolean
        spam_reason:
          type:
          - string
          - 'null'
        hidden:
          type: boolean
          description: Content is hidden (accepted over the quota on a paid plan).
        quota_source:
          type:
          - string
          - 'null'
          enum:
          - monthly
          - lead
          - null
        read_at:
          type:
          - string
          - 'null'
          format: date-time
        archived_at:
          type:
          - string
          - 'null'
          format: date-time
        unhidden_at:
          type:
          - string
          - 'null'
          format: date-time
        autoreply_status:
          type:
          - string
          - 'null'
          enum:
          - pending
          - sent
          - no_email_field
          - invalid_email
          - address_limited
          - site_limited
          - plan_disabled
          - send_failed
          - null
          description: Auto-reply status for the submitter (null = not applicable).
        created_at:
          type: string
          format: date-time
        files:
          type: array
          items:
            $ref: '#/components/schemas/SubmissionFile'
          description: Saved files. Empty for hidden submissions.
        files_rejected:
          $ref: '#/components/schemas/FilesRejected'
        hidden_files:
          type: object
          properties:
            count:
              type: integer
            bytes:
              type: integer
          required:
          - count
          - bytes
          description: 'Only for a hidden (over the limit) submission with files: how many files it keeps and their size, without names. Free the space with the panel or unlock the submission.'
      required:
      - id
      - site_id
      - project_id
      - data
      - ip
      - origin
      - is_spam
      - spam_reason
      - hidden
      - quota_source
      - read_at
      - archived_at
      - unhidden_at
      - autoreply_status
      - created_at
      description: Form submission (`shared::model::FormSubmission`).
    FormSiteInfo:
      type: object
      properties:
        site_id:
          type: string
          format: uuid
        name:
          type: string
        subdomain:
          type: string
        honeypot:
          type:
          - string
          - 'null'
          description: Name of the form's honeypot field (if set).
        min_submit_ms:
          type: integer
          description: Minimum form fill time (anti-bot).
        files_enabled:
          type: boolean
          description: File uploads are switched on for the site (accepted only on a paid plan).
        file_kinds:
          type: array
          items:
            type: string
            enum:
            - images
            - documents
            - models
            - design
            - media
      required:
      - site_id
      - name
      - subdomain
      - honeypot
      - min_submit_ms
      - files_enabled
      - file_kinds
    SubmissionFile:
      type: object
      properties:
        id:
          type: string
          format: uuid
        field:
          type: string
          description: Name of the form's file input.
        name:
          type: string
          description: Cleaned file name.
        size_bytes:
          type: integer
        content_type:
          type: string
          description: Type by the file content.
        created_at:
          type: string
          format: date-time
        url:
          type: string
          format: uri
          description: 'Download URL (REST, the same API key, permission `leads: view`).'
      required:
      - id
      - field
      - name
      - size_bytes
      - content_type
      - created_at
      description: 'A file attached to a submission. Bytes are not in the response: download them by `url`.'
    FormFilesSettings:
      type: object
      properties:
        enabled:
          type: boolean
          description: The site's upload switch.
        active:
          type: boolean
          description: Files are actually accepted now (switch on and a paid plan).
        paid_plan:
          type: boolean
        kinds:
          type: array
          items:
            type: string
            enum:
            - images
            - documents
            - models
            - design
            - media
        accept:
          type: string
          description: Value for the file input's accept attribute.
        rules:
          $ref: '#/components/schemas/FilesRules'
      required:
      - enabled
      - active
      - paid_plan
      - kinds
      - accept
      - rules
    FilesRejected:
      type:
      - object
      - 'null'
      properties:
        items:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              size:
                type: integer
              reason:
                type: string
                enum:
                - disabled
                - plan
                - kind
                - unsupported
                - archive
                - invalid
                - empty
                - too_large
                - too_many
                - total_too_large
                - busy
                - volume_limit
                - storage_full
                - files_storage_full
                - spam
                - error
            required:
            - name
            - size
            - reason
          description: Up to 20 files by name.
        more:
          type: integer
          description: Files not listed by name.
      required:
      - items
      - more
      description: Files the visitor attached that were not saved, with a reason. null — no such files (or the submission is hidden).
    FormFilesPut:
      type: object
      properties:
        enabled:
          type: boolean
        kinds:
          type: array
          items:
            type: string
            enum:
            - images
            - documents
            - models
            - design
            - media
          minItems: 1
          description: Omit to keep the current categories (default images and documents).
      required:
      - enabled
    FormsOverview:
      type: object
      properties:
        available:
          type: boolean
          description: Capacity to accept submissions is available (monthly quota > 0 or purchased submissions exist).
        monthly_quota:
          type: integer
          description: Monthly submission quota of the plan.
        monthly_used:
          type: integer
        lead_balance:
          type: integer
          description: Purchased submissions (packs).
        hidden_count:
          type: integer
          description: Submissions accepted over the limit — their content is hidden until payment.
        sites:
          type: array
          items:
            $ref: '#/components/schemas/FormSiteInfo'
          description: Project sites (not in trash) with form settings.
        counts:
          type: object
          properties:
            verified:
              type: integer
            spam:
              type: integer
            archive:
              type: integer
            unread:
              type: integer
          required:
          - verified
          - spam
          - archive
          - unread
        files_available:
          type: boolean
          description: Files in submissions are available on the owner's plan (paid plans).
        files_rules:
          $ref: '#/components/schemas/FilesRules'
      required:
      - available
      - monthly_quota
      - monthly_used
      - lead_balance
      - hidden_count
      - sites
      - counts
    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
    FilesRules:
      type: object
      properties:
        paid_plans_only:
          type: boolean
        max_files:
          type: integer
        max_file_mb:
          type: integer
        max_total_mb:
          type: integer
        storage_share:
          type: string
          description: Files of all submissions take at most half of the plan's storage.
        archives:
          type: boolean
          description: Archives are not accepted (false).
        kinds:
          type: array
          items:
            type: object
            properties:
              key:
                type: string
                enum:
                - images
                - documents
                - models
                - design
                - media
              extensions:
                type: array
                items:
                  type: string
              default:
                type: boolean
            required:
            - key
            - extensions
            - default
      required:
      - paid_plans_only
      - max_files
      - max_file_mb
      - max_total_mb
      - storage_share
      - archives
      - kinds
      description: 'Rules for files in submissions: limits and the formats of each category (`shared::form_files::rules_json`).'
  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
    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