Document each API request with Markdown, where people will read it

API documentation usually lives somewhere other than the requests people actually send: a wiki page from last year, an OpenAPI file nobody reads, a Slack thread. The request in the collection is the one place people look every time. Requestarium puts a Docs tab on every request for that reason.

What to write

The request already shows the method, URL, headers and body. The docs should answer what those don't:

Markdown
Creates a refund for a paid order.

**Who can call it:** support agents and admins (`refunds:create`).

**Side effects:** sends the customer an email and posts to #payments.
Use a test order on staging, never a real one.

**Partial refunds:** send `amount` in cents. Without it, the whole order is refunded.

**Errors**
- `409` if the order is already fully refunded
- `422` if `amount` is more than what's left

Owner: payments team, #team-payments

Five short sections like that save a teammate a message to the owner, which is the test of good docs.

Example responses

Below your notes, the Docs tab lists the request's saved example responses. Save one with Save as example above a response: the normal case, the empty case and the errors clients must handle. They double as answers for a mock server.

Context for the whole collection

The collection's description, shown on its Overview, is the place for what applies to everything inside: how auth works, rate limits, where to get a test account. Write it once there rather than on every request.

Share it outside the tool

Share docs on a collection's Overview publishes its documentation as a read-only web page: every request in tree order, grouped by folder, with its method, URL, docs, headers and, if you keep it on, its body. Anyone with the link can read it without an account. It's a snapshot: after changes, Update page replaces the content and keeps the link. See sharing API docs with a link.

Publish to Confluence writes the same content to a Confluence page, and requestarium publish-confluence does it from CI after a merge, so the wiki never drifts. See publishing to Confluence.

Mind what you publish

Shared pages mask header values that look like credentials (Authorization, Cookie, API keys), query parameters such as ?api_key=… and passwords in URLs, unless they're {{variables}}. They can't know that a body example contains a real customer's address, or that your notes paste a token. Use variables in requests and test data in examples.

Keep docs next to changes

If your collection is synced with Git, the docs change in the same commit as the request, and reviewers see both. "The request changed and its docs didn't" is an easy thing to catch in a pull request review.