ThoughtAPI

Docs Reference

Example endpoint page

A sample page that shows how a submitted doc renders. Nothing on this page is a real endpoint.

Base URL
https://example.thought.bz/
Version
v1
Auth
Bearer token (example only)
Status
Example only

About this page#

This page is an example. It shows how a doc written with the template looks once published. The host, paths and payloads below do not exist.

Endpoints#

GET /v1/widgets/{id}#

Fetch one widget by its id. Example only.

Auth Bearer token

NameInTypeDescription
id requiredpathstringThe widget id.
expandquerystringComma separated related objects to include.

Request

bash
curl https://example.thought.bz/v1/widgets/wd_123 \
  -H "Authorization: Bearer <token>"

Response

json
{
  "id": "wd_123",
  "name": "Sample widget",
  "created_at": "2026-11-29T10:00:00Z"
}
StatusMeaning
401Missing or invalid token.
404No widget with that id.

POST /v1/widgets#

Create a widget. Example only.

Auth Bearer token

NameInTypeDescription
name requiredbodystringA display name.

Request

json
{"name": "Sample widget"}

Response

json
{"id": "wd_124", "name": "Sample widget"}
StatusMeaning
422The name is missing or too long.

Updated 2026-11-29