Tuqo Whoami API

Check the API key and its project.

GitHub OpenAPI

Operations 1

GET /api/v1/whoami Check the key and get the project #

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-whoami-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-whoami-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tuqo Ru Whoami 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 whoami 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: Whoami
  description: Check the API key and its project.
paths:
  /api/v1/whoami:
    get:
      tags:
      - Whoami
      operationId: whoami
      summary: Check the key and get the project
      description: Returns `project_id`, the project name, `scopes` (the coarse legacy level), `access` — what the key may do (preset, permissions by section, sites) — and the deploy budget (deploys used against the daily limit, the limit, deploys left in a pack). Recommended first call of a session. Requires no specific permission — any valid key works.
      x-scope: readonly
      x-permission: none (any valid key)
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Whoami'
        '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
    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
    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
  schemas:
    Scope:
      type: string
      enum:
      - full
      - editor
      - readonly
      description: 'Coarse level of a key. Older keys (`access.legacy = true`) are checked by it: `full` ⊃ `editor` ⊃ `readonly` — read operations for any level, changes for `editor` and `full`, deleting a site or a domain and changing an address only for `full`. Keys with section permissions report it for compatibility; what they may do is in `access`.'
    Whoami:
      type: object
      properties:
        project_id:
          type: string
          format: uuid
          description: Project the key is bound to. All operations are scoped to it.
        project_name:
          type:
          - string
          - 'null'
          description: Project name (null if the project is not found).
        scopes:
          type: array
          items:
            $ref: '#/components/schemas/Scope'
          description: Coarse level of the key (for older keys it is what they are checked by; see `access` for the actual permissions).
        deploys:
          type:
          - object
          - 'null'
          description: Deploy budget of the project owner's account — how many deploys are left before a 429 (null if it could not be read).
          properties:
            used_24h:
              type:
              - integer
              - 'null'
              description: Deploys counted against the plan's daily limit over the last 24 hours (deploys from a pack are not counted). Null if the plan has no daily limit.
            daily_limit:
              type:
              - integer
              - 'null'
              description: The plan's daily deploy limit (Free 10, Start 100, Pro 300). Null if the plan has no daily limit.
            pack_balance:
              type: integer
              description: Deploys left in a purchased pack. Spent once the daily limit is reached; the project owner buys it in the panel.
          required:
          - used_24h
          - daily_limit
          - pack_balance
        access:
          type: object
          description: 'What the key may do. `legacy: true` — permissions follow the old scopes (readonly/editor/full).'
          properties:
            preset:
              type:
              - string
              - 'null'
              enum:
              - full
              - developer
              - content
              - crm
              - readonly
              - null
              description: Preset name, or null for a custom setup.
            perms:
              type: object
              description: 'Level by section: create_sites, delete_sites — true/false; code, content, leads, visitors, domains — none | view | edit; stats — none | view.'
              properties:
                create_sites:
                  type: boolean
                delete_sites:
                  type: boolean
                code:
                  type: string
                  enum:
                  - none
                  - view
                  - edit
                content:
                  type: string
                  enum:
                  - none
                  - view
                  - edit
                leads:
                  type: string
                  enum:
                  - none
                  - view
                  - edit
                visitors:
                  type: string
                  enum:
                  - none
                  - view
                  - edit
                domains:
                  type: string
                  enum:
                  - none
                  - view
                  - edit
                stats:
                  type: string
                  enum:
                  - none
                  - view
              required:
              - create_sites
              - delete_sites
              - code
              - content
              - leads
              - visitors
              - domains
              - stats
            sites:
              type:
              - array
              - 'null'
              items:
                type: string
                format: uuid
              description: Sites the key may touch; null — all project sites (including new ones). Lists return only these sites.
            legacy:
              type: boolean
          required:
          - preset
          - perms
          - sites
          - legacy
      required:
      - project_id
      - project_name
      - scopes
      - deploys
      - access
      example:
        project_id: 7f7b8a2e-3c7e-4d5a-9c1b-2f0b7c0a1e11
        project_name: My project
        scopes:
        - full
        access:
          preset: full
          perms:
            create_sites: true
            delete_sites: true
            code: edit
            content: edit
            leads: edit
            visitors: edit
            domains: edit
            stats: view
          sites: null
          legacy: false
        deploys:
          used_24h: 7
          daily_limit: 10
          pack_balance: 0
    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