Feelcouch ProjectsHandbook · v1.47.0

API

API endpoint reference

Every HTTP endpoint the application serves today, rendered from the same OpenAPI 3.1 document it publishes at /api/openapi. Contract version 1.47.0-demo.

Public read-only demonstration API. Every response contains static demo data and must not be treated as live production telemetry.

An interactive rendering of the same contract lives at /api-docs.

How a request is authorised

Scheme Carried in Name Purpose
analysisBearer header Authorization: Bearer Authorization: Bearer . Read-only single-group access; 90-day expiry, hash-only storage, revocation and current issuer group-manager/admin rights checked on every export. A session cookie cannot replace this key.
sessionCookie cookie identichnost_session HttpOnly signed session cookie issued by Telegram or email/password authentication
telegramWebhookSecret header X-Telegram-Bot-Api-Secret-Token Shared secret registered with the Telegram Bot API when the webhook is set
platformAdminGate header x-feelcouch-admin-gate Operator gate secret, only honoured on the admin host

An operation marked Open, no sign-in accepts anonymous requests. It still enforces its own origin, size and rate limits.

Operations

Method Path Authorisation Summary
GET /api/trainer/live sessionCookie Read own meetings, reminder preference and submitted cases
POST /api/trainer/live sessionCookie Update reminders or explicitly share a case with the assigned facilitator
GET /api/trainer/report sessionCookie Download a private PDF snapshot or read sharing settings
POST /api/trainer/report sessionCookie Explicitly share the identical full PDF with participant and facilitator, or revoke sharing
GET /api/trainer/subscription sessionCookie Read own subscription terms and payment request
POST /api/trainer/subscription sessionCookie Accept current offer or report payment for manual review
GET /api/trainer/trial sessionCookie Read own free-trial eligibility and consent readiness
POST /api/trainer/trial sessionCookie Grant the one-time free trial to the signed-in participant
GET /api/trainer/subscription/qr sessionCookie Read approved unchanged bank QR immediately after authentication
GET /api/trainer/state sessionCookie Read only the signed-in participant's private trainer state
PUT /api/trainer/state sessionCookie Save validated private trainer state with revision protection
GET /api/legal/[id] sessionCookie Download an immutable approved tenant legal document
GET /api/demo/legal/[kind] sessionCookie Read a synthetic legal PDF in the isolated hosted demo
GET /api/billing sessionCookie Read the authenticated tenant's plan and authorized invoices
GET /api/platform/admin/billing platformAdminGate Read protected aggregate entitlement counts by plan
GET /api/integrations/trainer-archive analysisBearer Read consented tracker activity or one identical shared PDF for a private Google archive
POST /api/integrations/trainer-archive analysisBearer Record a private Google archive synchronization acknowledgement
GET /api/integrations/analysis analysisBearer Read a pseudonymous result snapshot for one integration group
GET /api/platform/templates Open, no sign-in List available demo templates
GET /api/platform/projects Open, no sign-in List example platform projects
GET /api/platform/status Open, no sign-in Get the privacy-safe platform status snapshot
GET /api/health Open, no sign-in Report runtime and database readiness
GET /api/version Open, no sign-in Report the release this container was built from
GET /api/openapi Open, no sign-in Serve this OpenAPI 3.1 document
GET /api/avatar/[userId] sessionCookie Fetch a participant avatar through the server
GET /api/reports/final/[participantId] sessionCookie Download the final course report as a PDF
POST /api/downloads/telegram sessionCookie Deliver an authorized export to the caller's private bot chat
GET /api/account/export sessionCookie Download every record held about the signed-in participant
POST /api/auth/email sessionCookie Sign in or manage browser access without Telegram
POST /api/telegram/auth Open, no sign-in Exchange Telegram Mini App init data for a session
POST /api/telegram/webhook telegramWebhookSecret Receive a Telegram Bot API update
GET /api/platform/admin/operations platformAdminGate Read grouped counts of redacted operational events

Platform

Public read-only demo resources

listDemoTemplates

GET /api/platform/templates

List available demo templates.

  • Authorisation: Open, no sign-in
  • Request body: None
Status Response Body
200 Static template catalogue TemplatesResponse

listDemoProjects

GET /api/platform/projects

List example platform projects.

  • Authorisation: Open, no sign-in
  • Request body: None
