# Routebase Docs as Code API

**Canonical:** https://apis.io/apis/routebase/routebase-docs-as-code-api/  
**Provider:** Routebase — https://apis.io/providers/routebase/  
**Base URL:** https://api.routebase.dev  
**Documentation:** https://docs.routebase.dev

Routebase Docs as Code API is one of 5 APIs that [Routebase](https://apis.io/providers/routebase/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Docs as Code. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

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`.

## Operations (7)

| Method | Path | Summary |
|---|---|---|
| GET | `/api/projects/{projectId}/docs` | List the documentations of a project |
| POST | `/api/projects/{projectId}/docs/{docId}/versions/{versionId}/folders` | Create a folder |
| POST | `/api/projects/{projectId}/docs/{docId}/versions/{versionId}/pages` | Create a page |
| GET | `/api/projects/{projectId}/docs/{docId}/versions/{versionId}/pages/{pageId}` | Get a page with its content |
| PUT | `/api/projects/{projectId}/docs/{docId}/versions/{versionId}/pages/{pageId}` | Update a page |
| GET | `/api/projects/{projectId}/docs/{docId}/versions/{versionId}/tree` | Get the page tree of a version |
| PUT | `/api/projects/{projectId}/docs/{docId}/versions/{versionId}/tree/reorder` | Reorder the items under one parent |

## Machine-readable artifacts (4)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/routebase/refs/heads/main/openapi/routebase-docs-as-code-api-openapi.yml
- **Documentation** — https://docs.routebase.dev
- **APIReference** — https://docs.routebase.dev/api/routebase-public-api/
- **LLMsTxt** — https://routebase.dev/llms.txt

## Other Routebase APIs (4)

- [Routebase API Specs API](https://apis.io/apis/routebase/routebase-api-specs-api/)
- [Routebase CI & Test Runs API](https://apis.io/apis/routebase/routebase-ci-test-runs-api/)
- [Routebase SCIM API](https://apis.io/apis/routebase/routebase-scim-api/)
- [Routebase Security API](https://apis.io/apis/routebase/routebase-security-api/)

## Tags

Docs as Code

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/routebase/routebase-docs-as-code-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/routebase/.
