For AI agents: the complete documentation index is at https://docs.routebase.dev/llms.txt. Every page is also available as Markdown by appending index.md to its URL or by sending Accept: text/markdown.

Connect your agent

Your AI agent can search and read these docs over MCP. The endpoint is read-only and needs no key.

MCP endpoint

https://docs.routebase.dev/mcp

Claude Code Run in a terminal

claude mcp add --transport http routebase-documentation https://docs.routebase.dev/mcp

Cursor Add to .cursor/mcp.json

{
  "mcpServers": {
    "routebase-documentation": {
      "url": "https://docs.routebase.dev/mcp"
    }
  }
}

VS Code Add to .vscode/mcp.json

{
  "servers": {
    "routebase-documentation": {
      "type": "http",
      "url": "https://docs.routebase.dev/mcp"
    }
  }
}

Codex Add to ~/.codex/config.toml

[mcp_servers.routebase-documentation]
url = "https://docs.routebase.dev/mcp"
API Design

API Rating

The API rating scores a specification version from 0 to 100 and gives it a grade from A to E. It shows which checks cost points, where in the specification they fail and how many points each fix is worth. Your organization decides what the rating checks, and a target grade can warn or block before a version is published.

The API rating is available on the Pro and Enterprise plans. Reading it requires specs:read, and applying a fix requires specs:write. Changing the organization's rating requires org:manage-governance, which Admins and Owners hold, and changing a project's rating requires projects:write.

Reading the rating

Open a specification in the API Designer. The API rating card sits on the overview of the selected version, whether that version is a draft or published.

Part What it shows
Score The score of this version, followed by of 100 and the grade badge.
Comparison "Up 4 since 1.2.0", "Down 4 since 1.2.0" or "Same as 1.2.0", measured against the version published before this one. The line is missing when no earlier version was published.
Target "Target B, from 70." when a target grade applies, with "5 short." when the version is below it.
Facets One row per facet with its share of the score, a bar and the facet score. A facet without any counted check reads n/a.
Biggest gains Up to three checks that would add the most points, each with the points it would add. Click one to open it.

Click a facet to open its checks, and click it again or click Hide to close it. Each check shows how many of its targets pass and the points it earns, for example 3 of 4 and 4 / 5. A failed or partly passed check opens further and lists every endpoint, schema or setting that fails, with Open to jump there.

The API rating card with a score of 64 and grade C, the Design facet open, and the idempotency key check open with two failing POST endpoints, each with Fix and Open

The collapse button at the top folds the card into one line with the score, the grade and either the shortfall to the target or the lowest facet. Show rating opens it again, and the designer remembers your choice.

A specification without endpoints or schemas shows "The rating starts with the first endpoint." in place of a score.

What the rating checks

The rating has five facets. Each facet holds checks with a number of points, and the table lists the defaults your organization starts with.

Facet Weight Checks and points
Design 25 Error responses are defined (5), Errors use problem+json (RFC 9457) (5), Create endpoints accept an idempotency key (4), Names follow the casing conventions (6), Rate limits are announced (4), List endpoints are paginated (5), GET responses describe their body (5), Error responses describe their body (3)
Documentation 20 Endpoints have a summary (5), Schemas have a description (4), Parameters have a description (3), The API names a license (2)
Security 20 A security scheme is defined (4), Endpoints reference a security scheme (6), No open findings from the security scan (6)
Lifecycle 15 A version is published (4), A versioning strategy is configured (4), Published versions have an alias (3)
Tests and sync 20 Endpoints are covered by a test (6), Derived artifacts are in sync (6)

Most checks run rules of the Style Guide, so the conventions you set there also decide the rating. The casing check follows the naming conventions you chose, and the pagination check follows the pagination style. The rating runs these rules even when the style guide is switched off for your organization. A rule set to Off leaves its check out of the rating.

The other checks read data from the rest of the project:

Check Where it looks
No open findings from the security scan The latest security scan of the specification. Only findings with the status Open cost points.
A version is published The specification as a whole, so a draft passes once any version is published.
Endpoints are covered by a test Test cases that call an endpoint or link to it.
Derived artifacts are in sync Mock rules, test cases, documentation and monitors built from the specification, which must follow the latest published version.

How the score is calculated

A check earns its points in proportion to the targets that pass, so a check with 3 of 4 endpoints passing earns three quarters of its points. A check with nothing to test in this version reads Not counted and leaves the facet's total. A facet score is the points earned divided by the points counted, and the overall score weights the facet scores by their weight.

The grade follows the score:

Grade Score
A 85 and above
B 70 to 84
C 55 to 69
D 40 to 54
E below 40

Your organization can move these thresholds, as described below.

Fixing a check

Six design checks have a fix that Routebase writes into the specification for you. Fixes work on versions that are not published yet, and they require specs:write.

