v0.5.0API

Dev API ships seven endpoints with cURL and Postman examples

The Dev Snippets API is live with seven endpoints covering OG cards, PDFs, diagrams, screenshots, sitemaps, OpenAPI mocks, and Penpot-to-React export — each with a paste-ready cURL and Postman collection.

Published

28 May 2026

UTC

Version

v0.5.0

semver-ish

Category

API

api

Format

.mdx

utf-8 · hand-curated

Screenshot for Dev API ships seven endpoints with cURL and Postman examples

The Dev Snippets API is live. Seven HTTP endpoints, one base URL, no auth gate on the public endpoints. Everything is documented with a copy-paste cURL invocation and a Postman collection alongside the schema.

What shipped

  • POST /v1/og — Open Graph image renderer, dark and light themes.
  • POST /v1/pdf — HTML → PDF with the page rendered by Chromium.
  • POST /v1/diagram — Mermaid → SVG/PNG.
  • POST /v1/screenshot — full-page or viewport screenshot of any URL.
  • POST /v1/sitemap — crawl a URL and emit a clean sitemap.xml.
  • POST /v1/openapi-mock — feed it an OpenAPI spec, get a mock back.
  • POST /v1/penpot-to-react — Penpot frame → React component scaffold.

How to use it

The browseable docs at /products/dev-api/docs list each endpoint with its request shape, response shape, and a runnable example. The Postman collection link is on the docs page itself — drop it into Postman or Insomnia and every endpoint loads as a saved request.

Why hand-rolled examples

Most "developer API" pages either point at a swagger spec or generate examples from one. We do both. The swagger spec is the source of truth, but the cURL invocation on each docs page is hand-written so the example reflects the most useful request shape, not the simplest one.