Repositories
/ade/dashboard/repositories
Register a Git repository and Apiome scans it for API specifications you can import — one at a time or many at once — and keeps them refreshed. Go to Bring in → Repositories. The tabs across the top are Repositories, Discovered specs, Quota & rate limits, Webhook IP allowlist and Refresh defaults.


/ade/dashboard/repositoriesOne line under the header sums up the workspace: how many repositories, files indexed, imports (30d), the last scan and — when there are any — how many need attention. Click “Show stats” to open the same figures as a row of cards, with the split by provider; the page remembers your choice.
The line ends with a Refresh activity chip. While any spec imported from a repository is stale or failed to refresh, the chip says so — for example 1 stale · 1 failed. Click the chip to open Refresh activity: a count of specs in each refresh state and the repositories that need attention, each linking to its Specs tab.


/ade/dashboard/repositoriesThe list shows each repository's Provider, Branch, Files, Health, Status, Last scan and how many files are Importable. Filter by provider and visibility, sort by most recently scanned or by name, and switch between Grid and List. A row's menu has Open detail and Remove from list.


/ade/dashboard/repositoriesRecent runs, below the list, shows the latest Git refreshes and connector runs together, newest first. A Git or Connector badge says which each one is, and a connector run links to its connector.
Add a repository
Route/ade/dashboard/repositories/new
- Click “Add repository” (or press N).
- Under Where does the repository live? choose:
- Linked account — pick from your connected GitHub, GitLab or Bitbucket account. Browsing a provider's repositories works for GitHub only; Manage linked accounts → connects one. To register a GitLab, Bitbucket or Azure DevOps repository through a linked account, use the API (see Register through a linked account with the API).
- Public Git URL — paste an HTTPS URL such as
https://github.com/apiome/apiome.gitand click “Test”.
- Click “Continue”. Apiome says Repository registered. and starts its first scan.
A new repository starts from the workspace's refresh defaults: its cadence, what happens on a refresh conflict, and whether auto-refresh is on.


/ade/dashboard/repositories/newThe page also shows a Proposed steps 2–4 card marked Redesign proposal — not in the app today: it describes planned steps (browse, scan settings, confirm) that are not part of the product yet.


/ade/dashboard/repositories/new

/ade/dashboard/repositories/newRegister through a linked account with the API
POST /v1/tenants/{tenant}/repositories registers a repository through any linked account whose host
Apiome can reach. Apiome reads the repository from its host with that account's token, so a private
repository registers too, and export delivery can later push with
the same account.
curl -X POST "$APIOME/v1/tenants/acme/repositories" \
-H "Authorization: Bearer $APIOME_TOKEN" -H "Content-Type: application/json" \
-d '{"source": "linked_account", "linkedAccountId": "<linked account id>",
"repositoryFullName": "acme/platform/orders-specs"}'
The linked account decides the host, and repositoryFullName takes that host's spelling:
| Linked account | Host | repositoryFullName | Stored provider |
|---|---|---|---|
| GitHub | github.com | owner/repo | github |
| GitLab | gitlab.com | group/project or group/subgroup/project | gitlab |
| Bitbucket | Bitbucket Cloud | workspace/repo | bitbucket |
| Microsoft | Azure DevOps (dev.azure.com) | organization/project/repository | azure_devops |
The name must match the host's own spelling, letter case aside. Any other kind of linked account
answers 400. The request needs a signed-in user (not an API key), because the linked account
belongs to that user.
Apiome's file scan reads GitHub repositories only. A GitLab, Bitbucket or Azure DevOps repository registers and can receive export deliveries, but its first scan reports that the provider is not supported, so its Files tab stays empty.
A repository's page
Route/ade/dashboard/repositories/[id]
Click a repository. One line under its name gives its files, the importable estimate, branches, imports (30d) and the last scan; click “Show stats” for the same figures as cards. Five tabs follow:
- Preview — files indexed, the importable estimate, branches, recent scans and recent imports.
- Files — every file Apiome indexed on the branch; Branch at the top of the tab switches branches. The table's toolbar has the importable preset; click “Filters” for the glob, the regex, Hide non-importable, Recurse hidden dirs and Skip vendored / node_modules — the button counts how many are set, for example Filters (2). The filters are kept in the page address, so a filtered list survives a reload and can be shared. A file's menu has View details, Import…, Open on provider and Copy path.
- Specs — the specs imported from this repository; “Refresh now” re-reads them. A repository is one kind of refresh source; connectors are the other, and both are refreshed by the same engine on the same cadence vocabulary.
- Imports — the import history, and the repository's Sync history: every merge, conflict and replacement its files took part in (see Merge history and conflicts).
- Settings — the source, Scan cadence (Auto-refresh, the Cadence, and whether each setting follows the workspace defaults), Branch refresh rules (see Branch refresh rules), what happens on a refresh conflict (Hold for review, Overwrite or New branch), which projects may open pull requests back into the repository (see Send changes back as a pull request), and Remove repository.


