Skip to content

API Details

Complete reference for Kooboo server-side k.* APIs. The English structure mirrors the Chinese /api/ section and keeps the same module layout for easier lookup.

Getting Started

DocDescription
API Getting StartedKScript basics and the shape of the global k object
Authentication and AuthorizationLogin, sessions, cookies, and access control

KScript APIs

ModuleDocDescription
k.accountaccount/Platform login, current user, organization, and OAuth
k.apiapi/API route helpers
k.cachecache/Site-level in-memory cache
k.commercecommerce/Commerce APIs including product, cart, and order pages
k.contentcontent/Content types and content items
k.cookiecookie/Cookies
k.DBdatabase/, indexed-db/, key-value/, sqlite/Database access, IndexedDB tables, key-value storage, and SQLite
k.filefile/Files in the site directory
k.googlegoogle/PageSpeed/Lighthouse and Firebase
k.labellabel/Multilingual k.t and k.label
k.loggerlogger/Code logs
k.mailmail/Sending mail, IMAP, SES, and parsing
k.mediamedia/Media library files and folders
k.modulemodule/Script modules, config, tasks, and packaging
k.openApiopenapi/External OpenAPI definitions, auth, and calls
k.netnet/HTTP, WebSocket, DNS, IP, Ping, SSH, SFTP, and Telnet
k.pagepage/Current page title and meta
k.paramConfigparam-config/Structured JSON parameter config
k.paymentpayment/Payment integrations
k.requestrequest/HTTP request data
k.responseresponse/HTTP response handling
k.securitysecurity/Encryption and hashing
k.sessionsession/Session state
k.sitesite/Pages, layouts, views, scripts, styles, codes, and menus
k.statestate/Per-request view state
k.utilsutils/Utility modules
SPA multilingualspa-multilingual//_spa/lang/{lang} dictionaries

k.site Sub-Resources

MemberDoc
k.site.pagespage.md
k.site.layoutslayout.md
k.site.viewsview.md
k.site.scriptsjs.md
k.site.stylescss.md
k.site.codescode.md
k.site.menusmenu.md
k.site.runJobjob.md

k.file Subpages

Subpages: folder, resumable, data structures

ScenarioNext doc
You need to prepare content models or site settings firstAdmin CMS
You need Page / Layout / View rendering rules firstTemplate Engine