Status Response Body
200 Static project inventory ProjectsResponse

getDemoPlatformStatus

GET /api/platform/status

Get the privacy-safe platform status snapshot.

  • Authorisation: Open, no sign-in
  • Request body: None
Status Response Body
200 Static status snapshot StatusResponse

Operations

Unauthenticated runtime and deployment probes

getRuntimeHealth

GET /api/health

Report runtime and database readiness.

Used by the container healthcheck, the blue/green switch and the public status page. Never cached, and it reveals no configuration detail beyond the state word.

  • Authorisation: Open, no sign-in
  • Request body: None
Status Response Body
200 The runtime answers and its database query succeeds HealthOk
503 Either the production configuration is incomplete or the database query failed HealthUnavailable

getRuntimeVersion

GET /api/version

Report the release this container was built from.

The release tag is baked into the image at build time. A deployment reads it through the public URL to prove the release it switched traffic to is the release actually answering, and every response also carries it as the X-Feelcouch-Release header.

  • Authorisation: Open, no sign-in
  • Request body: None
Status Response Body
200 The build identity of the running container RuntimeVersion

getOpenApiDocument

GET /api/openapi

Serve this OpenAPI 3.1 document.

  • Authorisation: Open, no sign-in
  • Request body: None
Status Response Body
200 The machine-readable contract object

getOperationalEventSummary

GET /api/platform/admin/operations

Read grouped counts of redacted operational events.

Gated operator read over the retention window. Only event names, reason codes and counters are returned; no token, identifier, name or participant content is ever stored or served.

  • Authorisation: platformAdminGate
  • Request body: None
Status Response Body
200 Grouped operational event counts over the retention window object
403 The request did not clear the platform admin gate ErrorCode

Billing

Private non-transacting plan and invoice reads

getTenantBilling

GET /api/billing

Read the authenticated tenant's plan and authorized invoices.

Tenant scope comes only from the trusted runtime deployment, never a request parameter. Signed-in participants and facilitators receive the plan with an empty invoice array; only ADMIN callers receive tenant invoice details. No payment is submitted and no payment credentials are accepted. Missing platform billing configuration or unapplied billing migrations fail closed with a sanitized 503 response. Every response is private, no-store and noindex.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 Tenant plan and ADMIN-only invoices; invoices are empty for other roles BillingResponse
401 UNAUTHENTICATED: no active authenticated account ErrorCode
404 Preview disabled: BILLING_PREVIEW_ENABLED must equal true; no authentication or database reads occur. object
503 BILLING_NOT_CONFIGURED or BILLING_UNAVAILABLE: billing cannot be read; SQL and connection details are never returned ErrorCode

Response headers worth reading:

  • Cache-Control on 200: private, no-store
  • X-Robots-Tag on 200: noindex, nofollow

getPlatformBillingCounts

GET /api/platform/admin/billing

Read protected aggregate entitlement counts by plan.

Requires the platform operator gate. Returns aggregate counts only: no tenant identifiers, invoices, participant data or payment credentials. Every response is private, no-store and noindex. This endpoint performs no payment operation.

  • Authorisation: platformAdminGate
  • Request body: None
Status Response Body
200 Aggregate platform entitlement counts BillingCountsResponse
403 FORBIDDEN: the request did not clear the platform operator gate ErrorCode
404 Preview disabled: BILLING_PREVIEW_ENABLED must equal true; no authentication or database reads occur. object
503 BILLING_NOT_CONFIGURED or BILLING_UNAVAILABLE: billing tables or the platform connection are unavailable ErrorCode

Response headers worth reading:

  • Cache-Control on 200: private, no-store
  • X-Robots-Tag on 200: noindex, nofollow

Account

Participant self-service over the session cookie

getTrainerLive

GET /api/trainer/live

Read own meetings, reminder preference and submitted cases.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 Own scheduled meetings and case requests object
401 Participant session required object
404 Feature disabled object

updateTrainerLive

POST /api/trainer/live

Update reminders or explicitly share a case with the assigned facilitator.

Exact configured Origin, bounded 32 KiB body and rate limits. Cases require active trainer access, membership and confirmShare. UUID requests are idempotent; private diary content is never included automatically.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 Saved preference or case object
400 Invalid payload object
401 Participant session required object
403 Untrusted origin or missing access object
404 Feature disabled object
409 Concurrent request object
413 Body limit exceeded object
429 Rate limit exceeded object