/ade/dashboard/repositories/[id]

/ade/dashboard/repositories/[id]

/ade/dashboard/repositories/[id]

/ade/dashboard/repositories/[id]Import from a repository
- On Files, tick the specifications to import and click “Import selected”.
- One file opens Map & import: choose an Existing project or Create a new project, and the version to create, then import.
- Several files open Import N selected files: Review each file's target (a new version of an existing project, or a new project), Verify, then “Import N specs”. Each spec becomes its own import job.


/ade/dashboard/repositories/[id]

/ade/dashboard/repositories/[id]Merge several repositories into one project
A large platform often splits one API across many repositories, one per service. To see it as one Apiome project, import each service's file into the same project:
- Import the first service's file with Map & import and Create a new project.
- For each other service, open its repository's Files tab, choose its file and click “Import selected”. Pick Existing project, choose the same project and a new version.
- Each import creates a version that holds every contributing file: the classes and paths of the file you just imported, plus those of the other files, carried forward unchanged.
Rules of the merge:
- Each class and path comes from one file. If the file you import defines a class name or a pathname that another contributing file already defines, the import fails and nothing is written. The error names the class or path and both files, for example: class "User" is defined by acme/users (main:openapi.yaml) and acme/billing (main:openapi.yaml). Rename or remove the duplicate in one of the files, then import again. Dry run reports the same conflict.
- Re-importing a file replaces its own content. A class or path the file no longer defines is removed from the new version; the other files' content stays.
- Precedence is the order the files first contributed (1 is the first). It orders the contributing files, and the project keeps the first file's project information (its description, contact and licence); a later file only fills in what is missing. It never settles a conflict.
- Tags are shared. Operation tags with the same name from different files are one tag in the project.
- Classes and paths that no repository defined, such as ones edited in Apiome, are carried forward too. If the file you import defines the same name, the file's version replaces it, and the import log says so.
- A version imported from one repository before this feature counts as coming from that file, so its content is kept when the second repository is imported.
The project's Sources tab on Versions lists the contributing files and shows the source of every class and path.
Federation on or off
Merging is called federation, and it is on for every project unless someone turns it off. The Federation switch is at the top of the project's Sources tab on Versions:
- On — each repository file you import is merged with the other contributing files, as described above.
- Off — each repository file you import replaces the API. Classes and paths that other files defined are not carried into the new version, and the import log says how many were dropped.
The switch applies to the next import; versions already created do not change. Changing it needs
the projects:edit permission and is recorded in the audit log as repository.federation_toggled.
Merge history and conflicts
Every import that federation acts on is recorded:
| Result | Means |
|---|---|
| Merged | Several files were merged into a new version. The row says how many classes and paths were carried forward from the other files |
| Conflict | Two files define the same class or path, so the import wrote nothing |
| Replaced | Federation was off, and the import dropped content that other files defined |
To see a conflict, open the history and click “Show the conflict”. For each class or path that collides, Apiome shows both files' definitions as one comparison: lines marked − (red) are only in the file that already contributes, lines marked + (green) are only in the file you imported, and unmarked lines are the same in both. Fix one of the files, then import again.


