Improve API documentation

GoalCoding · Fill in parameters, returns, and runnable examples.

Help me improve an API document. Known material: [the current doc or interface definition] and [the caller and stack], for [integrating developers]. Add purpose, request parameters, responses, error codes, and runnable examples, ordered by call flow with consistent terms. Do not invent fields or status codes that are not defined; mark gaps as placeholders and note what still needs confirming.

Open this template in the optimizer →

Placeholders to fill in

  • the current doc or interface definition
  • the caller and stack
  • integrating developers

Placeholders stand for your own facts. Never invent figures, sources or credentials the model was not given.

How to use it

  1. Copy the template, or open the optimizer and it is filled in for you.
  2. Replace every placeholder in brackets with your own material.
  3. Add constraints such as length, audience, tone, and what must not change.
  4. Generate, then refine in three directions and copy the result.

Adapted from LobeHub agent “API 文档优化专家” by arvinxx (MIT)

More coding goals

Browse other tasks

Canonical version: https://www.prompt.dx3906.net/zh/templates/coding/purpose-improve-api-doc