Zod API

Generates one OpenAPI spec for built-in and custom endpoints, with request validation

Community 4 118/wk MIT v0.1.0

Installation

pnpm add @elementsinteractive/payload-zodapi

About

Zod API documents the whole Payload REST surface in a single OpenAPI spec. Built-in collection, global, authentication, upload and version endpoints appear alongside your own custom endpoints, and the spec is served as JSON with an interactive docs page.

Custom endpoints get validation on path parameters, query strings, request bodies and responses. Response checks can be set to enforce, log only or turn off. A generator also turns the Payload config into TypeScript schemas that you can reuse for runtime checks.

Package info

Package name
@elementsinteractive/payload-zodapi
Latest version
0.1.0
Unpacked size
199 kB
License
MIT
Weekly downloads
118
Last publish
Oct 27, 2026

Similar plugins

More in Devtools

Chat agent that composes and edits Payload pages from your block library

Exposes Payload collections and globals to AI agents through the Model Context Protocol

Lets AI assistants read and edit Payload content over MCP with scoped API keys

Editorial suite that lets teams run a Payload site through MCP tools and AI assistants

Typed block registry and React Server Component renderer for Payload blocks

Runs Payload CMS admin and APIs under vinext, on Node or Cloudflare Workers