/ade/dashboard/repositories/[id]The history is on two screens:
- the project's Sources tab on Versions, under Merge history;
- the repository's Imports tab, under Sync history — the imports of this repository's files.
A dry run is not recorded. Each merge is written to the audit log with its history row:
repository.federation_merged, repository.federation_conflicted or
repository.federation_replaced.
Send changes back as a pull request
Changes made in Apiome can go back to the repository: Apiome renders a version of the project and opens a pull request into the files the project was imported from. This is PR-back. It is off for every repository until someone allows it.
Allow projects on the repository's page:
- Open the repository and click the Settings tab.
- In Pull requests back to this repository, choose who may open pull requests:
- Only the projects listed — tick each project that may.
- Every project except those listed — tick the projects that may not.
- Optionally set:
- Target branch — the branch the pull requests merge into. Leave it blank to use the branch the files were imported from.
- Reviewers — GitHub logins or teams, separated by commas, for example
octocat, acme/api-reviewers. Each new pull request requests a review from them. - Commit message — a template that can use
{{project}},{{version}},{{repository}},{{branch}}and{{fileCount}}. Leave it blank for Sync{{project}}{{version}}from Apiome.
- Click “Save PR-back settings”.


/ade/dashboard/repositories/[id]Saving needs the imports:edit permission and is recorded in the audit log as
repository.pr_back_settings.update.
Open the pull request from the project's Sources tab on Versions. What the pull request contains:
- The rendered spec. Each source file gets back the paths and schemas it defines, written as
JSON or YAML to match the file's extension. In a project merged from several repositories, a
class or path that no file defines (one added in Apiome) goes to the file with precedence 1.
A file that is not JSON or YAML (such as a
.graphqlfile) is left as it is, and the pull request says so. - A change report as its description. For each file, what changed between the file on the target branch and the rendered spec, written with the project's change report template.
- One pull request per project and target branch. It is opened from the branch
apiome/pr-back-<project>-<target branch>. Running PR-back again, for example after a new version, updates the open pull request instead of opening another. Apiome rebuilds that branch each time, so make review changes in Apiome, not on the branch.
PR-back pushes with the GitHub account the repository was registered through. That account needs
write access to the repository: a classic token with the repo scope, or a fine-grained token with
write access to Contents and Pull requests. A repository registered from a public URL has no
account, so it cannot receive pull requests. Every pull request PR-back opens is recorded in the
audit log as repository.pr_back_opened, and every update as repository.pr_back_updated.
The same linked account can also receive exports: any finished export, in any format, can be delivered to a registered repository as a pull request or a direct commit. Export delivery also reaches repositories registered through a GitLab, Bitbucket or Microsoft (Azure DevOps) account. See Deliver an export to a git repository.
Formats a scan finds
A scan reads every file's name, and the content where the name is not enough, to decide which specifications a repository holds. These become rows you can import with Map & import (above):
| A file named | Is read as |
|---|---|
*openapi*.yaml / .yml / .json, *swagger*.… | OpenAPI 3.0 / 3.1, or Swagger 2.0 |
*asyncapi*.yaml / .yml / .json | AsyncAPI 2.x / 3.x |
*arazzo*.yaml / .yml / .json, *.arazzo.yaml | Arazzo 1.x workflows |
*.schema.json, or a .json under a schemas/ folder | JSON Schema |
*.graphql, *.gql | GraphQL SDL |
*.proto | Protocol Buffers |
*.avsc | Avro |
*.postman.json, postman_collection.json | Postman collection |
schema.prisma, *.dbml, *.sql / *.ddl | Prisma, DBML and SQL schemas |
Any other .json or .yaml file is read by its content, so an OpenAPI document named api.yaml is
still found. The import wizard explains how a GraphQL, Protocol Buffers or Avro
file maps onto classes when it is imported into a project.
Folders a scan skips
Vendored, build and cache folders are noise for spec discovery, so a scan skips them at any depth and never indexes their files:
| Skipped by default |
|---|
.git, node_modules, vendor, dist, build, coverage, __pycache__ |
To skip more, or to keep one file a default would skip, add .apiome/repo.yaml at the root of the
repository:
# .apiome/repo.yaml
version: 1
ignore: # added to the defaults above
- "**/testdata/**"
- "legacy/*.yaml"
specs: # always scanned, even inside a skipped folder
- path: dist/openapi.yaml
ignore:— patterns added to the defaults; the defaults always apply. Patterns are paths from the repository root:*matches within one folder,**across any number of folders.specs:— files that are always scanned. An entry wins over everyignore:pattern, sodist/openapi.yamlabove is found althoughdistis skipped.
The file is read at the start of every scan. If it is missing, not valid YAML or cannot be read, the
scan uses the defaults alone — the file can never stop a scan. Each scan records how many files and
folders it skipped (files_skipped_by_ignore, directories_skipped_by_ignore) in the scanner's log.
References to schemas outside the repository
A spec may point at a schema hosted somewhere else, such as
{"$ref": "https://schemas.acme.com/common.json#/Money"}. By default a scan does not fetch it: following
links found in a repository would let any file make Apiome call any address. The reference is
reported instead: the file's row on Discovered specs carries a warning such as
2 unresolved external $refs, so a model that is missing those definitions never looks complete.
That is the default Block external reference policy. Workspace administrators can allow fetching
from chosen hosts on a project's References tab.
A scan then fetches each allowed reference and inlines it, and records every fetch in the audit log.
Backstage files
Each scan also reads any Backstage catalog-info.yaml (or catalog-info.yml) in the branch, at any
depth, and turns its relations into declared dependencies
of the APIs you imported from that branch:
| Backstage field | Becomes |
|---|---|
spec.consumesApis | A consumes dependency on each API listed |
spec.dependsOn | A depends_on dependency on each entity listed |
spec.providesApis | Which of the branch's imported APIs the component is. When it names one, the relations attach to that API only; otherwise they attach to every API imported from the branch. |
A Backstage name (api:default/payments) matches the project or catalog item with that slug
(payments). A name that matches nothing is still listed, as unresolved. The scan replaces what it
recorded last time, so deleting the file or a line removes the dependency.
The same files also feed a migration from Backstage:
kind: APIentities with aspec.definitionare imported as catalog items.Component,System,DomainandGroupentities, andspec.owner, are staged as component and team suggestions on the branch's import report.
Every field Apiome cannot map is listed there. See Migrate from Backstage or Compass.
Discovered specs
Route/ade/dashboard/repositories/catalog
Discovered specs lists every specification the scanner found across all repositories, with its Status: Discovered, Mapped (bound to a project), Imported or Needs attention.


