Skip to content

How to generate AI-friendly REST API docs in rConfig V8

How to generate AI-agent-friendly REST API docs in rConfig V8

Section titled “How to generate AI-agent-friendly REST API docs in rConfig V8”

After reading this page, you can generate a Markdown export of the rConfig REST API and load it into an AI coding agent so it can call the API correctly without you explaining every endpoint by hand.

Use this page when you’re building an integration or automation against the rConfig REST API with the help of an AI agent, and want the agent working from an accurate, machine-readable reference instead of guessing at endpoint shapes.

  • Access to the AI Center in rConfig
  • Admin role to generate or refresh the docs; any user with AI Center access can view, copy, or download an already-generated export
  1. Click AI Center in the left sidebar.
  2. Select the API Docs tab.

Two rows are listed, REST API v1 and REST API v2, each with a status badge: Not generated, Stub only, or Generated.

rConfig V8 API Docs tab showing REST API v1 and REST API v2 rows with status badges, file paths, and View, Copy, and Download buttons

If a version shows Not generated or Stub only, an admin needs to run the build command on the rConfig server:

Terminal window
php artisan rconfig:api-docs:build --api-version=all

Or generate a single version:

Terminal window
php artisan rconfig:api-docs:build --api-version=v1
php artisan rconfig:api-docs:build --api-version=v2

This extracts the API’s route definitions and writes a Markdown file to storage/app/api-docs/{version}/docs.md. Once generated, refresh the API Docs tab and the status badge updates to Generated.

Use the View, Copy, and Download buttons on each row to read the export in the browser, copy it to your clipboard, or save it as a file.

Reference the downloaded file directly in a prompt, for example @docs.md, so Claude Code loads it as context for the conversation.