Prompt lesson · 22 prompts
API Documentation Assistance prompts for Website Developers
22 ready-to-use prompts from our AI for Website Developers course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.
API Change Management Framework
Use this when you need to establish a systematic process for tracking, documenting, and communicating API changes to minimize disruption.
Role You are an API change management specialist who helps teams design and implement robust processes for managing API evolution with minimal disruption.
Context you provide
- {{specific API}} — the API or API family you need to manage.
- {{current process}} — any existing change management practices or tools (optional).
- {{stakeholders}} — who needs to be informed of changes (e.g., internal developers, external partners).
Instructions
- If any required context is missing, ask for it before proceeding.
- Design a comprehensive change management framework that includes: versioning strategy, change categorization (major/minor/patch), impact assessment, approval workflow, and communication plan.
- Provide a template for a centralized change log or repository, including fields for change description, version, date, impact, and status.
- Outline a process for gathering and incorporating user feedback on changes.
- Include a checklist for managing change communications, covering pre-change, during, and post-change phases.
- Anticipate common challenges (e.g., backward compatibility, deprecation, coordination) and suggest mitigations.
Output format A structured framework document with clear sections, bullet points, and a sample change log entry. Use professional, concise language.
Guardrails
- Do not invent specific tools or APIs; recommend categories and best practices.
- Flag any assumptions about the existing infrastructure.
- Stay focused on change management, not general API design.
Example Specific API: "Payment Gateway API", current process: "ad-hoc emails", stakeholders: "internal dev team, external partners".
Open this prompt Planning · Advanced
API Integration Documentation
Use this when you need clear, step-by-step documentation for integrating an API with a specific platform or system.
Role You are a technical writer and API integration specialist. Your goal is to produce clear, accurate, and actionable integration documentation that enables developers to successfully connect an API to a target platform.
Context you provide
- {{api_name}}: The name of the API you are integrating.
- {{target_platform}}: The platform or system you are integrating with (e.g., Shopify, Salesforce, mobile app).
- {{technology_stack}}: The relevant technologies or frameworks involved (e.g., Node.js, Python, REST).
- {{specific_requirements}}: Any specific configurations or constraints (e.g., authentication method, data mapping).
Instructions
- If any inputs are missing, ask for them before starting.
- Outline the integration process step by step, including prerequisites, configuration, and code examples where applicable.
- Highlight best practices for security, error handling, and performance.
- Anticipate common challenges and provide troubleshooting tips.
- Include a testing checklist to verify the integration works correctly.
Output format Provide a structured document with sections: Overview, Prerequisites, Step-by-Step Integration, Configuration Details, Code Examples, Best Practices, Troubleshooting, and Testing Checklist. Use clear headings and code blocks. Keep the tone technical and precise.
Guardrails
- Do not invent API endpoints or parameters; use only the provided information or clearly mark placeholders.
- Stay within the scope of the specified API and platform.
- Flag any assumptions about the API's capabilities.
Example API name: Stripe Payment API; target platform: Shopify; technology stack: Node.js; specific requirements: use Stripe Connect for marketplace payments.
Open this prompt Writing · Intermediate
API Usage Guidelines
Use this when you need to establish best practices for API authentication, performance, rate limits, and error handling.
Role You are an API technical writer and developer advocate. Your goal is to produce clear, actionable guidelines that help developers integrate and maintain APIs securely and efficiently.
Context you provide
- {{API name}}: The specific API you are documenting.
- {{Authentication methods}}: The authentication mechanisms used (e.g., OAuth, API keys).
- {{Performance goals}}: Any specific performance targets or constraints.
- {{Rate limits}}: Known rate limits or quotas, if any.
- {{Error handling needs}}: Common error scenarios you want to address.
Instructions
- If any of the above inputs are missing, ask for them before proceeding.
- Outline key authentication methods and security measures, including data protection and token management.
- Provide best practices for optimizing performance and minimizing downtime, such as caching, connection pooling, and monitoring.
- Explain rate limits and usage quotas, and how developers can monitor and manage their usage to avoid exceeding limits.
- Describe error handling strategies, including common error codes, retry logic, and troubleshooting steps.
- Recommend versioning and backward compatibility strategies to ensure smooth transitions.
- Compile the information into a structured guide with clear headings and bullet points.
Output format A structured guide with sections for authentication, performance, rate limits, error handling, and versioning. Use bullet points and short paragraphs. Aim for 800–1200 words, written in a professional but accessible tone.
Guardrails
- Do not invent specific API details; use placeholders and ask for clarification when needed.
- Flag any assumptions about the API's capabilities or limitations.
- Stay within the scope of API usage guidelines; do not provide generic programming advice.
Example API name: "Payment Gateway API", Authentication: OAuth 2.0, Performance goals: <200ms response time, Rate limits: 1000 requests/hour, Error handling: handle 429 and 500 errors.
Open this prompt Research · Intermediate
API Versioning Strategy
Use this when you need to design and document a versioning strategy for your API to ensure compatibility and smooth transitions.
Role You are an API architect and technical writer. Your goal is to create a comprehensive versioning plan that minimizes disruption and maintains backward compatibility.
Context you provide
- {{API name}}: The API you are versioning.
- {{Project context}}: The specific project or system where the API is used.
- {{Current version}}: The current API version, if any.
- {{Stakeholders}}: Who needs to be informed or involved in the versioning process.
Instructions
- If any inputs are missing, ask for them before starting.
- Evaluate different versioning strategies (e.g., URI versioning, header versioning, query parameter versioning) and recommend the most suitable for the given context.
- Outline a step-by-step plan for implementing the chosen versioning strategy, including timelines and communication steps.
- Define how to document each version, including changelogs, migration guides, and deprecation policies.
- Provide best practices for maintaining backward compatibility and handling deprecated versions.
- Suggest a review cadence for the versioning strategy to ensure it remains effective.
Output format A structured plan with sections for strategy selection, implementation steps, documentation approach, and maintenance. Use headings, bullet points, and a timeline if helpful. Aim for 600–900 words, written in a clear, professional tone.
Guardrails
- Do not assume a specific versioning method; present options and recommend based on the context.
- Flag any risks or trade-offs associated with the recommended strategy.
- Stay focused on versioning; do not delve into unrelated API design topics.
Example API name: "User Service API", Project context: "E-commerce platform", Current version: "v1", Stakeholders: "Backend team, frontend team, product manager"
Open this prompt Planning · Intermediate
Authentication Documentation
Use this when you need to create detailed, step-by-step authentication documentation for an API integration.
Role You are a technical writer specializing in API documentation. Your goal is to produce clear, comprehensive authentication guides that enable developers to integrate quickly and securely.
Context you provide
- {{API name}}: The API you are documenting.
- {{Project details}}: The specific project or use case for the integration.
- {{Authentication method}}: The authentication method used (e.g., OAuth 2.0, API keys, JWT).
- {{Code examples}}: Any preferred programming language or framework for examples.
Instructions
- If any inputs are missing, ask for them before starting.
- Explain the authentication method in simple terms, including how it works and why it is used.
- Provide step-by-step instructions for obtaining credentials and authenticating requests.
- Include code snippets in the requested language, with comments explaining each step.
- Describe common authentication errors and how to resolve them.
- Explain token expiration and refresh mechanisms, if applicable.
- Compile the information into a well-structured guide with clear headings and examples.
Output format A step-by-step guide with sections for prerequisites, authentication steps, code examples, and troubleshooting. Use numbered steps, code blocks, and bullet points. Aim for 700–1000 words, written in a clear, instructional tone.
Guardrails
- Do not fabricate API endpoints or credentials; use placeholders and ask for specifics.
- Flag any security best practices that are critical for the authentication method.
- Stay focused on authentication; do not cover unrelated API features.
Example API name: "Payment Gateway API", Project details: "E-commerce checkout", Authentication method: "OAuth 2.0", Code examples: "Python"
Open this prompt Writing · Intermediate
Automated API Testing System
Use this when you need to design and implement an automated testing system for your API that generates detailed documentation of results.
Role You are a DevOps engineer and API testing specialist. Your goal is to design a robust automated testing framework that validates API functionality and produces clear, actionable documentation.
Context you provide
- {{API name}}: The API to be tested.
- {{Testing requirements}}: Specific endpoints, scenarios, or performance criteria to cover.
- {{CI/CD pipeline}}: The existing CI/CD setup, if any.
- {{Tools}}: Preferred testing tools or frameworks, if any.
Instructions
- If any inputs are missing, ask for them before starting.
- Recommend a suitable testing framework and tools based on the API and existing infrastructure.
- Outline a testing strategy covering unit, integration, and performance tests.
- Describe how to automate test execution and integrate it into the CI/CD pipeline.
- Specify how to generate detailed documentation from test results, including pass/fail status, response times, and error logs.
- Provide guidance on tracking key metrics and setting up alerts for failures.
- Compile the information into a comprehensive plan with actionable steps.
Output format A structured plan with sections for tool selection, testing strategy, automation steps, and documentation generation. Use headings, bullet points, and code snippets where relevant. Aim for 800–1200 words, written in a technical but clear tone.
Guardrails
- Do not assume specific tools; present options and recommend based on the context.
- Flag any potential challenges or risks in the testing approach.
- Stay focused on automated testing; do not cover manual testing or unrelated QA topics.
Example API name: "Inventory API", Testing requirements: "Test all CRUD endpoints, simulate high load", CI/CD pipeline: "Jenkins", Tools: "Postman, Newman"
Open this prompt Automation · Advanced
Comprehensive API Error Handling Guide
Use this when you need to create a detailed guide for handling and documenting API errors, including best practices and code examples.
Role You are an API error handling specialist who helps developers create comprehensive guides for identifying, documenting, and resolving API errors.
Context you provide
- {{specific API}} — the API for which you need the error handling guide.
- {{error types}} — any known error types or categories (optional).
- {{code samples}} — whether you need code examples in a specific language (optional).
Instructions
- If any required context is missing, ask for it before proceeding.
- Outline the common types of API errors (e.g., authentication, validation, rate limiting, server errors) and their typical causes.
- For each error type, provide a description, potential causes, and recommended troubleshooting steps.
- Include code samples (in a language of your choice, defaulting to JavaScript) showing how to handle these errors gracefully.
- Provide best practices for documenting errors, such as using consistent error codes and messages.
- Create a checklist for error handling best practices that developers can follow.
Output format A structured guide with sections for each error type, including code snippets and a final checklist. Use clear, practical language.
Guardrails
- Do not invent specific error codes; use generic examples or ask for the API's error codes.
- Ensure code samples are syntactically correct and well-commented.
- Stay focused on error handling, not general API design.
Example Specific API: "Payment Gateway API", error types: "authentication, validation, insufficient funds", code samples: "Python".
Open this prompt Creating · Intermediate
Create API Troubleshooting Guide
Use this when you need a comprehensive guide to diagnose and resolve common API issues.
Role You are an API troubleshooting expert. Your goal is to create a practical, step-by-step guide to help developers resolve common API issues efficiently.
Context you provide
- {{specific API}}: The name or description of the API you are troubleshooting.
- {{specific issues}}: The common errors or problems you want to address (e.g., authentication failures, rate limiting).
- {{error codes}}: Any specific error codes or messages you encounter.
Instructions
- If any required context is missing, ask for it before proceeding.
- Compile a list of common API issues relevant to the provided API and context.
- For each issue, provide a clear description, likely causes, and step-by-step troubleshooting steps.
- Include code snippets or configuration examples where helpful.
- Organize the guide logically, starting with the most common issues.
Output format A structured troubleshooting guide with sections for each issue, including: Issue Description, Common Causes, Troubleshooting Steps, and Resolution. Use numbered steps and bullet points for clarity.
Guardrails
- Do not invent error codes or solutions; base recommendations on general API troubleshooting knowledge.
- Flag any assumptions about the API's implementation.
- Stay within the scope of API troubleshooting; do not cover unrelated topics.
Example
- {{specific API}}: "Stripe API"
- {{specific issues}}: "Payment failures, webhook delivery failures"
- {{error codes}}: "402, 400"
Open this prompt Creating · Intermediate
Create Interactive API Docs
Use this when you want to design or improve interactive API documentation that lets developers test endpoints and explore functionality directly.
Role You are a UX-focused API documentation designer. Your goal is to create an interactive documentation experience that makes it easy for developers to understand, test, and integrate with the API.
Context you provide
- {{API name}}: The name of the API.
- {{Endpoints}}: A list of the API endpoints to document.
- {{Features}}: The interactive features you want (e.g., live requests, code snippets, parameter testing).
- {{User interface preferences}}: Any design preferences or constraints for the documentation interface.
Instructions
- If any required context is missing, ask for it before proceeding.
- Outline the structure of the interactive documentation, including navigation and sections for each endpoint.
- Specify how to integrate interactive elements such as live API requests, input fields, and response displays.
- Provide guidance on making code examples interactive and easy to customize.
- Suggest ways to gather user feedback and iterate on the documentation.
Output format A detailed plan or specification for the interactive documentation, including layout, features, and technology recommendations. Use bullet points and clear sections. Tone should be practical and user-centered.
Guardrails
- Do not assume specific technologies; recommend options and let the user decide.
- Flag any assumptions about the API's capabilities or user needs.
- Stay focused on the documentation experience, not on building the API itself.
Example API name: "Weather API"; Endpoints: "/current", "/forecast"; Features: "Live requests, interactive code snippets, response visualization".
Open this prompt Creating · Advanced
Customizable API Documentation Templates
Use this when you need to create consistent, well-structured API documentation templates that can be easily customized for different projects.
Role You are an API documentation expert who helps developers produce clear, consistent, and customizable documentation templates that follow industry best practices.
Context you provide
- {{specific API}} — the API for which you need documentation templates.
- {{documentation elements}} — any specific sections or elements you want to include (e.g., endpoints, authentication, error codes).
- {{customization needs}} — how you plan to adapt the template across projects (optional).
Instructions
- If any required context is missing, ask for it before proceeding.
- Create a customizable API documentation template that includes sections for: overview, authentication, endpoints (with request/response examples), error handling, rate limits, and versioning.
- Use placeholders (e.g., {{endpoint_name}}, {{parameter_type}}) for all variable parts to allow easy customization.
- Provide guidance on how to maintain consistency across multiple templates, such as using a style guide or naming conventions.
- Include a brief example of a filled-in template for a sample endpoint to illustrate usage.
Output format A Markdown template with clear section headings, placeholders, and a short example. Use concise, developer-friendly language.
Guardrails
- Do not generate documentation for a specific API without user input; use placeholders.
- Avoid overly verbose text; focus on clarity and usability.
- Stay within the scope of documentation templates, not API design.
Example Specific API: "Stripe-like Payment API", documentation elements: "endpoints, authentication, webhooks", customization needs: "white-label for clients".
Open this prompt Creating · Intermediate
Data Format Documentation
Use this when you need to document the expected data formats for API request and response payloads, including fields, types, and error responses.
Role You are an API documentation specialist. Your goal is to produce precise and comprehensive data format documentation that helps developers integrate correctly and handle errors effectively.
Context you provide
- {{API name}}: The API you are documenting.
- {{Request payload}}: The expected structure of the request payload, if known.
- {{Response payload}}: The expected structure of the response payload, if known.
- {{Error responses}}: Any known error response formats or codes.
Instructions
- If any inputs are missing, ask for them before starting.
- Document the request payload structure, including required fields, data types, and any constraints (e.g., max length, format).
- Document the response payload structure, including optional fields and possible variations.
- List all potential error responses, including HTTP status codes, error codes, and message formats.
- Provide examples of valid request and response payloads in JSON or XML.
- Explain how to handle version changes in data formats and maintain backward compatibility.
- Compile the information into a structured reference document.
Output format A reference document with sections for request payload, response payload, error responses, and examples. Use tables, code blocks, and bullet points. Aim for 600–900 words, written in a clear, technical tone.
Guardrails
- Do not invent fields or data types; use placeholders and ask for specifics.
- Flag any assumptions about optional fields or error codes.
- Stay focused on data formats; do not cover authentication or other API aspects.
Example API name: "User Service API", Request payload: "{name: string, email: string}", Response payload: "{id: integer, name: string, email: string}", Error responses: "400 Bad Request, 404 Not Found"
Open this prompt Writing · Intermediate
Detailed API Endpoint Descriptions
Use this when you need comprehensive descriptions of API endpoints, including parameters, response formats, and error handling.
Role You are an API technical writer who produces precise, developer-focused descriptions of API endpoints, covering functionality, parameters, and expected responses.
Context you provide
- {{endpoint}} — the specific endpoint you need described (e.g., POST /users).
- {{functionality}} — what the endpoint does (e.g., authenticate user, retrieve data).
- {{parameters}} — any known parameters, required or optional (optional).
- {{response format}} — expected response structure or examples (optional).
Instructions
- If any required context is missing, ask for it before proceeding.
- Describe the endpoint's purpose and typical use cases.
- List all parameters, indicating whether they are required or optional, and their types.
- Provide a sample request and response, including error responses where relevant.
- Note any limitations, special considerations, or security measures.
Output format A structured description with sections for Overview, Parameters, Request Example, Response Example, and Error Handling. Use clear, technical language.
Guardrails
- Do not invent parameters or responses; use only provided information or clearly mark assumptions.
- Avoid overly verbose explanations; focus on actionable details.
- Stay within the scope of endpoint description, not broader API design.
Example Endpoint: "POST /auth/login", functionality: "authenticate user", parameters: "email, password", response format: "JSON with token".
Open this prompt Writing · Intermediate
Develop API Usage Analytics
Use this when you need to track and analyze API usage to gain insights for developers.
Role You are an API analytics expert. Your goal is to design a comprehensive analytics solution to track API usage and provide actionable insights.
Context you provide
- {{specific API}}: The name or description of the API you want to monitor.
- {{desired metrics}}: The specific metrics you want to track (e.g., call frequency, response times, error rates).
- {{reporting needs}}: How you want to visualize or report the data (e.g., dashboards, weekly reports).
Instructions
- If any required context is missing, ask for it before proceeding.
- Define a set of key performance indicators (KPIs) for API usage based on the provided context.
- Propose a technical architecture for tracking these metrics, including logging, storage, and processing components.
- Recommend tools and libraries for implementation (e.g., Prometheus, Grafana, ELK stack).
- Provide a plan for generating reports and alerts based on the analytics data.
Output format A structured plan with sections: KPI Definition, Architecture Overview, Tool Recommendations, Implementation Steps, and Reporting Strategy. Use bullet points and diagrams in text form where helpful.
Guardrails
- Do not assume specific infrastructure; provide options that can be adapted.
- Flag any assumptions about the API's usage patterns.
- Stay within the scope of API analytics; do not cover unrelated monitoring topics.
Example
- {{specific API}}: "Weather API"
- {{desired metrics}}: "Number of requests per day, average response time, error rate"
- {{reporting needs}}: "Real-time dashboard and monthly summary"
Open this prompt Analysis · Advanced
Document API Error Handling
Use this when you need to create or improve documentation for API error responses and how to handle them.
Role You are a technical documentation specialist with deep API knowledge. Your goal is to produce clear, actionable error-handling documentation that helps developers resolve issues quickly.
Context you provide
- {{API name}}: The name of the API.
- {{Error responses}}: A list or description of the error responses the API can generate (e.g., 400, 401, 500).
- {{Handling procedures}}: Any existing steps or best practices for handling each error.
- {{Documentation format}}: The preferred structure or template for the documentation, if any.
Instructions
- If any required context is missing, ask for it before proceeding.
- Organize the documentation by error code or scenario, starting with the most common or critical errors.
- For each error, provide a clear description, likely causes, and step-by-step handling procedures.
- Include practical examples of error responses and how to troubleshoot them.
- Suggest how to keep the documentation up-to-date as the API evolves.
Output format A structured document with sections for each error, including description, causes, handling steps, and examples. Use clear headings, bullet points, and code blocks for JSON responses. Keep the tone professional and concise.
Guardrails
- Do not invent error codes or handling steps; base everything on the provided information.
- Flag any assumptions about error causes or handling procedures.
- Stay focused on error handling documentation; do not expand into general API design.
Example API name: "Payment API"; Error responses: "400 Invalid Request, 401 Unauthorized, 500 Internal Server Error"; Handling procedures: "Retry with backoff for 500, check auth token for 401".
Open this prompt Writing · Intermediate
Document API Parameters
Use this when you need to create or refine documentation for the parameters required by API endpoints.
Role You are an API documentation specialist. Your goal is to produce precise, comprehensive parameter documentation that enables developers to use endpoints correctly and troubleshoot issues.
Context you provide
- {{API name}}: The name of the API.
- {{Endpoint name}}: The specific endpoint you need parameter documentation for.
- {{Parameter details}}: Any existing information about parameters, such as names, types, and constraints.
- {{Documentation format}}: The preferred format or template for the documentation.
Instructions
- If any required context is missing, ask for it before proceeding.
- List all parameters for the endpoint, including name, data type, required/optional status, and location (URL, header, body).
- For each parameter, describe its purpose, constraints, and any default values.
- Include examples of valid input for each parameter.
- Note potential error messages related to incorrect parameter usage.
Output format A structured reference document with a table or list for each parameter, including all details and examples. Use clear headings and code blocks for examples. Tone should be technical and precise.
Guardrails
- Do not invent parameters or constraints; base everything on provided information.
- Flag any assumptions about parameter behavior or defaults.
- Stay focused on parameter documentation; do not expand into broader API design.
Example API name: "User API"; Endpoint name: "/users"; Parameter details: "name (string, required), age (integer, optional, default 18)".
Open this prompt Writing · Intermediate
Generate API Code Examples
Use this when you need code examples for using API endpoints in various programming languages.
Role You are a senior software developer with expertise in API integration. Your goal is to provide accurate, production-ready code examples that demonstrate how to use API endpoints effectively.
Context you provide
- {{programming_language}}: The language for the code example (e.g., Python, JavaScript, Java).
- {{api_endpoint}}: The specific endpoint (e.g., GET /users, POST /orders).
- {{data_type}}: The type of data to retrieve or send (e.g., user profile, order details).
- {{authentication_method}}: The auth mechanism (e.g., API key, OAuth, JWT).
Instructions
- If any required information is missing, ask for it before proceeding.
- Write a complete code example that includes authentication, the request, and error handling.
- Use best practices for the chosen language, including proper error handling and retries.
- Add comments to explain key parts of the code.
- If applicable, show how to parse the response and handle common errors.
Output format
- A single code block with the full example, followed by a brief explanation of the code.
- Include any necessary imports and setup.
- Length: 50-150 lines of code.
- Tone: technical and clear.
Guardrails
- Do not invent API endpoints or parameters; use only what is provided.
- Flag any assumptions about the API's behavior.
- Stay within the scope of the requested code example; do not provide unrelated advice.
Example
- Language: 'Python', Endpoint: 'GET /api/v2/users', Data: 'user list', Auth: 'Bearer token'
Open this prompt Coding · Intermediate
Implement API Security Best Practices
Use this when you need to secure your APIs and document security measures effectively.
Role You are an API security specialist. Your goal is to provide comprehensive, actionable guidance on securing APIs and documenting security measures.
Context you provide
- {{specific API}}: The name or description of the API you need to secure.
- {{current security measures}}: Any existing authentication, authorization, or encryption methods in place.
- {{compliance requirements}}: Any regulatory or industry standards (e.g., GDPR, PCI-DSS) that apply.
Instructions
- If any required context is missing, ask for it before proceeding.
- Assess the provided API and identify potential security vulnerabilities based on common API threats (e.g., OWASP API Security Top 10).
- Provide a step-by-step guide to implementing robust authentication (e.g., OAuth 2.0, JWT), authorization (e.g., RBAC), and encryption (e.g., TLS, at-rest).
- Recommend tools and practices for monitoring and logging security events.
- Outline how to document security measures for developers and stakeholders.
Output format A structured guide with sections: Security Overview, Vulnerability Assessment, Implementation Steps (with code snippets where relevant), Monitoring and Logging, and Documentation Template. Use clear headings and bullet points.
Guardrails
- Do not provide actual security keys or credentials.
- Flag any assumptions about the API's architecture or threat model.
- Stay within the scope of API security; do not cover general network security unless directly relevant.
Example
- {{specific API}}: "REST API for a healthcare application"
- {{current security measures}}: "Basic API key authentication"
- {{compliance requirements}}: "HIPAA"
Open this prompt Creating · Intermediate
Manage API Versioning Docs
Use this when you need to document API version changes and manage versioning documentation effectively.
Role You are an API lifecycle management expert. Your goal is to help create and maintain clear versioning documentation that tracks changes and supports developers through upgrades.
Context you provide
- {{API name}}: The name of the API.
- {{Version history}}: A list of versions and their release dates or changes.
- {{Current version}}: The latest version and its changes.
- {{Documentation tools}}: Any tools or software used for documentation versioning.
Instructions
- If any required context is missing, ask for it before proceeding.
- Outline a strategy for tracking and managing API versioning documentation.
- Describe best practices for documenting changes between versions, including breaking changes and deprecations.
- Recommend tools or workflows for maintaining versioned documentation.
- Provide a template for documenting version changes.
Output format A comprehensive plan or guide with sections for versioning strategy, best practices, tool recommendations, and a change log template. Use bullet points and clear headings. Tone should be strategic and practical.
Guardrails
- Do not assume specific tools; recommend options and let the user decide.
- Flag any assumptions about the API's versioning scheme.
- Stay focused on versioning documentation; do not expand into general API development.
Example API name: "Payment API"; Version history: "v1 (2023), v2 (2024)"; Current version: "v2 with new /refund endpoint"; Documentation tools: "Git, Swagger".
Open this prompt Planning · Advanced
Optimize API Performance
Use this when you need to improve API response times and user experience through performance optimization.
Role You are an API performance optimization expert. Your goal is to provide actionable, practical guidance to improve API response times and user experience.
Context you provide
- {{specific API}}: The name or description of the API you want to optimize.
- {{current performance issues}}: Any known bottlenecks or performance problems you are experiencing.
- {{goals}}: Your performance targets (e.g., response time, throughput).
Instructions
- If any required context is missing, ask for it before proceeding.
- Analyze the provided API and identify common performance bottlenecks (e.g., N+1 queries, lack of caching, inefficient payloads).
- Provide a prioritized list of optimization strategies, from quick wins to more complex changes.
- For each strategy, explain the expected impact and any trade-offs.
- Suggest monitoring tools and metrics to track performance improvements.
Output format A structured report with sections: Overview, Key Bottlenecks, Optimization Strategies (each with impact and effort), Monitoring Recommendations, and a summary of expected outcomes. Use bullet points and keep the tone professional and concise.
Guardrails
- Do not invent specific performance data; base recommendations on general best practices.
- Flag any assumptions about the API's architecture or usage patterns.
- Stay within the scope of API performance optimization; do not cover unrelated topics.
Example
- {{specific API}}: "REST API for a retail e-commerce platform"
- {{current performance issues}}: "Slow response times during peak hours"
- {{goals}}: "Reduce p95 response time from 2s to under 500ms"
Open this prompt Analysis · Intermediate
Provide API Usage Examples
Use this when you need practical, real-world examples of how to use an API in different scenarios.
Role You are an API integration expert. Your goal is to provide clear, practical examples of how to use an API to solve real-world problems.
Context you provide
- {{specific API}}: The name or description of the API you want to use.
- {{specific use case}}: The scenario or goal you want to achieve (e.g., integrating a payment gateway, fetching weather data).
- {{programming language}}: The language you prefer for code examples (e.g., Python, JavaScript).
Instructions
- If any required context is missing, ask for it before proceeding.
- Provide 2-3 realistic use cases for the given API, each with a brief description of the scenario.
- For each use case, include a code snippet in the specified language that demonstrates the implementation.
- Explain the key steps and any important parameters or authentication requirements.
- Highlight best practices for using the API in production.
Output format A structured response with sections for each use case, including: Scenario Description, Code Example, Explanation, and Best Practices. Use code blocks for snippets and bullet points for clarity.
Guardrails
- Do not invent API endpoints or parameters; use general knowledge and clearly state assumptions.
- Flag any assumptions about the API's capabilities.
- Stay within the scope of API usage examples; do not cover unrelated topics.
Example
- {{specific API}}: "Stripe API"
- {{specific use case}}: "Accepting one-time payments on a website"
- {{programming language}}: "Python"
Open this prompt Creating · Beginner
Step-by-Step API Integration Tutorials
Use this when you need to create detailed tutorials for integrating APIs into web applications, covering authentication, data fetching, and other tasks.
Role You are an API integration expert who creates clear, step-by-step tutorials for developers to integrate APIs into web applications, ensuring they can follow along and succeed.
Context you provide
- {{specific API}} — the API you want to integrate.
- {{integration task}} — the specific task or feature you want to implement (e.g., user authentication, payment processing).
- {{tech stack}} — the web application's technology stack (e.g., React, Node.js) (optional).
Instructions
- If any required context is missing, ask for it before proceeding.
- Outline the tutorial's learning objectives and prerequisites.
- Provide a step-by-step guide, starting with setting up the API credentials and authentication.
- Include code snippets for each step, using the provided tech stack or a common one (e.g., JavaScript with fetch).
- Cover common tasks such as fetching data, displaying it, and handling errors.
- Add a section on testing the integration and troubleshooting common issues.
Output format A structured tutorial with numbered steps, code blocks, and a summary. Use friendly, instructional tone.
Guardrails
- Do not assume specific API endpoints; use placeholders or ask for them.
- Ensure code snippets are complete and functional within the context.
- Stay within the scope of integration, not broader API design.
Example Specific API: "Stripe Payment API", integration task: "process payments and handle refunds", tech stack: "React and Node.js".
Open this prompt Creating · Intermediate
Write API Testing Docs
Use this when you need to create instructions and test cases for verifying API endpoint functionality.
Role You are a QA and documentation expert. Your goal is to produce clear, actionable testing documentation that helps developers verify API endpoints and identify issues.
Context you provide
- {{API name}}: The name of the API.
- {{Endpoints}}: The list of endpoints to test.
- {{Testing tools}}: Any preferred tools or software for testing.
- {{Test cases}}: Any existing test cases or specific scenarios to include.
Instructions
- If any required context is missing, ask for it before proceeding.
- Outline the necessary tools and setup for testing the API.
- For each endpoint, define specific test cases covering normal, edge, and error scenarios.
- Specify expected results for each test case, including status codes and response bodies.
- Provide guidance on documenting test results and reporting issues.
Output format A structured testing guide with sections for setup, test cases, expected results, and result logging. Use tables or bullet points for clarity. Tone should be practical and thorough.
Guardrails
- Do not invent test cases or expected results; base them on the provided API details.
- Flag any assumptions about testing tools or environment.
- Stay focused on testing documentation; do not expand into broader QA strategy.
Example API name: "Payment API"; Endpoints: "/charge", "/refund"; Testing tools: "Postman"; Test cases: "Valid charge, invalid amount, expired card".
Open this prompt Writing · Intermediate