Prood

API Reference

Interactive OpenAPI documentation for the Prood Commerce REST API v1.

The Commerce API exposes a RESTful interface at /v1/* with a machine-readable OpenAPI 3.1 specification. This section provides interactive documentation for every endpoint — generated automatically from the API's Zod schemas via Fumadocs OpenAPI.

Base URL

EnvironmentURL
Local developmenthttp://localhost:3005/v1
Productionhttps://api.example.com/v1

OpenAPI spec

Download the raw specification:

GET /v1/openapi.json

The docs site syncs this spec at build time (pnpm sync:openapi) and renders each operation as an interactive page below.

Authentication

All endpoints require authentication except /v1/health and /v1/openapi.json. See Authentication for details on:

  • Session cookies (dashboard)
  • Host header (storefront)
  • API keys (x-api-key)
  • Agent JWT (Authorization: Bearer)

Endpoint groups

The pages below are organized by OpenAPI tags:

TagScopeDescription
CatalogstorefrontProducts, categories, store info, countries
CartsstorefrontCart CRUD, coupons, shipping, place order
OrdersstorefrontCustomer order history
AdminadminProduct/order/customer CRUD, inventory, stats
Webhookscheckout-secretPayment webhook ingress

Using the reference

Each operation page includes:

  • Description — what the endpoint does
  • Parameters — path, query, and header parameters with types
  • Request body — JSON schema for POST/PATCH requests
  • Responses — status codes and response schemas
  • Try it — execute requests against your local or production API

Client libraries

ClientPackageDescription
TypeScript@prood/api-clientTyped fetch client generated from this spec
MCPBuilt-in/mcp endpoint exposes tools mirroring these operations
Agent AuthBuilt-inEach operationId becomes an agent capability

On this page