Generate request docs with AI, then make them yours

Most requests in a shared collection have no docs, because writing them is a chore and the request "explains itself". It doesn't, to the person who opens it in six months. A model can write the boring 80% from what's already in the request. You add the 20% only you know.

Generate a draft

  1. Open the request and send it, so there's a real response.
  2. Open the AI assistant on the right rail.
  3. Pick Cloud or Local at the top of the panel.
  4. Press Generate docs.

The assistant writes Markdown that covers what the request does, its parameters, headers and body, the responses, and an example. It opens the Docs tab with the draft in place, unsaved, so nothing changes in the shared collection until you save.

You can also start from the collection tree: ⋯ → Generate docs on a request.

Why send first

The model sees the request and the last response. With a response, it can describe the real fields (id, status, createdAt) instead of guessing, and the example in the docs matches what your API actually returns. Send the happy path, not an error, unless the error is what you're documenting.

What it can't know

The draft describes the shape. It can't know the meaning. Add:

  • Side effects. "Sends a confirmation email." "Charges the card." "Can't be undone."
  • Business rules. "Refunds are only allowed within 30 days."
  • Who uses it. "Called by the mobile app on checkout."
  • Gotchas. "Returns 200 with an empty list when the customer doesn't exist, not 404."

These four lines are why docs exist. Everything else is a nicety.

What to check in the draft

  • Invented fields or values. If a field wasn't in the request or response, the model made it up. Delete it.
  • Wrong certainty. "This endpoint is idempotent" is a claim. Is it true?
  • Secrets. The prompt has auth headers and token-like values replaced with [redacted], but read the example once before saving anyway.
  • Length. A request needs a paragraph and a table, not a page. Cut.

Cloud or Local

  • Local uses the model set in Settings → Profile → Local AI: LM Studio, Ollama or another OpenAI-compatible server on your machine. Before the prompt is built, Authorization and Cookie headers, token-like query parameters and secret-looking body lines are replaced with [redacted], and nothing goes to the Requestarium server. Setup: Local AI docs.
  • Cloud uses the model your Requestarium server is set up with.

A small local model is fine for docs; it's the kind of task they do well.

Make it a habit

The best moment to document a request is right after you create it, when you remember why. Make "docs drafted and reviewed" part of your definition of done for a new endpoint, next to the request and its tests. See hand off an API to QA without a meeting.

For the whole collection, readers outside the team can see the result through shared collection docs or Confluence.