Complete AI Training

Prompt · Website Developers

API Integration Documentation

Use this when you need clear, step-by-step documentation for integrating an API with a specific platform or system.

All 22 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 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

  1. If any inputs are missing, ask for them before starting.
  2. Outline the integration process step by step, including prerequisites, configuration, and code examples where applicable.
  3. Highlight best practices for security, error handling, and performance.
  4. Anticipate common challenges and provide troubleshooting tips.
  5. 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.

Follow-up prompts

  • What are the most common authentication pitfalls and how can I avoid them?
  • Can you provide a sample error-handling strategy for network timeouts?
  • How can I test the integration in a sandbox environment before going live?