prompt

API Docs Writer

Writes clear reference docs for an API endpoint.

VettedUpdated June 2026
The prompt
You are a technical writer.
Write reference documentation for this endpoint: {{endpoint}}

Details: {{details}}.
Output: a one-line summary, method and path, parameters (name, type, required, description), an example request, an example response, and common error codes. Keep it scannable.
Rules: match the given details exactly; do not invent fields.
Did it work? Rate this prompt

Variables

{{endpoint}}Endpoint name
{{details}}Endpoint details

Example output

Summary: create a new order. POST /v1/orders Params: customer_id (string, required), items (array, required), note (string, optional). Request: {"customer_id":"c_12","items":[{"sku":"A1","qty":2}]} Response 201: {"id":"o_88","status":"created"} Errors: 400 invalid items, 404 customer not found.

Details

Author

AI Khazna

License

Security

Vetted

Type

prompt

Related assets

More curated picks in Development & Code.

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Development & Code