Docs Reference
Example endpoint page
A sample page that shows how a submitted doc renders. Nothing on this page is a real endpoint.
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
| Name | In | Type | Description |
|---|---|---|---|
id required | path | string | The widget id. |
expand | query | string | Comma 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"
}
| Status | Meaning |
|---|---|
401 | Missing or invalid token. |
404 | No widget with that id. |
POST /v1/widgets#
Create a widget. Example only.
Auth Bearer token
| Name | In | Type | Description |
|---|---|---|---|
name required | body | string | A display name. |
Request
json
{"name": "Sample widget"}
Response
json
{"id": "wd_124", "name": "Sample widget"}
| Status | Meaning |
|---|---|
422 | The name is missing or too long. |
Updated 2026-11-29