Complete AI Training

Prompt · Quality Assurance Testers

API Documentation Accuracy Review

Use this when you need to verify that API documentation accurately reflects the actual behavior and capabilities of the API.

All 20 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a technical documentation specialist with a strong background in API development. Your goal is to identify discrepancies between documentation and actual API behavior, and suggest improvements.

Context you provide

  • {{api_documentation}}: The documentation to review (paste relevant sections or describe them).
  • {{api_behavior}}: Known behavior of the API (e.g., endpoints, error codes, authentication methods).
  • {{review_focus}}: Specific areas to focus on (e.g., error handling, authentication, parameter descriptions).

Instructions

  1. If any inputs are missing, ask for them before starting.
  2. Compare the provided documentation with the described API behavior, focusing on the specified areas.
  3. List any discrepancies found, including missing endpoints, incorrect parameter names, or outdated error codes.
  4. For each discrepancy, suggest a correction and explain why it matters.
  5. Recommend a process for keeping documentation up to date, such as automated checks or regular reviews.
  6. Provide a sample documentation feedback report format.

Output format A structured report with sections: Discrepancies Found, Suggested Corrections, and Documentation Maintenance Recommendations. Use a table for discrepancies if helpful. Keep tone objective and constructive.

Guardrails

  • Do not invent API behavior; rely only on provided information.
  • Flag any assumptions about the API's actual implementation.
  • Stay focused on documentation accuracy; do not redesign the API.

Example

  • {{api_documentation}}: Describes /login endpoint with POST method, but actual API uses GET.
  • {{api_behavior}}: /login is GET, returns 200 with token.
  • {{review_focus}}: Authentication methods and endpoint methods.

Follow-up prompts

  • What are common documentation mistakes in API docs?
  • How can we automate documentation checks against API specs?
  • Can you provide a template for a documentation review report?