/ade/dashboard/repositories/catalogBranch refresh rules
A repository often tracks several branches: main, release branches, a sandbox. Each one can
refresh on its own terms. A rule names a branch exactly (main) or with a pattern
(release/*), and sets, for the branches it matches:
- Refresh: whether they refresh on the schedule and on push.
- Every: how often. Repository keeps the repository's cadence.
- Version line: the line of versions a refresh lands in, such as
latestor2.x. The refreshed version is labelled with the line and the time, such as2.x-2026-11-03T21:00Z, and follows the latest version of that line. Leave it empty for the usual date-and-time label.
In a pattern, * matches within one part of the name (release/* matches release/2.4 but not
release/2.4/hotfix), and ** matches across parts. When several rules match a branch, the most
specific one wins: an exact name before any pattern, then the pattern with the most fixed
characters. A branch no rule matches follows the repository.
- Open the repository and click the “Settings” tab.
- Under Branch refresh rules, click “Add rule”.
- Enter the Branch, for example
release/*, choose Every, for example 6 hours, and enter the Version line, for example2.x. Turn Refresh off for a branch that should never refresh, such assandbox. - Click “Save rules”.
Tracked branches lists every branch with an imported file and says how it refreshes, and which rule decided it, for example Every 6 hours into 2.x · rule release/*.


/ade/dashboard/repositories/[id]Auto-refresh under Scan cadence is still the switch for the whole repository: when it is off, no branch refreshes on its own. “Refresh now” refreshes a branch even when its rule turns refresh off, and still lands it in the branch's version line. A rule's cadence can't be shorter than the minimum your deployment allows.
From the CLI, apiome repository branch-rules show acme/api lists the rules and branches, and
apiome repository branch-rules set acme/api "release/*" --interval 21600 --line 2.x adds a rule
(--off turns refresh off, remove and clear delete rules). See
apiome repository branch-rules.
Refresh defaults
Route/ade/dashboard/repositories/refresh-defaults
A workspace can set the refresh settings every new repository starts from, so you don't set them repository by repository:
- Cadence: how often a repository is checked, for example Every 15 min.
- Refresh conflicts: what a refresh does when the version it would replace was edited in Apiome (Hold for review, Overwrite or New branch).
- Auto-refresh: whether repositories refresh on their own at all.
Without defaults, a new repository checks every 5 minutes, holds conflicts for review, and has auto-refresh on.
To set them (workspace administrators only; everyone else can read them):
- On Repositories, click the “Refresh defaults” tab.
- Choose the Cadence, the Refresh conflicts behaviour and Auto-refresh.
- Leave Also apply to the repositories that follow these defaults ticked to update existing repositories too, or clear it so only new repositories use the new values.
- Click “Save defaults”.
Under each setting, the page counts the repositories that follow it, for example 4 of 5 repositories follow this default.


/ade/dashboard/repositories/refresh-defaultsEach setting follows the default on its own. A repository follows a default until you change that one setting on the repository: choosing a Cadence on its Settings tab, a policy under Refresh conflicts, or turning Auto-refresh off. That setting then reads Custom, and re-applying the defaults never touches it; the repository's other settings still follow the defaults. Click “Use workspace default” next to a Custom setting to follow the default again.


/ade/dashboard/repositories/[id]Repositories that existed before the defaults were set follow a default only where they still had the built-in value. A setting someone had already changed stays Custom.
Refresh on push
A repository refreshes its imported specs on its Scan cadence. When the repository also sends
Apiome its push webhooks (GitHub, GitLab or Bitbucket, delivered to
POST /v1/repositories/webhook/{provider}), a push refreshes sooner:
- GitHub and GitLab. A push lists the files it changed. If it changed a file you imported a spec from, on the branch you imported it from, Apiome refreshes that file within seconds of the push, with the import settings you first used. Other files are not touched.
- Bitbucket, a force push, or a push too large for the provider to list every file: Apiome can't tell which files changed, so the repository refreshes on the next scheduled check, usually within a minute.
A push refresh follows the same rules as a scheduled one. A file is re-imported only when it is newer than what you last imported, and a version you edited by hand is held for review (see Settings). The refresh counts against your quota. A push does nothing while Auto-refresh is off, while the repository is paused after repeated failures, or when the pushed branch's rule turns refresh off.
If a push refresh can't run, for example because your quota is used up, the repository still refreshes on its next scheduled check. Without webhooks, Scan cadence works as before.
Quota & rate limits
Route/ade/dashboard/repositories/telemetry
Repositories are polled within an hourly quota. Quota & rate limits shows how much of it this workspace uses — polls, repositories and files deferred, and content scanned — over 7d, 30d or 90d. Connectors share the same quota: every document a connector fetches counts as a poll, and connector syncs deferred by the quota count as deferrals.


/ade/dashboard/repositories/telemetryWebhook IP allowlist
Route/ade/dashboard/repositories/webhook-ip-allowlist
Provider webhooks are only accepted from the provider's published address ranges, refreshed daily.
To allow a self-hosted Git server, add its range under Additional ranges for this workspace —
Address or CIDR (for example 203.0.113.0/24) and Why — and click “Allow range”.
Bypass allowlist turns enforcement off with a stated reason. Only workspace administrators can
change it.


/ade/dashboard/repositories/webhook-ip-allowlistWith the CLI or the API
- CLI:
apiome repos add --url https://github.com/apiome/apiome.git,apiome repos list,apiome repos files <repo>,apiome repos import <repo> --files "**/openapi*.yaml" --new-project— see the CLI quick-start. - REST:
GET/POST /v1/tenants/{tenant}/repositories,GET …/repositories/{repo}/files,POST …/repositories/{repo}/refresh,GET/PUT …/repositories/{repo}/branch-refresh-rules,GET/PUT …/repository-refresh-defaults(a repository'sPATCHtakesrefresh_interval_secondsanduse_workspace_defaults),GET …/repository-quota-telemetry,GET …/repository-webhook-ip-allowlist— see the API reference. A project's contributing repositories and the source of each class and path:GET /v1/tenants/{tenant}/projects/{project}/repository-sources— see Project repository sources. Federation:GET/PUT /v1/tenants/{tenant}/projects/{project}/repository-federation,GET …/projects/{project}/federation-mergesandGET …/repositories/{repo}/federation-merges— see Repository federation. PR-back:GET/PUT …/repositories/{repo}/pr-back-settings,GET /v1/tenants/{tenant}/projects/{project}/pr-back/repositoriesandPOST …/projects/{project}/pr-back(dryRun: truepreviews without writing) — see PR-back. The repository audit export (GET …/repository-audit-export) also lists connector changes and runs (repository.connector.*).
Where next
- Keep imports up to date — how every import source stays current
- Import wizard
- Versions
- Connectors