API Design Reviewer
Reviews or designs a REST/JSON API for consistency, versioning, errors and pagination.
The prompt
Remixed ·Fill in the variables
The prompt above updates live. Nothing leaves your browser.Remix it
One-click variations. Stack them, then copy.
Why this prompt works
A fixed review checklist catches the inconsistencies that make APIs painful years later. Asking for a corrected list plus a sample error response forces concrete decisions instead of advice.
Framework: RISEN. Role, Instructions, Steps, End goal, Narrowing constraints.
Example
Illustrative, not a real model outputExample input
- [API_PURPOSE]
- booking appointments
- [ENDPOINTS_OR_OPENAPI]
- POST /createBooking, GET /getBookings?page=2, DELETE /booking/delete/{id}
What a good answer looks like (abridged)
How to use it
- Fill in 2 variables below (or in the prompt) with specific details.
- Paste it into Claude (also works in ChatGPT, Gemini, Grok).
- Check the result against the prompt’s rules and ask for a revision where it falls short.
Claude tips
- Wrap inputs in XML tags like <document> and <instructions>: Claude is trained to respect those boundaries.
- Ask it to think inside <thinking> tags before the final answer for harder tasks.
Common mistakes
- Leaving [VARIABLES] unfilled or vague ("my business") instead of specific ("a 3-person Calgary bakery").
- Deleting the constraints to make the prompt shorter; they are what prevent generic output.
- Accepting the first answer. Reply with what to fix and ask for a revision.
Guide: Promptnic template.
Frequently asked questions
Which AI model works best with the API Design Reviewer prompt?+
It is tuned for Claude and also works in ChatGPT, Gemini, Grok, DeepSeek. Wrap inputs in XML tags like <document> and <instructions>: Claude is trained to respect those boundaries.
How do I use this prompt?+
Copy it, replace the 2 [VARIABLES] (api purpose, endpoints or openapi) with your details, then paste it into Claude. You can fill the variables on this page and copy the finished version.
Is this prompt free to use?+
Yes. Every prompt on Promptnic is free to copy, adapt and use in personal or commercial work. A link back is appreciated, not required.
Why does this prompt work?+
A fixed review checklist catches the inconsistencies that make APIs painful years later. Asking for a corrected list plus a sample error response forces concrete decisions instead of advice.
Related prompts
Senior Code Reviewer: Bugs First, Nits Last
A code review prompt that prioritises correctness and security over style, with severity labels and concrete fixes.
Security Audit of a Code Snippet
Reviews code for OWASP-style vulnerabilities with exploit scenarios and fixed code.
Refactor Without Changing Behaviour
A safe-refactoring prompt: identifies smells, proposes small steps and proves behaviour is unchanged.
Architecture Decision Record (ADR) Drafter
Compares technical options against your constraints and writes a crisp ADR with a clear recommendation.
Explain This Codebase Like I Just Joined
Turns an unfamiliar repo or file into an onboarding map: architecture, data flow and where to start.
README That Gets People to Try Your Project
Writes a README with a one-line pitch, quick start that works on the first try, and honest limitations.