Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Protoperfect Labs Content API
version: 1.0.0
description: Public API surface for Protoperfect Labs, an AI research, design, and development company.
servers:
- url: /api
description: Current deployment
tags:
- name: Content
description: Document and content rendering endpoints.
paths:
/markdown:
get:
operationId: renderMarkdown
tags:
- Content
summary: Render public markdown content
description: 'Returns Markdown for every public page: the home page, Studio, Games, About, the Foldwick study, Meant, Instruments, the documentation and research library, the glossary, the FAQ, /terms and /privacy. If the path query param is omitted, the home page Markdown is returned. The site middleware also serves the same Markdown at `.md` (the home page is `/index.md`) and for page requests sent with `Accept: text/markdown`.'
parameters:
- name: path
in: query
required: false
description: Canonical route to render. If omitted, defaults to /.
schema:
type: string
example: /docs
responses:
'200':
description: Rendered markdown content
headers:
x-markdown-tokens:
description: Approximate token estimate for the response body.
schema:
type: string
Vary:
description: Caching hint by Accept header.
schema:
type: string
example: Accept
Cache-Control:
description: Cache directives for markdown responses.
schema:
type: string
example: public, max-age=3600, s-maxage=86400
Link:
description: Canonical HTML URL of the page this Markdown projects.
schema:
type: string
example: <https://protoperfect.io/studio>; rel="canonical"
content:
text/markdown:
schema:
type: string
example: '# Let’s make it real.
We help you find the useful idea, understand who it is for, and bring it to life.'
'404':
description: Document not found, unpublished, private, or removed.
'500':
description: Unexpected rendering failure.
/search:
get:
operationId: searchDocuments
tags:
- Content
summary: Search the public research and documentation library
description: Matches every query token against published, indexed documents and returns up to 12 results, best first. Queries longer than 160 characters are truncated.
parameters:
- name: q
in: query
required: true
description: Search text. An empty query returns no results.
schema:
type: string
maxLength: 160
example: warranted agency
responses:
'200':
description: Ranked search results
content:
application/json:
schema:
type: object
properties:
results:
type: array
maxItems: 12
items:
type: object
properties:
title:
type: string
example: Bounded Agency in Real Work
path:
type: string
description: Canonical route of the matching document.
example: /research/bounded-agency-in-real-work
href:
type: string
description: Route plus the anchor of the best-matching section.
example: /research/bounded-agency-in-real-work#8-the-operating-agenda-implementing-bounded-agency
snippet:
type: string
section:
type: string
example: research
heading:
type:
- string
- 'null'
anchor:
type:
- string
- 'null'
'429':
description: Rate limit exceeded (60 requests per minute per IP on /api/*).