Tuqo Members API
Member registration mode: members, moderation, settings, login screen consents.
Member registration mode: members, moderation, settings, login screen consents.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/tuqo-ru:tuqo-ru-members-api"
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.
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: 3.2.0
info:
title: Tuqo Ru Members 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 members 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: Members
description: 'Member registration mode: members, moderation, settings, login screen consents.'
paths:
/api/v1/sites/{id}/access/members-mode:
post:
tags:
- Members
operationId: set_site_members_access
summary: Switch to member registration mode
description: Visitors register themselves (email + code) and the owner moderates. Enables the `members` gate. No request body — settings are set separately (PATCH …/members-settings, PUT …/consents). Requires the Pro plan or higher, or the paid option (402).
x-scope: editor
x-permission: 'visitors: 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.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/MembersModeResponse'
'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
/api/v1/sites/{id}/members:
get:
tags:
- Members
operationId: get_site_members
summary: List site members
description: List of members (up to 500, search by `q`), per-status counters, mode settings and consents.
x-scope: readonly
x-permission: 'visitors: 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.
- name: q
in: query
required: false
schema:
type: string
default: ''
description: Search members.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/MembersListResponse'
'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}/members/reconsent:
post:
tags:
- Members
operationId: request_members_reconsent
summary: Request consent again
description: People who already agreed (any mode with consents) re-confirm them on their next sign-in. No request body.
x-scope: editor
x-permission: 'visitors: 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.
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
/api/v1/sites/{id}/members/{member_id}/moderate:
post:
tags:
- Members
operationId: moderate_site_member
summary: Moderate a member
description: 'One action: `approve` (approve, sends an “access granted” email), `reject` (reject, no email), `block` (sends an “access closed” email), `unblock`. Unknown action — 400. There is intentionally no member deletion via the API (deleting personal data is an owner action in the panel).'
x-scope: editor
x-permission: 'visitors: 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.
- name: member_id
in: path
required: true
schema:
type: string
format: uuid
description: Member id.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ModerateInput'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ModerateResponse'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'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}/members-settings:
patch:
tags:
- Members
operationId: set_site_members_settings
summary: Update member registration settings
description: 'Patch: an absent field is unchanged. Allowed values: name_label `name|fio`, form_style `single|steps`, max_seats 1–100000 or null, auto_approve_min 5–10080 or null (400 otherwise). If the mode is not enabled yet — 409. Requires the plan (402).'
x-scope: editor
x-permission: 'visitors: 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/MembersSettingsInput'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/OkResponse'
'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'
'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}/consents:
get:
tags:
- Members
operationId: get_site_consents
summary: Get consents on the login screen
description: 'Consent items, display mode, data controller details and the reconsent moment. The consent journal is not exposed via API: it holds visitors'' data (download it in the panel).'
x-scope: readonly
x-permission: 'visitors: 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:
$ref: '#/components/schemas/ConsentsResponse'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalError'
put:
tags:
- Members
operationId: set_site_consents
summary: Set consents on the login screen
description: 'Full replacement of the consent items and the display mode for every visibility mode except password (email code, subscribers, member registration, paid access, MAX users). System documents: pdn (personal data consent — always a separate required checkbox), offer, privacy — either Tuqo''s universal text (omit url; needs the data controller details) or an own https:// link with a title ≤60. Custom items: up to 5, text ≤300, optional link; kind `ads` can never be required. offer/privacy may be a ''By clicking…'' line (`as_line`). ui: off | inline (≤4 checkboxes) | step | bot (subscribers and MAX users only). All items are validated before the first write (400). The data controller details (needed for universal texts, also the paid-access seller) are set by the project owner in the panel only. No visibility mode on the site — 409.'
x-scope: editor
x-permission: 'visitors: 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/ConsentsInput'
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ConsentsResponse'
'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
components:
responses:
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
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
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
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
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
schemas:
MembersModeResponse:
type: object
properties:
access:
$ref: '#/components/schemas/AccessState'
members_settings:
$ref: '#/components/schemas/MembersSettings'
next_action:
type: string
required:
- access
- members_settings
- next_action
MembersSettings:
type: object
properties:
ask_name:
type: boolean
name_label:
type: string
enum:
- name
- fio
moderation:
type: boolean
description: After the code, the member waits for the owner's approval.
form_style:
type: string
enum:
- single
- steps
max_seats:
type:
- integer
- 'null'
description: Seat limit (null — no limit).
reconsent_at:
type:
- string
- 'null'
format: date-time
description: Consents given before this timestamp are requested again.
required:
- ask_name
- name_label
- moderation
- form_style
- max_seats
- reconsent_at
ConsentsResponse:
type: object
properties:
ui:
type: string
items:
type: array
items:
$ref: '#/components/schemas/ConsentItem'
operator:
oneOf:
- $ref: '#/components/schemas/DataController'
- type: 'null'
reconsent_at:
type:
- string
- 'null'
format: date-time
shown_items:
type: integer
description: 'Items actually shown: universal texts are hidden until the data controller with an address is set.'
next_action:
type: string
MembersSettingsInput:
type: object
properties:
ask_name:
type: boolean
name_label:
type: string
enum:
- name
- fio
moderation:
type: boolean
form_style:
type: string
enum:
- single
- steps
max_seats:
type:
- integer
- 'null'
minimum: 1
maximum: 100000
description: null — remove the limit; absent — unchanged.
auto_approve_min:
type:
- integer
- 'null'
minimum: 5
maximum: 10080
description: 'With moderation: approve a pending request automatically after this many minutes, counted from the request or from when the timer was turned on (whichever is later), within max_seats. null — turn off; absent — unchanged.'
description: 'Patch: absent field = unchanged.'
example:
moderation: true
max_seats: 50
ConsentItem:
allOf:
- $ref: '#/components/schemas/ConsentItemInput'
- type: object
properties:
id:
type: string
format: uuid
position:
type: integer
ConsentsInput:
type: object
required:
- ui
- items
properties:
ui:
type: string
enum:
- 'off'
- inline
- step
- bot
items:
type: array
maxItems: 8
items:
$ref: '#/components/schemas/ConsentItemInput'
request_reconsent:
type: boolean
description: People who already agreed confirm again on their next sign-in.
ModerateInput:
type: object
properties:
action:
type: string
enum:
- approve
- reject
- block
- unblock
required:
- action
example:
action: approve
AccessState:
type: object
properties:
enabled:
type: boolean
description: Whether the gate is on. When false, the other fields are absent.
method:
type: string
enum:
- password
- email_list
- subscribers
- members
- paywall
description: Gate mode.
password_level:
type:
- string
- 'null'
enum:
- easy
- medium
- strong
- custom
- null
description: Only for method=password, otherwise null.
expires_at:
type:
- string
- 'null'
format: date-time
expires_in_secs:
type:
- integer
- 'null'
description: Remaining time in seconds (null — no expiry).
max_opens:
type:
- integer
- 'null'
description: Opens limit (devices); null — no limit.
opens_count:
type: integer
opens_left:
type:
- integer
- 'null'
last_opened_at:
type:
- string
- 'null'
format: date-time
created_at:
type: string
format: date-time
required:
- enabled
description: Gate state (`shared::access::state_json`). Contains no secrets (password hash, cookie secret).
example:
enabled: true
method: password
password_level: medium
expires_at: null
expires_in_secs: null
max_opens: null
opens_count: 2
opens_left: null
last_opened_at: '2026-09-06T18:00:00Z'
created_at: '2026-09-01T10:00:00Z'
OkResponse:
type: object
properties:
ok:
type: boolean
description: Always true.
required:
- ok
example:
ok: true
ConsentItemInput:
type: object
required:
- kind
properties:
kind:
type: string
enum:
- pdn
- offer
- privacy
- ads
- custom
title:
type: string
description: Document title for an own link (≤60) or the item text for ads/custom (≤300). Empty for a universal text.
url:
type:
- string
- 'null'
description: https:// link; omit or null for Tuqo's universal text (system kinds).
required:
type: boolean
description: 'custom only: documents are always required, ads never.'
as_line:
type: boolean
description: offer/privacy as a “By clicking…” line instead of a checkbox.
Member:
type: object
properties:
id:
type: string
format: uuid
email:
type: string
name:
type: string
status:
type: string
enum:
- pending
- active
- rejected
- blocked
description: Member status (values match the `counts` counters; see code).
owner_note:
type: string
consents:
type:
- array
- object
- 'null'
additionalProperties: true
description: 'Consent snapshot of the last consent: list of `{kind, title, url, template?, required, as_line, given}` (earlier members — `{title, url}`). The full history is the consent journal in the panel.'
consented_at:
type:
- string
- 'null'
format: date-time
paid_until:
type:
- string
- 'null'
format: date-time
paid_at:
type:
- string
- 'null'
format: date-time
created_at:
type: string
format: date-time
last_login_at:
type:
- string
- 'null'
format: date-time
required:
- id
- email
- name
- status
- owner_note
- consents
- consented_at
- paid_until
- paid_at
- created_at
- last_login_at
description: Site member in member registration mode (`MemberRow`; site_id and consent_ip are not exposed).
ModerateResponse:
type: object
properties:
member:
$ref: '#/components/schemas/Member'
required:
- member
DataController:
type: object
required:
- kind
- name
- address
- email
properties:
kind:
type: string
enum:
- ip
- ooo
- self
- person
description: sole proprietor | company | self-employed | individual
name:
type: string
inn:
type: string
description: 10 digits for a company, 12 for an individual
ogrn:
type: string
description: 13 digits (company) or 15 (sole proprietor); empty otherwise
address:
type: string
description: 'Required: the personal data consent must name the controller''s address.'
email:
type: string
MembersListResponse:
type: object
properties:
members:
type: array
items:
$ref: '#/components/schemas/Member'
description: Up to 500 members.
counts:
type: object
properties:
pending:
type: integer
active:
type: integer
rejected:
type: integer
blocked:
type: integer
required:
- pending
- active
- rejected
- blocked
settings:
oneOf:
- $ref: '#/components/schemas/MembersSettings'
- type: 'null'
description: null if the site has no gate row.
consents:
$ref: '#/components/schemas/ConsentsResponse'
required:
- members
- counts
- settings
- consents
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