getTrainerReport

GET /api/trainer/report

Download a private PDF snapshot or read sharing settings.

Participant may download own records after access expiry. A facilitator can download only a snapshot explicitly shared with that same recipient while consent remains active. No-store PDF bytes include a SHA-256 header. settings=1 reads sharing and delivery readiness.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 Private PDF or sharing settings object
400 Invalid period or identifier object
401 Session required object
403 Not the authorized recipient object
404 Disabled feature or missing report object
429 Rate limit exceeded object

shareTrainerReport

POST /api/trainer/report

Explicitly share the identical full PDF with participant and facilitator, or revoke sharing.

Exact Origin, 2 KiB body, rate limits and active access required for sharing. Revocation remains available after expiry. Automatic monthly delivery is opt-in. Queued status is distinct from successful Telegram delivery; demo dispatch remains disabled.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 Immutable report queued for both recipients, or consent revoked object
400 Invalid request or missing explicit consent object
401 Participant session required object
403 Untrusted origin or missing access object
404 Feature disabled object
409 Assigned owner unavailable object
413 Body limit exceeded object
429 Rate limit exceeded object

getTrainerSubscription

GET /api/trainer/subscription

Read own subscription terms and payment request.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 Own current terms and request, private no-store object
401 Participant session required object
404 Trainer disabled object

requestTrainerSubscription

POST /api/trainer/subscription

Accept current offer or report payment for manual review.

Exact Origin, session, rate limit and strict bounded JSON required. start: operation, confirmTerms true, version. paid: operation, own requestId. Client amounts rejected. Reporting never grants access.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 Durable own request status object
400 Invalid checkout body object
401 Participant session required object
403 Origin rejected object
404 Disabled or request not found object
409 Stale terms or retry object
413 Body exceeds 2 KiB object
429 Rate limit exceeded object

getTrainerTrial

GET /api/trainer/trial

Read own free-trial eligibility and consent readiness.

Reports whether the self-serve free trial is enabled, its length in days, the eligibility decision for this account, and whether the current offer and profile-data consent are recorded. No access is granted.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 Own trial eligibility and consent readiness, private no-store object
401 Participant session required object
404 Trainer disabled object

activateTrainerTrial

POST /api/trainer/trial

Grant the one-time free trial to the signed-in participant.

Exact Origin, session and rate limit required. Grants trainer access once for the configured number of days after signed consent. Re-grant is refused for any current or prior access. Client amounts and identity are never accepted.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 Trial granted; own access expiry returned object
401 Participant session required object
403 Origin rejected or account unavailable object
404 Trainer disabled object
409 Missing signed consent, already active, or trial already used object
429 Rate limit exceeded object

getTrainerSubscriptionQr

GET /api/trainer/subscription/qr

Read approved unchanged bank QR immediately after authentication.

Requires an authenticated trainer account. No payment request or health consent is needed to view the approved QR. Private no-store PNG.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 Approved QR PNG object
401 Session required object
404 Disabled or request unavailable object

getTrainerState

GET /api/trainer/state

Read only the signed-in participant's private trainer state.

Opt-in tenant feature. User identity is derived from the signed session, never request input. Expired access retains read/export ability. All responses are private, no-store.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 Revision, private state and write-access status object
401 Participant session required object
404 Trainer feature disabled object

saveTrainerState

PUT /api/trainer/state

Save validated private trainer state with revision protection.

Requires exact configured Origin, active account, participant membership/consent and unexpired trainer access for participants. Active tenant ADMIN has permanent access only to their own workspace. Maximum streamed body is 1 MiB. Concurrent revisions fail closed rather than overwriting another tab. Staff receive counters only through their authenticated workspace.

  • Authorisation: sessionCookie
  • Request body: required JSON, object
Status Response Body
200 New revision saved atomically object
400 Invalid JSON, duplicate keys or invalid state object
401 Participant session required object
403 Untrusted origin, expired access or missing membership/consent object
404 Feature disabled object
409 Concurrent or outdated revision; retain local changes for export object
413 Body exceeds 1 MiB object
429 Write rate exceeded object

downloadApprovedCourseDocument

GET /api/legal/[id]

Download an immutable approved tenant legal document.

