This page is the API documentation hub.
Canonical machine-readable contract:
docs/openapi.json
Regenerate the schema artifact:
./scripts/generate_openapi.sh- Public API: participant-facing and integration-safe endpoints for launch and result submission paths.
- Researcher API: authenticated researcher workflows (study lifecycle, sharing, analysis jobs, assets).
- Admin API (Internal): privileged platform administration endpoints.
- Builder/Interpreter Schema API: runtime config/timeline schema contracts used by Builder and Interpreter.
- Contributor Guide: formatting, sync workflow, and merge process for platform contributions.
- Public website docs (
cogflow.app) should publish only Public API and approved Researcher API sections. - Admin API docs should remain internal-only documentation.
Endpoint routing lives in backend/project/urls.py.
OpenAPI is generated from the running backend schema endpoint (/api/schema) using the script above.
Builder/Interpreter schema contracts are documented in docs/API_SCHEMAS.md and sourced from:
frontend/builder/src/schemas/JSPsychSchemas.jsfrontend/interpreter/src/timelineCompiler.jsbackend/project/api_views_common.pytask scope definitions
Follow docs/DOCS_MAINTENANCE.md for update triggers, cadence, and release gates.