Check Fix What it writes
Error responses are defined Add error responses A problem+json response that fits the endpoint, such as 400 for a request body or query parameters, 401 for a secured endpoint and 404 for a path parameter.
Errors use problem+json (RFC 9457) Switch to problem+json Switches the failing error responses to application/problem+json with a Problem schema, which it creates when it is missing.
Create endpoints accept an idempotency key Add Idempotency-Key An Idempotency-Key header parameter.
List endpoints are paginated Add pagination parameters page and pageSize, or cursor and limit when the style guide asks for cursor pagination.
Rate limits are announced Announce rate limits RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers on the first success response, plus a 429 response with Retry-After.
Names follow the casing conventions Rename New names for the path, query parameters, schema name and top-level properties in the casing you set.

To fix one place, click Fix on its row. The row leaves the list, and a toast reading "Fixed in 1 place" offers Undo for ten seconds. To fix a whole check, click Fix all next to its description. A dialog lists every change, and Apply 3 fixes writes them in one step.

A rename always opens the dialog first, because it changes the contract of the API. Examples, mock rules and tests that use the old name keep it, so update them after the rename.

The license check offers Open settings, which opens Spec Settings. Enter the license in the License field, for example MIT or Proprietary for an API that is not open, and save.

Working through endpoints

Open on an endpoint row takes you to that endpoint and shows a task bar above it. The bar names the check, counts the endpoints with "Endpoint 1 of 2" and says what fails at this endpoint.

The task bar above POST /orders naming the idempotency key check and Endpoint 1 of 2, with Add Idempotency-Key, Skip this endpoint and Back to the rating
  1. Click the fix button in the bar, for example Add error responses. The bar confirms "Done. The fix is written for this endpoint."
  2. Click Next with the next endpoint's name to move on, or Skip this endpoint to leave it as it is.
  3. Click Back to the rating when you are done. The rating updates when you return to it.

A check without a fix shows the same bar without the fix button, so you change the endpoint by hand.

Changing the rating for your organization

Open Settings → API Governance → API Rating. The page describes itself as "Decide what a good API is in this organization. Every spec is rated against these facets, checks and grades."

Card What you change
Facets The weight of each facet, in steps of 5 from 0 to 100. Select a facet to edit its checks.
Checks in a facet A switch per check and its points, from 1 to 20. A check that is off is neither rated nor shown.
Grades and target grade The score from which grades A to D start, in steps of 5, and the target grade.

Weights don't need to add up to 100. The badge reads Total 100 or, for example, Total 105, counted in proportion, and the facets then count by their share of the total. At least one facet needs a weight above 0, and each grade must start above the next one.

The With these settings panel rates a specification under the settings you are editing before you save them. Pick a project and a specification, and the panel shows the score of its newest version next to the built-in rating.

The API Rating settings with the Facets card at a total of 100, the switches and points of the checks in Design, and the With these settings panel rating a specification at 65

Click Save changes to apply your settings to every project that doesn't override them. Discard drops your edits, and Reset to defaults returns to the built-in rating.

Setting a target grade

The target grade is the grade a version should reach before it is published. Set it on the Grades and target grade card.

  1. Under Target grade, pick D, C, B or A. None means there is no target.
  2. Under Below the target, pick Warn or Block publishing.
  3. Click Save changes.

The rating card then shows the target and the shortfall. In the release wizard, a version below the target shows the banner "API rating below the target grade B" in the Review Changes step.

The Review Changes step of the release wizard with the banner API rating below the target grade B, which says the version is 6 points short of 70 and can still be released
Setting What happens below the target
Warn The banner adds "You can still release it.", and you can continue.
Block publishing The banner adds "Raise the rating before releasing. This policy is set by your organization." Next is disabled, and the release button reads Rating below target.

Block publishing also applies to scheduled releases and to promotions that freeze a version, which fail with a message naming the score and the target.

Changing the rating for one project

A project can rate its specifications against its own values. Select the project, open Project Settings and scroll to the API Rating card. The card reads "Uses the organization's rating." until a value differs, and it names the target grade that applies.

  1. Click Customize. The dialog API rating of this project opens with the same cards as the organization's page.
  2. Change the values this project needs. A changed value shows a reset icon, and every other value keeps following the organization.
  3. Under Target grade, keep Inherit to use the organization's target, or pick a target for this project.
  4. Click Save.

A project's target grade replaces the organization's for this project. A project can also switch a check back on that the organization switched off. Reset to organization rating removes every value of the project.

Limits

The API rating is part of the Pro and Enterprise plans. On other plans the rating card does not show, the settings page shows an upgrade prompt, and the project card reads "The API rating is part of the Pro plan." See Billing.

The rating covers the main line of a specification. It is not calculated on a branch, and the release wizard does not check the target grade there.

Troubleshooting

Symptom Cause and way out
A check reads Not counted. The version has nothing this check tests, or the style guide rule behind it is set to Off. Set the rule to a severity in the Style Guide to count it again.
Derived artifacts are in sync reads Not counted on a draft. The check only rates the latest published version, because only that version has artifacts that follow it.
No open findings from the security scan reads Not counted. No security scan of the specification finished after this version was created. Run a scan to count the check.
A check offers no Fix. The version is published, you lack specs:write, or the check has no fix. Create a new version to change a published one.
Undo fails. The specification changed after the fix, so the fix can't be undone automatically. Change the affected items by hand.
The release button reads Rating below target. Your organization blocks publishing below its target grade. Raise the rating with the checks under Biggest gains, or ask an Admin to change the target.