Primary document originals are public. Supplementary participant forms require a participant or staff session. Internal implementation materials require staff. Signed personal originals are never served by this route.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 Original PDF (default) or Word template (?format=docx); inline PDF with ?inline=1; private, no-store object
404 Unknown document or insufficient access object

getSyntheticLegalPdf

GET /api/demo/legal/[kind]

Read a synthetic legal PDF in the isolated hosted demo.

Available only to authenticated synthetic accounts on the explicitly allowed hosted demo origin. These documents are demonstrations and are not approved course legal materials.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 Synthetic PDF; private, no-store object
404 Demo disabled, unapproved origin, non-demo account or unknown document kind object

getUserAvatar

GET /api/avatar/[userId]

Fetch a participant avatar through the server.

Proxies the current Telegram profile photo. Visible to the user, administrators and people who share a group with them; anyone else gets 404.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 The avatar image object
401 No session on the request object
404 No avatar, or the caller may not view it object

getFinalReport

GET /api/reports/final/[participantId]

Download the final course report as a PDF.

A participant may fetch only their own report and only after the facilitator published it. A facilitator may fetch it at any time (preview) for participants of their own groups. Diary entries marked private-to-self are never included.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 The report as a PDF attachment object
401 No session on the request object
403 The caller may not read this participant's report object
404 The report is not published yet object

exportOwnAccountData

GET /api/account/export

Download every record held about the signed-in participant.

Answers the data portability request with the participant's own records only. The workbook answers carry the wording that was published when they were written, not the wording published today. Each successful export is written to the audit log.

  • Authorisation: sessionCookie
  • Request body: None
Status Response Body
200 A downloadable JSON document scoped to the caller AccountExport
401 No participant session on the request ErrorCode

Response headers worth reading:

  • Content-Disposition on 200: Attachment filename stamped with the export date

manageEmailAccountAccess

POST /api/auth/email

Sign in or manage browser access without Telegram.

JSON mode selects login, register, attach, changeEmail, changePassword, logoutAll, recover, recoveryInfo, issueRecovery, generateRecoveryCodes or recoverCode. Login authenticates an existing email/password. Register creates only a participant account using a valid, single-use active-group invitation and keeps document choices separate from application access; an already authenticated user cannot register a duplicate profile. Attach requires a current active session; changing configured credentials also requires the current password and never merges accounts by a claimed email. ChangeEmail changes only the login address and preserves the existing password. ChangePassword preserves the login email. Both edits and logoutAll require the current password; logoutAll clears this session and revokes all devices without issuing a replacement. RecoveryInfo accepts a valid participant recovery token and returns only whether first-time email attachment is needed, without account identifiers or email addresses. Recovery consumes a manually delivered, single-use 30-minute token for the same participant; an existing email cannot be changed during recovery. IssueRecovery requires an authenticated manager of the participant's active group (or admin), an active participant account and explicit identityVerified=true after checking identity through an established channel; it does not send email or Telegram messages. GenerateRecoveryCodes requires the signed-in account to have email credentials and verifies its current password; it rotates eight 128-bit backup codes, returns them once and stores only SHA-256 hashes. RecoverCode requires the established email, an unused backup code and a strong new password, works for participants and staff without an email provider, preserves identity and consumes exactly one code. Credential changes, logoutAll and every password recovery revoke previous sessions, outstanding manual recovery links and unused backup code batches; generating a new batch revokes only the previous batch. Every mode requires the configured exact Origin and a body of at most 4096 bytes. Process-local limits are 30 requests per IP and 10 per normalized email, authenticated account, recovery token or recovery target in 15 minutes. Every response is private and no-store. Errors are generic and disclose no account existence or credentials.

Status Response Body
200 Sign-in or access change succeeded; issueRecovery returns a manual-delivery link, recoveryInfo returns needsEmail, generateRecoveryCodes returns eight codes once EmailAccessResponse
400 Malformed request or generic operation failure ErrorCode
401 Generic authentication, account access, password, invitation or recovery rejection ErrorCode
403 The request Origin is not the configured app origin ErrorCode
413 The request body exceeds 4096 bytes ErrorCode
429 The per-IP or per-account request limit was exceeded ErrorCode

Response headers worth reading:

  • Set-Cookie on 200: HttpOnly signed session cookie for login, registration, attachment, email/password changes and both recovery methods; logoutAll clears the current cookie
  • Retry-After on 429: Seconds until the current rate-limit window ends

