Home
cd ../playbooks
Developer ToolsIntermediate

API & Integration Documentation

Generate comprehensive API documentation with endpoint references, authentication guides, code examples, and integration tutorials.

10 minutes
By communitySource
#api-documentation#integration-guide#endpoints#developer-docs#openapi

Your API has 40 endpoints and the documentation is a Confluence page from 2023 that's missing half of them. Developers waste hours guessing at request formats, authentication headers, and error codes. Bad docs turn a 10-minute integration into a 3-day odyssey.

Who it's for: API developers who need to document endpoints for external consumers, platform teams maintaining developer documentation for integrations, developer relations engineers improving API onboarding experience, technical writers documenting REST and GraphQL APIs, startups preparing API docs for their first external partners

Example

"Document our REST API for external developers" → Complete API reference with all endpoints, request/response examples, authentication guide with token flow, error code reference, rate limit documentation, SDK code samples in 3 languages, and a quickstart integration tutorial

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add recipe-api-documentation
# API & Integration Documentation

## Your Role
You are an expert API documentation specialist. Your job is to create clear, developer-friendly API documentation with working examples, comprehensive error handling, and integration guides.

## Core Principles
- Copy-pasteable examples for every endpoint
- Document error responses, not just happy paths
- Rate limits and authentication upfront
- Version number prominent on every page
- Generate from OpenAPI specs where possible for accuracy

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Creates comprehensive API documentation from code, OpenAPI specs, or informal descriptions — including endpoint references, authentication guides, request/response examples, error handling, and integration tutorials.


Quick Start

Step 1: Download the Template

Click Download above to get the CLAUDE.md file.

Step 2: Provide API Information

Share API source code, OpenAPI/Swagger specs, or informal descriptions of endpoints.

Step 3: Start Using It

claude

Say: "Generate API documentation for our user management service. Include authentication, all endpoints, request/response examples, and error codes."


Documentation Sections

Section Content
Getting Started Authentication, base URL, rate limits
Authentication API keys, OAuth flows, token management
Endpoint Reference Method, path, parameters, request/response
Code Examples cURL, Python, JavaScript examples per endpoint
Error Reference Error codes, meanings, and resolution steps
Webhooks Event types, payload formats, verification
Changelog API version history and breaking changes

Tips

  • Working examples first: Developers try examples before reading docs — make them copy-pasteable
  • Show error handling: Happy path examples are useless without error response documentation
  • Include rate limits: Developers need to know limits before they build, not after they hit them
  • Version prominently: Make it obvious which API version the docs describe

Commands

"Generate API docs from this OpenAPI spec"
"Create endpoint reference with request/response examples"
"Write an authentication guide for our API"
"Build integration tutorials for common use cases"

Troubleshooting

Docs out of sync with code Say: "Generate docs directly from code annotations or OpenAPI specs to stay current."

Too many endpoints to document Ask: "Start with the 10 most-used endpoints. Track which docs pages get the most traffic."

Developers still asking questions Specify: "Add a FAQ section based on support ticket themes."

$Related Playbooks

Developer Tools

Code Review Summary & Documentation

Generate structured code review summaries with findings categorization, pattern analysis, and team improvement recommendations.

5 minutes
Beginner
Developer Tools

Scientific Aeon

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or ti...

10 minutes
Intermediate
Developer Tools

Scientific Astropy

Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordina...

10 minutes
Intermediate
Developer Tools

Scientific Cirq

Google quantum computing framework. Use when targeting Google Quantum AI hardware, designing noise-aware circuits, or running quantum characterization experiments. Best for Google hardware, noise modeling, and low-level circuit design. For IBM har...

15 minutes
Advanced
Developer Tools

Scientific Fluidsim

Framework for computational fluid dynamics simulations using Python. Use when running fluid dynamics simulations including Navier-Stokes equations (2D/3D), shallow water equations, stratified flows, or when analyzing turbulence, vortex dynamics, o...

15 minutes
Advanced
Developer Tools

Scientific Get Available Resources

This skill should be used at the start of any computationally intensive scientific task to detect and report available system resources (CPU cores, GPUs, memory, disk space). It creates a JSON file with resource information and strategic recommend...

5 minutes
Beginner
Developer Tools

Technical Documentation from Engineering

Transform engineering inputs like code, architecture diagrams, and design docs into clear technical documentation for different audiences.

10 minutes
Intermediate
Developer Tools

Technical Specification Writing

Write detailed technical specifications with requirements, architecture decisions, interface definitions, and implementation plans.

10 minutes
Intermediate
Developer Tools

Web App Testing

Test local web applications with Playwright automation for frontend verification, UI debugging, and screenshot capture.

15 minutes
Intermediate
Developer Tools

Accessibility Engineering for Components

Build accessible UI components at the code level, not just the audit level — 14 concrete engineering principles (focus-visible over bare :focus, roving tabindex for composite widgets, inert-based modal focus trapping, WCAG 2.5.8 hit-area minimums), a common-mistakes table with fixes, and a severity-rated review format ending in a hard Block/Needs-changes/Approve verdict.

5 minutes
Intermediate
Developer Tools

Adversary Emulation: MuddyWater

An intelligence-grounded, authorized purple-team emulation profile for MuddyWater (MITRE ATT&CK G0069), Iran's MOIS-linked cyber-espionage group — attribution, targeting, representative TTPs by ATT&CK tactic, emulation guidance mapped to generic red-team tooling, and paired detection/defense recommendations for every offensive technique, all under an explicit authorized-use caveat.

15 minutes
Advanced
Developer Tools

Adversary Emulation: Turla

An intelligence-grounded, authorized purple-team emulation profile for Turla (MITRE ATT&CK G0010), Russia's FSB-linked espionage group — attribution, distinctive TTPs (satellite C2 hijacking, steganographic email backdoors, parasitizing rival APT infrastructure), emulation guidance mapped to generic red-team tooling, and paired detection recommendations, under an explicit authorized-use and lab-only caveat for rootkit techniques.

15 minutes
Advanced

Browse all Developer Tools playbooks →