API reference writing essentials

  • Reference vs. guide: reference = complete spec; guide = how to achieve a goal — both needed
  • Code examples: complete, copy-paste-ready with auth header and realistic parameters
  • Error docs: API-specific error codes + message format + cause + handling guidance
  • Versioning: scheme + active versions + deprecation timeline + migration guide
  • Pagination: default + max + parameters + response metadata (total_count, has_next_page) + example

Question 0 of 5

What is the difference between API reference documentation and API guide documentation?