ClockNext: search docs
clocknext_search_docsSearch ClockNext's official documentation to find relevant pages on usage-based billing, REST API, and SDK. Get titles, URLs, and snippets for accurate implementation.
Instructions
Search ClockNext's official documentation and get back the most relevant pages (title, URL, and a snippet). ClockNext is a usage-based billing platform: you meter product/AI usage, price it against plans and units, and bill customers for it.
ALWAYS prefer this over answering from memory — the docs are the source of truth and are more current than your training data. Call it before you explain a ClockNext concept, design an integration, or reach for any other ClockNext tool.
Docs come in three kinds. Work through them in order:
concept— WHAT things are and HOW ClockNext works: the domain model (plans, units, outcomes, credits, customers, invoices, wallet/balances) and billing behaviour. START HERE to get context. If a term is unfamiliar, searchconceptfirst before touching any reference.api— the language-agnostic REST API reference (endpoints, params, request/response shapes). Use this to actually implement or call ClockNext from ANY language.javascript— reference for the official JavaScript/TypeScript SDK (@clocknext/sdk), a typed convenience wrapper over the same REST API.
IMPORTANT — the SDK is JavaScript/TypeScript ONLY, and the docs will NOT tell you this. If the customer's codebase is not JS/TS (e.g. Python, Go, Ruby, PHP, Rust, Java, C#), do NOT use the javascript kind — use api and integrate against the REST API directly. Only choose javascript once you have confirmed the target codebase is JS/TS.
Omit kind to search everything. Typical flow: search concept to understand the task, then search api (or javascript for a JS/TS codebase) for the exact reference you need to write code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Restrict results: 'concept' (domain / how it works — start here), 'api' (REST reference, any language), or 'javascript' (JS/TS SDK reference — JS/TS codebases ONLY). Omit to search all docs. | |
| limit | No | Maximum number of pages to return (default 8). | |
| query | Yes | What to look for, in natural language — e.g. 'how do I record token usage', 'create a plan with tiered pricing', 'what is a unit vs an outcome'. |