Back to Library

API Documentation Generator

Engineering & ProductCopilot ChatAPIdocumentationdeveloperRESTtechnical writing

Prompt

Generate comprehensive API documentation for [API NAME] at [COMPANY NAME].

API details:
- API type: [REST / GraphQL / gRPC / SOAP]
- Base URL: [URL]
- Authentication method: [API KEY / OAuth / JWT / BASIC]
- Primary use cases: [WHAT DEVELOPERS DO WITH THIS API]
- Target developer audience: [INTERNAL / EXTERNAL / PARTNER]
- Existing endpoints to document: [LIST ENDPOINTS OR PASTE SPEC]

Create complete API documentation:

1. **Introduction** — What this API does, who it's for, and what they can build.

2. **Authentication** — Step-by-step guide to getting and using credentials. Include code examples.

3. **Quick Start** — Working example from zero to first successful API call in under 10 minutes.

4. **Endpoint Reference** — For each endpoint:
   - Method and path
   - Description
   - Request parameters (path, query, body) with types, required/optional, descriptions
   - Request example (curl and at least one SDK)
   - Response schema with types
   - Response example (success and common errors)
   - Rate limits and pagination if applicable

5. **Error Reference** — All error codes with descriptions and resolution steps.

6. **Code Examples** — Working samples in [LANGUAGES: PYTHON / JS / JAVA / GO].

7. **Changelog** — Format for documenting API changes.

8. **Support and Feedback** — How to get help and report issues.

More from Engineering & Product

Engineering & Product

Product Requirements Document (PRD) Generator

Write a comprehensive Product Requirements Document (PRD) for [FEATURE OR PRODUCT NAME] at [COMPANY NAME]. Context: - Problem being solved: [DESCRIPTION] - Tar...
Copilot Chat
Engineering & Product

Sprint Planning Facilitator

Facilitate sprint planning for [TEAM NAME] at [COMPANY NAME] for Sprint [NUMBER]. Sprint context: - Sprint length: [1 / 2 / 3 WEEKS] - Team velocity (average s...
Copilot Chat
Engineering & Product

Technical Architecture Decision Record

Write an Architecture Decision Record (ADR) for the following technical decision at [COMPANY NAME]. Decision context: - Decision title: [SHORT DESCRIPTIVE TITL...
Copilot Chat
Back to Library