Complete AI Training

Prompt · Website Developers

Detailed API Endpoint Descriptions

Use this when you need comprehensive descriptions of API endpoints, including parameters, response formats, and error handling.

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

  1. If any required context is missing, ask for it before proceeding.
  2. Describe the endpoint's purpose and typical use cases.
  3. List all parameters, indicating whether they are required or optional, and their types.
  4. Provide a sample request and response, including error responses where relevant.
  5. 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".

Follow-up prompts

  • What are the common use cases for this endpoint?
  • How does the 'limit' parameter affect the response?
  • What security measures should be considered when using this endpoint?