AIOpenLibraryAIOpenLibrary
Back to Software Architecture

API Design Reviewer

Review API designs against REST maturity model, versioning best practices, error handling, pagination, and developer experience.

Updated Mar 11, 2026

ShareLinkedIn

Customize Your Prompt

0/6 filled

Prompt

You are an API design consultant who has designed APIs used by millions of developers. Review my API design.

API description: [API_DESCRIPTION]
API specification: [API_SPEC]
Target consumers: [CONSUMERS]
API style: [API_STYLE] (REST, GraphQL, gRPC)
Authentication: [AUTH_METHOD]
Expected scale: [SCALE]

Review against API design best practices:

**1. Resource Design (REST)**
- Noun-based URLs (not verbs)
- Proper HTTP method usage (GET/POST/PUT/PATCH/DELETE)
- Richardson Maturity Model level assessment
- Resource relationships and sub-resources
- URL naming consistency (plural nouns, kebab-case)

**2. Request/Response Design**
- Consistent response envelope (data, meta, errors)
- Proper HTTP status codes (not everything is 200 or 500)
- Error response format (machine-readable + human-readable)
  ```json
  { "error": { "code": "...", "message": "...", "details": [...] } }
  ```
- Request validation and error messages
- Idempotency keys for non-idempotent operations

**3. Pagination**
- Cursor-based vs. offset-based (recommendation with rationale)
- Page size limits and defaults
- Total count considerations (expensive at scale)
- Response format with next/prev links

**4. Versioning Strategy**
- URL path (/v1/) vs. header vs. query parameter
- Recommendation for your case
- Breaking vs. non-breaking change definitions
- Deprecation policy and sunset headers

**5. Security**
- Authentication mechanism review
- Authorization granularity
- Rate limiting design
- Input validation and sanitization
- CORS configuration
- Sensitive data in URLs (never!)

**6. Performance**
- Field selection / sparse fieldsets
- Expansion / embedding strategy (avoid N+1 on the client)
- Caching headers (ETag, Cache-Control)
- Compression (gzip/brotli)
- Batch/bulk endpoints

**7. Developer Experience**
- Consistency audit (naming, patterns, conventions)
- Documentation requirements (OpenAPI/Swagger)
- SDK/client library considerations
- Changelog and migration guides

**8. Specific Issues Found**
| # | Issue | Severity | Recommendation |

**9. Overall API Maturity Score**: X/10 with reasoning

Powered by Hugging Face Inference API

Pro Tips

  • API design is permanent — bad APIs live forever. A systematic review against proven patterns (Stripe, Twilio, GitHub) catches issues before they're locked in.

References

Comments

Log in to leave a comment

More Software Architecture Prompts

🏗️Software ArchitectureNEW

Architecture Decision Record Writer

Write well-structured Architecture Decision Records (ADRs) that document the context, options considered, and rationale behind key technical decisions.

You are a principal software architect who believes that documented decisions ar...

Claude
IntermediateView prompt
🏗️Software ArchitectureNEW

System Design Document Generator

Generate comprehensive system design documents (RFCs/design docs) with component architecture, data flow, API contracts, and operational considerations.

You are a staff engineer writing a design document for a new system. Create a co...

Claude
AdvancedView prompt
🏗️Software ArchitectureNEW

Event-Driven Architecture Planner

Design event-driven systems with event sourcing, CQRS, message brokers, and eventual consistency patterns.

You are a distributed systems architect specializing in event-driven architectur...

Claude
AdvancedView prompt

You Might Also Like

✍️Writing & Content✦ Premium

Blog Post Architect

Create SEO-optimized, engaging blog posts with structured outlines, compelling hooks, and strategic keyword placement.

You are an expert content strategist and SEO specialist. Create a comprehensive ...

Claude Opus 4
IntermediateView prompt
📚Education✦ Premium

Socratic Method Tutor

Learn any concept through guided questioning that builds deep understanding instead of memorization.

You are a Socratic tutor. Your role is to help me deeply understand a concept th...

Claude Opus 4
BeginnerView prompt
📦Product Management✦ Premium

Product Requirements Document (PRD)

Generate comprehensive PRDs with user stories, acceptance criteria, technical requirements, and success metrics.

You are a senior product manager at a top tech company. Write a comprehensive PR...

Claude Opus 4
IntermediateView prompt