Integrations

Read-only bearer access scoped to one group

exportTrainerArchive

GET /api/integrations/trainer-archive

Read consented tracker activity or one identical shared PDF for a private Google archive.

Requires a separate trainer-archive purpose key. Legacy analysis tokens are rejected. The key is scoped to one group and an active creator, expires in 90 days, and can be revoked. Only active members who explicitly opted into Google archive for this exact owner are exported. Tables contain activity counts and case statuses, never diary text; PDFs contain the complete consented snapshot. The report query is checked against the same group, owner and live consent. Responses are private/no-store. Each table is limited to 1000 records; excess rows fail instead of silently truncating. lastExportAt proves server delivery only, not Google synchronization.

  • Authorisation: analysisBearer
  • Request body: None
Status Response Body
200 Versioned tables and report metadata, or private PDF bytes object
401 Missing, invalid, wrong-purpose, expired or revoked credential object
403 Consent revoked object
404 Feature disabled or report outside scope object
413 Archive exceeds bounded snapshot size object
429 Rate limit exceeded object

acknowledgeTrainerArchive

POST /api/integrations/trainer-archive

Record a private Google archive synchronization acknowledgement.

Trainer-archive purpose key only. A bounded 2KiB strict versioned body contains operational status, generation UUID and Google file identifiers, never participant content. Acknowledgements are audited and rate limited. lastExportAt alone never proves successful Google storage.

  • Authorisation: analysisBearer
  • Request body: None
Status Response Body
200 Operational acknowledgement recorded object
400 Invalid acknowledgement object
401 Invalid archive key object
404 Feature disabled object
413 Body exceeds2KiB object
429 Rate limit exceeded object

exportIntegrationAnalysis

GET /api/integrations/analysis

Read a pseudonymous result snapshot for one integration group.

GET-only machine endpoint authenticated exclusively by Authorization: Bearer ; session cookies do not authorize this request and URL query parameters cannot broaden the immutable group scope. A key is issued once to a group manager, expires after 90 days and is stored only as a SHA-256 hash. Every fetch rechecks expiry, revocation, the issuer's active/unblocked account and current group-manager or admin rights; those checks are repeated before returning the snapshot. The limit is 48 exports per authorized key per hour. Direct account identifiers, credentials, every diary (including shared diaries), staff notes, draft workbooks and draft experiments are excluded. Submitted/reviewed workbook definitions retain their versioned snapshots. Participant-authored text and external result URLs can identify people: this is pseudonymous data, not anonymous data. The group scopes the participant roster and attendance; other participant results are not linked to a program/enrollment in the current schema and must not be attributed to this cohort. A successful fetch updates lastExportAt and lastRowCount in the app; it does not prove Google Sheets or another downstream service synchronized the response. Every handled response has Cache-Control: private, no-store and X-Content-Type-Options: nosniff.

  • Authorisation: analysisBearer
  • Request body: None
Status Response Body
200 Versioned pseudonymous participant result snapshot for the key's single group IntegrationAnalysisResponse
401 Generic INVALID_INTEGRATION_KEY: missing, malformed, expired or revoked bearer key, disabled/blocked issuer or issuer no longer permitted to manage this group ErrorCode
404 GROUP_UNAVAILABLE: the fixed group snapshot cannot be loaded ErrorCode
429 RATE_LIMITED: 48 authorized-key exports per hour exceeded ErrorCode
500 UNSAFE_EXPORT or EXPORT_UNAVAILABLE: the snapshot failed the privacy guard or could not be generated ErrorCode

Response headers worth reading:

  • Cache-Control on 200: private, no-store
  • X-Content-Type-Options on 200: nosniff
  • Retry-After on 429: Seconds until the rate-limit window ends

Telegram

Mini App sign-in and Bot API webhook delivery

deliverPrivateDownload

POST /api/downloads/telegram

Deliver an authorized export to the caller's private bot chat.

Requires an active cookie session, a linked Telegram account and the exact configured Origin. The JSON body contains href, limited to personal account export, final report PDF, staff results CSV or staff analysis JSON. Reuses the selected export's owner, role, group and publication guards. The recipient is always the authenticated account's Telegram ID, never a request parameter. No download URL or file bytes are returned. Files are at most 20 MiB; requests are limited to five per user in fifteen minutes in addition to export-specific limits. This explicitly user-requested delivery stores a copy in the user's Telegram chat. The UI asks for confirmation before sending.

  • Authorisation: sessionCookie
  • Request body: required JSON, object
