Skip to main content

Repositories

Route/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.

Repositories: one summary line — 4 repositories, files indexed, imports, last scan, 1 needs attention and a 1 stale · 1 failed chip — above the repository tableRepositories: one summary line — 4 repositories, files indexed, imports, last scan, 1 needs attention and a 1 stale · 1 failed chip — above the repository table
Route/ade/dashboard/repositories

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

Refresh activity in a drawer: specs by refresh state and two repositories that need attentionRefresh activity in a drawer: specs by refresh state and two repositories that need attention
Route/ade/dashboard/repositories

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

Repositories in Grid view, one card per repository with its health and scan stateRepositories in Grid view, one card per repository with its health and scan state
Route/ade/dashboard/repositories

Recent 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
  1. Click “Add repository” (or press N).
  2. 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.git and click “Test”.
  3. 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.

Add a repository with no linked accounts yet: Linked account and Public Git URL choices, and Connect an accountAdd a repository with no linked accounts yet: Linked account and Public Git URL choices, and Connect an account
Route/ade/dashboard/repositories/new

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

Add a repository with Public Git URL: an HTTPS URL, Test and ContinueAdd a repository with Public Git URL: an HTTPS URL, Test and Continue
Route/ade/dashboard/repositories/new
Add a repository with a linked GitHub account: choose a repository from the accountAdd a repository with a linked GitHub account: choose a repository from the account
Route/ade/dashboard/repositories/new

Register 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 accountHostrepositoryFullNameStored provider
GitHubgithub.comowner/repogithub
GitLabgitlab.comgroup/project or group/subgroup/projectgitlab
BitbucketBitbucket Cloudworkspace/repobitbucket
MicrosoftAzure DevOps (dev.azure.com)organization/project/repositoryazure_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.
A repository's Preview tab: files indexed, importable estimate, branches, recent scans and importsA repository's Preview tab: files indexed, importable estimate, branches, recent scans and imports
Route/ade/dashboard/repositories/[id]
A repository's Files tab: importable files with detected kind, quality and confidenceA repository's Files tab: importable files with detected kind, quality and confidence
Route/ade/dashboard/repositories/[id]
A file's details: detected metadata, the importable verdict and the sourceA file's details: detected metadata, the importable verdict and the source
Route/ade/dashboard/repositories/[id]
A repository's Settings tab: source, scan cadence and refresh behaviourA repository's Settings tab: source, scan cadence and refresh behaviour
Route/ade/dashboard/repositories/[id]

Import from a repository​

  1. On Files, tick the specifications to import and click “Import selected”.
  2. One file opens Map & import: choose an Existing project or Create a new project, and the version to create, then import.
  3. 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.
Map & import: target an existing project or create a new one, and the version to createMap & import: target an existing project or create a new one, and the version to create
Route/ade/dashboard/repositories/[id]
Import 2 selected files: each file's kind, resolution and target projectImport 2 selected files: each file's kind, resolution and target project
Route/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:

  1. Import the first service's file with Map & import and Create a new project.
  2. 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.
  3. 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:

ResultMeans
MergedSeveral files were merged into a new version. The row says how many classes and paths were carried forward from the other files
ConflictTwo files define the same class or path, so the import wrote nothing
ReplacedFederation 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.

A repository's Sync history: a conflict on the class Customer, opened to compare both files' definitions, and an earlier mergeA repository's Sync history: a conflict on the class Customer, opened to compare both files' definitions, and an earlier merge
Route/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:

  1. Open the repository and click the Settings tab.
  2. 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.
  3. 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.
  4. Click “Save PR-back settings”.
Pull requests back to this repository: an allow list with one project ticked, target branch, reviewers and commit messagePull requests back to this repository: an allow list with one project ticked, target branch, reviewers and commit message
Route/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 .graphql file) 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 namedIs read as
*openapi*.yaml / .yml / .json, *swagger*.…OpenAPI 3.0 / 3.1, or Swagger 2.0
*asyncapi*.yaml / .yml / .jsonAsyncAPI 2.x / 3.x
*arazzo*.yaml / .yml / .json, *.arazzo.yamlArazzo 1.x workflows
*.schema.json, or a .json under a schemas/ folderJSON Schema
*.graphql, *.gqlGraphQL SDL
*.protoProtocol Buffers
*.avscAvro
*.postman.json, postman_collection.jsonPostman collection
schema.prisma, *.dbml, *.sql / *.ddlPrisma, 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 every ignore: pattern, so dist/openapi.yaml above is found although dist is 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 fieldBecomes
spec.consumesApisA consumes dependency on each API listed
spec.dependsOnA depends_on dependency on each entity listed
spec.providesApisWhich 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: API entities with a spec.definition are imported as catalog items.
  • Component, System, Domain and Group entities, and spec.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.

Discovered specs: specs found across repositories with format, project and statusDiscovered specs: specs found across repositories with format, project and status
Route/ade/dashboard/repositories/catalog

Branch 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 latest or 2.x. The refreshed version is labelled with the line and the time, such as 2.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.

  1. Open the repository and click the “Settings” tab.
  2. Under Branch refresh rules, click “Add rule”.
  3. Enter the Branch, for example release/*, choose Every, for example 6 hours, and enter the Version line, for example 2.x. Turn Refresh off for a branch that should never refresh, such as sandbox.
  4. 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/*.

Branch refresh rules: each tracked branch with how it refreshes, and the rules for main and release/*Branch refresh rules: each tracked branch with how it refreshes, and the rules for main and release/*
Route/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):

  1. On Repositories, click the “Refresh defaults” tab.
  2. Choose the Cadence, the Refresh conflicts behaviour and Auto-refresh.
  3. 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.
  4. Click “Save defaults”.

Under each setting, the page counts the repositories that follow it, for example 4 of 5 repositories follow this default.

Refresh defaults: cadence, refresh conflicts and auto-refresh, with how many repositories follow eachRefresh defaults: cadence, refresh conflicts and auto-refresh, with how many repositories follow each
Route/ade/dashboard/repositories/refresh-defaults

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

A repository's Scan cadence: the cadence, and each refresh setting marked Workspace default or CustomA repository's Scan cadence: the cadence, and each refresh setting marked Workspace default or Custom
Route/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.

Quota & rate limits: polling quota, polls, deferrals and bytes scannedQuota & rate limits: polling quota, polls, deferrals and bytes scanned
Route/ade/dashboard/repositories/telemetry

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

Webhook IP allowlist: enforcement, provider ranges and additional ranges for the workspaceWebhook IP allowlist: enforcement, provider ranges and additional ranges for the workspace
Route/ade/dashboard/repositories/webhook-ip-allowlist

With 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's PATCH takes refresh_interval_seconds and use_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-merges and GET …/repositories/{repo}/federation-merges — see Repository federation. PR-back: GET / PUT …/repositories/{repo}/pr-back-settings, GET /v1/tenants/{tenant}/projects/{project}/pr-back/repositories and POST …/projects/{project}/pr-back (dryRun: true previews without writing) — see PR-back. The repository audit export (GET …/repository-audit-export) also lists connector changes and runs (repository.connector.*).

Where next​