Routebase Docs as Code API

Keep documentation pages in your own repository and push them into Routebase from a pipeline. These endpoints back `routebase docs push` and `routebase docs pull`.

GitHub OpenAPI
Business capability
Developer Portal Management BC-4270.30

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/projects/{projectId}/docs List a documentation version · List the documentations of a project #
Ask an LLM
“Which documentation versions exist for a project?”
“What status must a version have before I can change it?”
Tell an agent
List the documentation versions of project {projectId}.
Show the docs and their versions for project {projectId}.
POST /api/projects/{projectId}/docs/{docId}/versions/{versionId}/folders Create a folder in a documentation version · Create a folder #
Ask an LLM
“How do I add a new folder to a docs version in Routebase?”
“Can I make a folder a top-level section in the portal header?”
Tell an agent
Create a folder named {name} in docs {docId} version {versionId} of project {projectId}.
Add folder {name} as a top-level header section in docs {docId} version {versionId} of project {projectId}.
POST /api/projects/{projectId}/docs/{docId}/versions/{versionId}/pages Create a page in a documentation version · Create a page #
Ask an LLM
“How do I add a new page to a docs version?”
“Can I set my own slug so the portal URL comes out right?”
Tell an agent
Create a page titled {title} in docs {docId} version {versionId} of project {projectId}.
Create page {title} with slug {slug} inside folder {parent} in docs {docId} version {versionId} of project {projectId}.
GET /api/projects/{projectId}/docs/{docId}/versions/{versionId}/pages/{pageId} Read one page with its Markdown content · Get a page with its content #
Ask an LLM
“What is the Markdown content of a single docs page?”
“How can I get a page's row version before editing it?”
Tell an agent
Get page {pageId} with its content in docs {docId} version {versionId} of project {projectId}.
Show the Markdown and row version of page {pageId} in docs {docId} version {versionId} of project {projectId}.
PUT /api/projects/{projectId}/docs/{docId}/versions/{versionId}/pages/{pageId} Replace a page's title and Markdown · Update a page #
Ask an LLM
“How do I push a Markdown file from my repo into an existing docs page?”
“Can I update a page only if nobody else edited it meanwhile?”
Tell an agent
Update page {pageId} in docs {docId} version {versionId} of project {projectId} with title {title} and Markdown {content}.
Update page {pageId} in docs {docId} version {versionId} of project {projectId} with title {title}, Markdown {content} and expected row version {rowVersion}.
GET /api/projects/{projectId}/docs/{docId}/versions/{versionId}/tree Get the full page tree of a version · Get the page tree of a version #
Ask an LLM
“What does a whole documentation version look like as a hierarchy?”
“Can I skip a sync when the docs tree hasn't changed?”
Tell an agent
Get the full page tree of docs {docId} version {versionId} in project {projectId}.
Show every page, folder and API reference in docs {docId} version {versionId} of project {projectId}.
PUT /api/projects/{projectId}/docs/{docId}/versions/{versionId}/tree/reorder Reorder the items under one folder · Reorder the items under one parent #
Ask an LLM
“How do I change the order of pages and folders under one parent?”
“Why do I have to send the complete list of ids when reordering?”
Tell an agent
Reorder the items in folder {parent} to {items} in docs {docId} version {versionId} of project {projectId}.
Put the root items {items} in this order in docs {docId} version {versionId} of project {projectId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/routebase:routebase-docs-as-code-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

routebase-docs-as-code-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Routebase Public Docs as Code API
  description: 'This reference covers the part of the Routebase API that is a commitment to

    customers.'
  version: 1.0.0
servers:
- url: https://api.routebase.dev
tags:


# --- truncated at 32 KB (36 KB total) ---
# Full source: https://artifacts.apis.io/routebase/openapi/routebase-docs-as-code-api-openapi.yml