Status Response Body
200 The file was delivered to the caller's private bot chat object
400 Malformed request or download outside the allowlist object
401 No active session object
403 Foreign request Origin or denied file access object
404 Report not published or group unavailable to the caller object
409 The caller has no linked Telegram account object
413 File exceeds 20 MiB object
429 Per-user download limit reached object
502 File could not be generated or delivered object

Response headers worth reading:

  • Retry-After on 429: Seconds until another attempt is allowed

authenticateTelegramMiniApp

POST /api/telegram/auth

Exchange Telegram Mini App init data for a session.

Verifies the init data signature, consumes an invite on first sign-in and sets the session cookie. Init data is never logged: only its digest is kept, and only to throttle replays.

Status Response Body
200 Session established; the body names where to continue TelegramAuthResponse
400 Malformed body, init data or invite token ErrorMessage
401 Init data failed verification, or the invite is used, revoked or expired ErrorMessage
403 Untrusted request origin, or the account is suspended ErrorMessage
413 The request body exceeds the accepted size ErrorMessage
429 Too many attempts for the same init data ErrorMessage
500 Temporary sign-in failure ErrorMessage
503 The bot is not configured in this environment ErrorMessage

Response headers worth reading:

  • Set-Cookie on 200: HttpOnly session cookie
  • Retry-After on 429: Seconds to wait before retrying

receiveTelegramUpdate

POST /api/telegram/webhook

Receive a Telegram Bot API update.

Called by Telegram, never by a client. The shared secret header is compared in constant time. An update that cannot be processed is still acknowledged so Telegram does not retry a poison message forever.

  • Authorisation: telegramWebhookSecret
  • Request body: required JSON, object
Status Response Body
200 The update was accepted, ignored or deduplicated WebhookAck
400 The body is not a JSON object WebhookAck
401 Missing or incorrect secret token header WebhookAck
413 The update exceeds the accepted size WebhookAck
502 A reply to Telegram could not be delivered WebhookAck
503 The bot is not configured in this environment WebhookAck

Schemas

Field lists below are the published contract. Additive fields may appear without a major version; existing fields never change meaning.

BillingEntitlement

Field Type Required
plan core | pro | agency yes
status string yes
currentPeriodEnd string | null (date-time) yes

BillingInvoice

Tenant invoice metadata visible only to an ADMIN caller; no payment credentials or processor state

Field Type Required
id string yes
amountMinor integer yes
currency string yes
state draft | open | paid | void yes
issuedAt string (date-time) yes
dueAt string | null (date-time) yes
paidAt string | null (date-time) yes

BillingResponse

Field Type Required
entitlement BillingEntitlement yes
invoices array of BillingInvoice yes

BillingCountsResponse

Field Type Required
counts array of object yes

DemoMeta

Field Type Required
mode "static-demo" yes
notice string yes
asOf string (date-time) yes
owner string yes

Template

Field Type Required
id string yes
name string yes
category string yes
summary string yes
accent string yes
modules array of string yes
readiness "demo" yes

Project

Field Type Required
id string yes
name string yes
templateId string yes
domain string (hostname) yes
state operational | degraded | maintenance | outage | unknown yes
environment "demo" yes
region string yes
runtimeVersion string yes
channels array of web | telegram yes
updatedAt string (date-time) yes

LiveStatusMeta

Field Type Required
mode "live" yes
asOf string (date-time) yes
windowDays 30 yes

UptimePoint

Field Type Required
date string (date) yes
state operational | degraded | maintenance | outage | unknown yes

StatusOverall

Field Type Required
state operational | degraded | maintenance | outage | unknown yes
uptime30d number | null yes
latencyMs integer | null yes

StatusGroup

Field Type Required
id platform | mini-apps | telegram | payments | provisioning yes
name string yes
description string yes
state operational | degraded | maintenance | outage | unknown yes
uptime30d number | null yes
latencyMs integer | null yes
sampleCount integer yes
checks array of UptimePoint yes

TemplatesResponse

Field Type Required
meta DemoMeta yes
data array of Template yes

ProjectsResponse

Field Type Required
meta DemoMeta yes
data array of Project yes

RuntimeVersion

