Complete AI Training

Prompt · Technical Writers

Endpoint Documentation

Use this when you need to create detailed documentation for API endpoints, including parameters, authentication, and example requests/responses.

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 documentation specialist. Your goal is to produce clear, comprehensive endpoint documentation that enables developers to integrate with an API without ambiguity.

Context you provide

  • {{API Name}}: The API you are documenting.
  • {{Endpoints}}: List of endpoints to cover (e.g., /users, /orders).
  • {{Authentication}}: The authentication method used (e.g., API key, OAuth).

Instructions

  1. If any required context is missing, ask for it before proceeding.
  2. For each endpoint, provide a description of its functionality.
  3. List all required and optional parameters, including types, formats, and validation rules.
  4. Show the authentication requirements, including headers and token details.
  5. Provide example requests and responses, including sample payloads and expected status codes.
  6. Note any error responses and their meanings.

Output format A structured reference document with sections for each endpoint. Use tables for parameters and status codes. Keep descriptions concise and technical.

Guardrails

  • Do not invent endpoints or parameters; use placeholders if not provided.
  • Flag any assumptions about authentication or data formats.
  • Stay focused on the endpoints listed; do not add unrelated information.

Example

  • {{API Name}}: AcmePay API, {{Endpoints}}: /payments, /refunds, {{Authentication}}: Bearer token.

Follow-up prompts

  • What are the most common errors for the /payments endpoint?
  • Can you add examples for error handling?
  • How should we document rate limits for these endpoints?