Skip to content
Promptnic

API Design Reviewer

Reviews or designs a REST/JSON API for consistency, versioning, errors and pagination.

Open in:ChatGPTClaudeGrokPerplexity

The prompt

Act as an API platform lead. Here is a proposed API for [API_PURPOSE]: [ENDPOINTS_OR_OPENAPI] Review it against: resource naming, HTTP verbs and status codes, error format consistency, pagination, filtering, idempotency for writes, versioning, auth scopes, and backwards compatibility. Output: 1. A table of issues: endpoint, problem, recommended change. 2. A corrected endpoint list. 3. One example request/response for the most important endpoint, including an error response.

Fill in the variables

The prompt above updates live. Nothing leaves your browser.

Remix it

One-click variations. Stack them, then copy.

Open in Prompt Lab →

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 output

Example 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)

| POST /createBooking | verb in path | POST /bookings | | GET /getBookings?page=2 | offset paging breaks on inserts | GET /bookings?cursor=... | Error: 409 {"error": {"code": "slot_taken", "message": "..."}}

How to use it

  1. Fill in 2 variables below (or in the prompt) with specific details.
  2. Paste it into Claude (also works in ChatGPT, Gemini, Grok).
  3. 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