---
variant: static
url: /docs/api
title: thinkinglabs API documentation
description: >-
  Read claims, predictions, decisions, and other collections from the public
  thinkinglabs JSON API.
---
# thinkinglabs API documentation

Read claims, predictions, decisions, and other collections from the public thinkinglabs JSON API.

## Fetch a collection

Send an HTTP GET request to a collection endpoint. The API is public and requires no credentials. Each endpoint returns the whole collection as a JSON array.

```sh
curl -fsS https://thinkinglabs.run/api/claims.json
```

- [OpenAPI description](/openapi.json)

## Response fields

Each record has an id (the entry slug), data (validated frontmatter), body (source Markdown), and agent_metadata (links to the rendered page, Markdown, and source, plus an approximate token count). Fields inside data vary by collection.

Follow agent_metadata.html_url when citing a record. For text or tag filtering, use query_view in a local MCP installation.

- [thinkinglabs MCP server](/docs/mcp)
- [Content schemas](https://github.com/flaming-codes/thinkinglabs/tree/main/src/schemas)

## Collection endpoints

- [/api/claims.json](/api/claims.json): All claims as JSON.
- [/api/thoughts.json](/api/thoughts.json): All thoughts as JSON.
- [/api/inputs.json](/api/inputs.json): All inputs as JSON.
- [/api/observations.json](/api/observations.json): All observations as JSON.
- [/api/projects.json](/api/projects.json): All projects as JSON.
- [/api/predictions.json](/api/predictions.json): All predictions as JSON.
- [/api/changed-my-mind.json](/api/changed-my-mind.json): All belief revisions as JSON.
- [/api/decisions.json](/api/decisions.json): All decisions as JSON.
- [/api/questions.json](/api/questions.json): All open questions as JSON.
- [/api/posts.json](/api/posts.json): All posts as JSON.
