# Versions, languages and API references

Versions and languages live on **Settings**, **Versions and languages**. API references live on **Settings**, **API reference**. Workspace owners and admins can save changes. Each save rebuilds the site.

## Versions

A version is a folder of your docs served under its own address, with a switcher in the header. Add one with **Add version**:

<img src="/images/platform/versions.webp" alt="Versions and languages settings" width={900} height={563} />

| Field | Notes |
| --- | --- |
| **Name** | What the switcher shows, such as `2.x`. |
| **Address** | The part of the address readers see, such as `v2`. Lowercase letters, numbers, dots, dashes or underscores, starting with a letter or number. |
| **Folder** | The folder of the version's pages. Leave it empty for `versions/<address>`. The default version reads the top of your docs when it is empty. |
| **Default** | The version readers land on. It opens at the site's address, with no prefix. Exactly one version is the default. |

Every page of another version opens with a notice that names the version, such as "You are reading the docs for 1.x", and links to the same page in the default version. When the page isn't there, the link goes to the default version's home.

Search engines see only the default version. A page in an older version points to the same page in the default version as its canonical address, so the two count as one. An older page that has no counterpart in the default version is kept out of search results, but its links are still followed. Older versions stay out of the sitemap, and readers can still open them from the switcher.

Two versions can't share an address. **Remove** asks first and says how many pages sit in the version's folder. The pages stay in your docs, but readers can no longer open them once you save.

## Languages

Readers pick a language in the header. Add one with **Add language** and choose its code from the list, or type another code such as `pt-BR`. Searching by English name works too. The name fills in from the code, and you can change it.

| Field | Notes |
| --- | --- |
| **Language** | A code like `en` or `pt-BR`. |
| **Name** | What the switcher shows, in the language itself. |
| **Folder** | The folder of the translated pages. Leave it empty for a folder named after the code. The default language reads the top of your docs when it is empty. |
| **Default** | The language the site opens in. Exactly one language is the default. |

Each page tells search engines about its other languages: every language of the same page lists all of them, itself included, and the default language is the fallback for readers whose language has no version. The sitemap lists the same alternates. A language version that is hidden, `noindex` or has a canonical address elsewhere is left out of the set.

Two languages can't share a code. A site needs a second language before [Translate](https://docs.rimfe.com/platform/ai-automations) can draft pages for it.

## API references

An API reference turns an OpenAPI spec into a page for each operation. Add one with **Add API reference**:

<img src="/images/platform/api.webp" alt="API reference settings" width={900} height={563} />

| Field | Notes |
| --- | --- |
| **Spec** | A file in your docs, such as `reference/openapi.json`, or an `https` address. |
| **Route** | Where the pages are served, such as `/api`. Two references can't share a route. |
| **Let readers try requests** | Adds a form to each operation. |
| **Allowed servers** | The servers the form may send requests to, added as tags. Type a host like `api.acme.com` and Rimfe adds `https://`. Requests go only to servers listed here, so add each one the spec names. |

| **Hidden operations** | Operations to leave out, added as tags. Name one by its `operationId`, such as `deleteWidget`, or by method and path, such as `DELETE /widgets/{id}`. End a path with `*` to hide everything under it: `GET /internal/*`. |
| **Renamed operations** | A new title or summary for an operation, named the same way. The page keeps its address. |

A problem with a field shows under it, and **Save** stays off until every row is valid.

### Hiding operations

Hidden operations have no page, no sidebar entry and no search result. They are left out of `llms.txt`, and the spec readers download from your site doesn't include them. Your spec file stays as it is.

Operations marked `x-hidden: true` or `x-internal: true` in the spec are hidden too, whether the mark is on the operation or on its path.

In the [JSON editor](#the-json-editor), both lists sit on the reference:

```json title="Configuration"
"openapi": [
  {
    "id": "api",
    "source": "reference/openapi.json",
    "route": "/api",
    "hide": ["deleteWidget", "GET /internal/*"],
    "rename": {
      "listWidgets": { "title": "List widgets" },
      "POST /widgets": { "summary": "Creates a widget in your workspace." }
    }
  }
]
```

When an operation matches a rename by `operationId` and another by method and path, the `operationId` wins.

In the sidebar, each operation's page starts with its method, such as `GET` or `POST`, in its own color.

## Two people editing

Each list remembers how it looked when you started. If someone else saves the same list first, your save is refused with a message to reload, instead of overwriting their change. Saving a list never touches the rest of the settings.

## The JSON editor

**Settings**, **Advanced**, **Configuration** shows the whole configuration as JSON. Only the page rules and the feedback switch have no form. Everything else is better changed on its own tab.
