REST API (v2)

REST API (v2)

Overview of the DTPR v2 REST API — base URL, headers, authentication, CORS.

REST API (v2)

The DTPR v2 REST API is a public, read-only JSON + SVG API hosted at:

https://api.dtpr.io/api/v2

It is the underlying HTTP contract behind the MCP server — every MCP tool has a REST equivalent. Integrate against whichever surface fits your client.

In this section

Conventions

  • Authentication: none. All endpoints are public. Optional DTPR-Client: <name> header moves you to a dedicated rate-limit bucket.
  • CORS: requests from an explicit allow-list (dtpr.io, docs.dtpr.io, studio.nuxt.com, localhost, preview subdomains) are permitted. No wildcard. Exposed response headers: X-Request-Id, DTPR-Content-Hash, Retry-After.
  • Response headers: version-scoped reads stamp DTPR-Content-Hash (hex content hash) and Cache-Control. The canonical version is echoed inside the JSON body as "version" — there is no X-DTPR-Version header.
  • Versioning: the :version path segment accepts a canonical id like ai@2026-04-16-beta or an alias like ai@latest.
  • Errors: see Errors for the shared shape.
Copyright © 2026