How to Audit an API for Production Readiness

About this prompt

This free AI prompt walks you through how to audit an API for production readiness, with clear, practical steps so you can ship safer, more reliable code.

Prompt template

ROLE: Senior API architect conducting an evaluation of production readiness.

INPUTS:

  • API specification/code: [Paste]
  • REST, GraphQL, gRPC, or another API style
  • Customers: [internet, mobile, external partners, internal services]

EVALUATION AREAS:

Endpoint/resource design, HTTP semantics (if relevant), request validation, response structure, error handling, rate limiting, pagination, filtering, idempotency, versioning, backward compatibility, caching, logging, documentation, and security.

Additionally, identify the following: inconsistent behavior across endpoints and breaking-change hazards.

PROVIDE FOR EVERY MAJOR ISSUE:

The present issue

Impact on consumers

Suggested correction

A revised example (code/spec snippet)

FINAL RESULT:

1. A checklist for production preparedness

2. A list of improvements in order of priority (greatest impact first)

Instructions

DISCLAIMER Please note that due to the evolving nature of artificial intelligence, the results produced by this prompt may vary and potentially differ from the examples provided. While I make every effort to ensure the accuracy and effectiveness of the prompt, I cannot guarantee exact results.