Field Type Required
release string yes
version string yes
revision string no

HealthOk

Field Type Required
status "ok" yes

HealthUnavailable

Field Type Required
status misconfigured | unavailable yes

ErrorCode

Field Type Required
error string yes

ErrorMessage

Field Type Required
error string yes

WebhookAck

Field Type Required
ok boolean yes

IntegrationAnalysisResponse

Field Type Required
manifest IntegrationAnalysisManifest yes
program AnalysisProgram yes
group AnalysisGroup yes
enrollments array of AnalysisEnrollment yes
participants array of AnalysisParticipant yes

IntegrationAnalysisManifest

Field Type Required
schemaVersion 1 yes
kind "facilitator-analysis" yes
generatedAt string (date-time) yes
resultScope "participant" yes
scopeNote string yes
identityMode "pseudonymous" yes
privacyNote string yes
membershipScope "all-non-staff-memberships" yes
workbookScope "submitted-or-reviewed" yes
diaryScope "excluded" yes
definitionSnapshotNote string yes

AnalysisProgram

Field Type Required
id string yes
slug string yes
title string yes
totalWeeks integer yes

AnalysisGroup

Field Type Required
id string yes
name string yes
streamLabel string yes
startDate string (date-time) yes
timezone string yes
currentWeek integer yes
status ACTIVE | COMPLETED | ARCHIVED yes

AnalysisEnrollment

Field Type Required
participantId string yes
status ACTIVE | EXITED | BLOCKED yes
joinedAt string (date-time) yes
exitedAt string | null (date-time) yes
blockedAt string | null (date-time) yes

AnalysisParticipant

Field Type Required
participantId string yes
label string yes
currentStage NOTICING | EXPLORATION | EXPERIMENT | CHOICE_COMMITMENT | INTEGRATION yes
onboardedAt string | null (date-time) yes
baselineSubmittedAt string | null (date-time) yes
baselineResults array of object yes
indicatorValues array of object yes
checkIns array of object yes
goals array of object yes
experiments array of object yes
dailyMoods array of object yes
workbooks array of object yes
attendance array of object yes

EmailAccessRequest

The mode-specific request. Attachment and link issuance require a session; all modes require trusted Origin.

Type: object

EmailLoginRequest

Field Type Required
mode "login" yes
email string (email) yes
password string (password) yes

EmailRegistrationRequest

Field Type Required
mode "register" yes
email string (email) yes
password string (password) yes
name string yes
invite string yes

EmailAttachmentRequest

Field Type Required
mode "attach" yes
email string (email) yes
password string (password) yes
currentPassword string (password) no

EmailRecoveryRequest

Field Type Required
mode "recover" yes
token string yes
email string (email) no
password string (password) yes

EmailRecoveryIssueRequest

Field Type Required
mode "issueRecovery" yes
participantId string yes
identityVerified true yes

EmailChangeRequest

Field Type Required
mode "changeEmail" yes
email string (email) yes
currentPassword string (password) yes

PasswordChangeRequest

Field Type Required
mode "changePassword" yes
password string (password) yes
currentPassword string (password) yes

LogoutAllRequest

Field Type Required
mode "logoutAll" yes
currentPassword string (password) yes

RecoveryInfoRequest

Field Type Required
mode "recoveryInfo" yes
token string yes

RecoveryCodesGenerationRequest

Field Type Required
mode "generateRecoveryCodes" yes
currentPassword string (password) yes

CodeRecoveryRequest

Field Type Required
mode "recoverCode" yes
email string (email) yes
code string yes
password string (password) yes

EmailAccessResponse

Field Type Required
ok true yes
destination /f | /today | /login no
recoveryUrl string no
needsEmail boolean no
codes array of string no

TelegramAuthRequest

Field Type Required
initData string yes
inviteToken string no

TelegramAuthResponse

Field Type Required
ok true yes
destination /today | /onboarding | /f yes

AccountExport

Every record the platform holds about the caller. Arrays are present but may be empty.

Field Type Required
exportedAt string (date-time) yes
account object yes
participant object yes
memberships array of object no
goals array of object no
checkIns array of object no
submissions array of object no
experiments array of object no
conversations array of object no
consents array of object no

StatusResponse

Field Type Required
meta LiveStatusMeta yes
overall StatusOverall yes
groups array of StatusGroup yes