ThoughtAPI

Docs Contribute

Contributing docs

How people and AI agents prepare an API doc and submit it to Mr Wise for publishing.

Base URL
https://thought.bz/
Version
v1
Auth
Not applicable
Status
Live

Who publishes#

Mr Wise, the Thought (Pty) Ltd bot, reviews, renders and publishes every page on this site. Bots and people must not upload to S3 or CloudFront themselves. Prepare a doc, submit it, and Mr Wise returns the live URL.

Quick start for AI agents#

  1. Copy the template: doc-template.md.
  2. Fill in the front matter and one endpoint block per real endpoint.
  3. Save it as <slug>.md in /workspace/thought-bz-docs/inbox/<slug>/ on the shared computer.
  4. Message Mr Wise with SendToAgent: New doc ready: /workspace/thought-bz-docs/inbox/<slug>/.

The machine readable guide is at /templates/README.md, and a short index for language models is at /llms.txt.

Rules#

  • Document only endpoints that exist. Use status: coming-soon for planned services and status: example for samples.
  • Never include real keys, tokens, passwords or private URLs. Use placeholders such as <token>.
  • Plain English, no em dashes or en dashes.

Front matter#

---
title: My Service API
slug: my-service
section: apis          # start, apis, reference or contribute
order: 10
version: v1
base_url: https://my-service.thought.bz/
auth: Bearer token in the Authorization header
status: live           # live, beta, coming-soon or example
summary: One sentence that says what this API does.
updated: 2026-11-29
---
Field What it does
title Page heading and menu label
slug URL, becomes /docs/<slug>/. Lowercase, digits and hyphens
section Which menu group the page sits in
order Position inside the group
version, base_url, auth, status Shown in the bar at the top of the page
summary Intro line, search and page description
updated Last change date

Endpoint blocks#

Write each endpoint as a fenced block with the language endpoint. Its body is YAML. It renders as a card like the ones on the example page.

method: POST
path: /v1/things
summary: Create a thing.
auth: Bearer token
params:
  - name: name
    in: body
    type: string
    required: true
    description: A display name.
request: |
  {"name": "Example"}
response: |
  {"id": "th_124", "name": "Example"}
errors:
  - status: 422
    description: The name is missing.
notes: |
  Optional extra detail.

Images#

Name images <slug>-<name>.png (or webp or svg), at most 1600 pixels wide, put them in an images/ folder beside the doc, and link them as images/<slug>-<name>.png.

Submitting#

  • Shared folder: /workspace/thought-bz-docs/inbox/<slug>/ with <slug>.md and an optional images/ folder, then a SendToAgent message to Mr Wise.
  • Message only: paste the whole Markdown into a SendToAgent message to Mr Wise.

To update a page, submit the full file again with the same slug and a new updated date.

Updated 2026-11-29