API reference

Every operation of the Aveloxis REST API, grouped by area. This page is rendered from openapi.yaml when the documentation is built; the conventions explain the shared rules (access, errors, rate limits, caching) that each entry assumes. Each entry names its operation (operationId), states who may call it, and ends with the handler that serves it in internal/api.

Service

Liveness and the anonymous fleet figures.

GET /api/v1/health
Operation:

health

Access:

public: no token is needed.

Returns the server’s status and version.

The liveness probe. It reads nothing from the database.

Handler: handleHealth.

Response JSON Object:
  • status (string, required)

  • version (string, required) – The running binary’s version.

Status Codes:
GET /api/v1/public/stats
Operation:

publicFleetStats

Access:

public: no token is needed.

Returns the fleet’s repository, commit, issue, pull-request and contributor totals.

The landing page’s anonymous figures. Served from a 60-second cache that keeps the last good values when a reload fails.

Handler: handlePublicStats.

Response JSON Object:
  • repos (integer:int64, required) – Every repository in the catalog, archived ones included.

  • commits (integer:int64, required) – Sum of the collection queue’s cached gathered commit totals.

  • issues (integer:int64, required)

  • prs (integer:int64, required)

  • contributors (integer:int64, required) – The contributor catalog’s row count.

Status Codes:
  • 200 OK – The totals.

  • 429 Too Many Requests – Refused by a rate limit; retry after Retry-After seconds. Shared response TooManyRequests.

  • 503 Service Unavailable – stats unavailable (text) when the first load since the process started failed and no earlier values exist; or a presented token could not be checked (JSON, session lookup failed; try again); or the request ran past http_timeout_seconds (text, request exceeded http_timeout_seconds).

GET /api/v1/mailing-list/stats
Operation:

mailingListStats

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the mailing-list collection coverage rollup.

The same figures as aveloxis mailing-list-stats. The keys are PascalCase.

Cost: counts over the mailing-list tables on every call (not cached).

Handler: handleMailingListStats.

Response JSON Object:
  • Lists (integer, required) – Registered lists.

  • ScanComplete (integer, required) – Lists that finished their current scan.

  • EmailMessages (integer:int64, required)

  • Mirrors (integer:int64, required)

  • SignaledCaptured (integer:int64, required) – Messages that named a repository.

  • SignaledResolved (integer:int64, required) – Of those, the ones resolved to a collected repository.

  • SenderTotal (integer:int64, required)

  • SenderResolved (integer:int64, required)

  • ByClass (object, required) – Message count per msg_class; null when no message is classified. Or null.

  • ByClass.{msg_class} (integer:int64) – One entry per {msg_class}.

Status Codes:

Repositories

One collected repository’s statistics, series, licenses, SBOMs, scan results and traffic.

GET /api/v1/repos/{repoID}/stats
Operation:

repositoryStats

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns a repository’s gathered and forge-reported counts, vulnerability counts and status.

Gathered counts are the collection queue’s cached totals; metadata counts come from the latest forge snapshot. An id with no repository answers zeros to an unscoped caller (a scoped caller gets the 403).

Handler: handleRepoStats.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • repo_id (integer:int64, required)

  • gathered_prs (integer, required) – Pull requests collected, from the collection queue’s cached totals as of the last completed collection.

  • gathered_issues (integer, required)

  • gathered_commits (integer, required)

  • metadata_prs (integer, required) – The forge’s reported total from the latest metadata snapshot.

  • metadata_issues (integer, required)

  • metadata_commits (integer, required)

  • vulnerabilities (integer, required) – Current findings (unresolved, not the repository’s own package, version known).

  • critical_vulns (integer, required) – Current findings with severity CRITICAL or a CVSS score of at least 9.0.

  • vulnerabilities_version_unknown (integer, required) – Findings matched against an unpinned version.

  • archived (boolean) – Single-repository answer only. The forge reports the repository as archived (read-only). The batch answer (/repos/stats) does not read it and always says false.

  • last_activity_at (string:date-time) – Single-repository answer only. The latest observed activity; absent when unknown (and always absent in the batch answer).

  • forked_from (string) – Single-repository answer only (always absent in the batch answer). The upstream owner/name of a fork; (unknown upstream) when the forge reports a fork but not its upstream; absent otherwise.

  • last_collected (string:date-time)

  • gone_at (string:date-time) – When the forge stopped serving the repository; absent while it is served.

  • unavailable_reason (string) – The forge’s own message for a blocked or disabled repository.

  • unavailable_url (string) – The https link that message gives.

  • metadata_as_of (string:date-time) – The date of the metadata snapshot behind the metadata_* counts.

  • forge_id_changes[] (object) – A recorded forge-ID change (db.ForgeIDChange).

  • forge_id_changes[].repo_id (integer:int64, required)

  • forge_id_changes[].old_forge_id (string, required)

  • forge_id_changes[].new_forge_id (string, required)

  • forge_id_changes[].first_observed_at (string:date-time, required)

  • forge_id_changes[].last_observed_at (string:date-time, required)

  • forge_id_changes[].forge_created_at (string:date-time) – When the forge created the new repository; absent when the scan did not list it.

  • forge_id_changes[].adopted_at (string:date-time) – Adopted changes only.

  • forge_id_changes[].observed_private (boolean) – Whether the listing that last observed the change was not public (GitHub private; GitLab internal or private). Absent when unknown (a change recorded before 0.29.140, or read before the migrate added the column). Adopting a change that is not KNOWN public (false) moves the id but does not lift a gone stamp; an adoption from the admin page keeps the recorded value (unknown stays unknown), aveloxis adopt-forge-id records the forge’s own answer.

  • forge_id_changes[].adopted_by (string)

  • forge_id_changes[].note (string)

  • forge_id_changes[].repo_git (string) – The repository’s stored URL.

  • forge_id_changes[].superseded (boolean) – A pending change whose old ID is no longer the stored one; it cannot be adopted. Absent when false.

  • gone_history[] (object) – One stretch during which a repository did not resolve on its forge (db.GoneEpisode, 0.29.140).

  • gone_history[].gone_at (string:date-time, required) – When a probe saw the repository gone.

  • gone_history[].status (integer) – The probe’s HTTP status (404, 410 or 451); absent when unknown (episodes backfilled from a bare stamp, and a current stretch a merge restarted at the repository’s latest gone mark, whose status is not kept).

  • gone_history[].source (string, required) – The writer that saw it gone (prelim, gone-recheck, mark-gone-repos, reconcile-repos, backfill-0.29.140); empty for a current stretch a merge restarted at the repository’s latest gone mark (the writer is not kept).

  • gone_history[].restored_at (string:date-time) – When the repository was seen again; absent while the episode is open.

  • gone_history[].restored_source (string) – The writer that saw it back (prelim, gone-recheck, mark-gone-repos, reconcile-repos, forge-id-adoption, org-scan; collection for an episode a merge closed at the first metadata snapshot after it; dedup-repos or rename-heal for a merged duplicate’s episode closed by the merge with no evidence of when it came back).

  • has_metadata_snapshot (boolean) – Present (true) when a metadata snapshot exists, even one without a date.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/stats
Operation:

repositoryStatsBatch

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the statistics of several repositories, keyed by id.

ids is a comma-separated list of repository ids; an entry that is not a positive integer is a 400 (since 0.29.99; it was skipped before). At most 500 ids per request. A caller that is not an administrator’s session (an API token, or any other signed-in session) gets only the ids in its groups; the others are left out, and an answer with none of them is {}. An id no repository has is left out too (since 0.29.99; it was a row of zeros). Repositories no longer in the collection queue fall back to live counts.

Handler: handleRepoStatsBatch.

Query Parameters:
  • ids (string, required) – Comma-separated repository ids, at most 500.

Response JSON Object:
  • {repo_id} (object) – One entry per {repo_id}.

  • {repo_id}.repo_id (integer:int64, required)

  • {repo_id}.gathered_prs (integer, required) – Pull requests collected, from the collection queue’s cached totals as of the last completed collection.

  • {repo_id}.gathered_issues (integer, required)

  • {repo_id}.gathered_commits (integer, required)

  • {repo_id}.metadata_prs (integer, required) – The forge’s reported total from the latest metadata snapshot.

  • {repo_id}.metadata_issues (integer, required)

  • {repo_id}.metadata_commits (integer, required)

  • {repo_id}.vulnerabilities (integer, required) – Current findings (unresolved, not the repository’s own package, version known).

  • {repo_id}.critical_vulns (integer, required) – Current findings with severity CRITICAL or a CVSS score of at least 9.0.

  • {repo_id}.vulnerabilities_version_unknown (integer, required) – Findings matched against an unpinned version.

  • {repo_id}.archived (boolean) – Single-repository answer only. The forge reports the repository as archived (read-only). The batch answer (/repos/stats) does not read it and always says false.

  • {repo_id}.last_activity_at (string:date-time) – Single-repository answer only. The latest observed activity; absent when unknown (and always absent in the batch answer).

  • {repo_id}.forked_from (string) – Single-repository answer only (always absent in the batch answer). The upstream owner/name of a fork; (unknown upstream) when the forge reports a fork but not its upstream; absent otherwise.

  • {repo_id}.last_collected (string:date-time)

  • {repo_id}.gone_at (string:date-time) – When the forge stopped serving the repository; absent while it is served.

  • {repo_id}.unavailable_reason (string) – The forge’s own message for a blocked or disabled repository.

  • {repo_id}.unavailable_url (string) – The https link that message gives.

  • {repo_id}.metadata_as_of (string:date-time) – The date of the metadata snapshot behind the metadata_* counts.

  • {repo_id}.forge_id_changes[] (object) – A recorded forge-ID change (db.ForgeIDChange).

  • {repo_id}.forge_id_changes[].repo_id (integer:int64, required)

  • {repo_id}.forge_id_changes[].old_forge_id (string, required)

  • {repo_id}.forge_id_changes[].new_forge_id (string, required)

  • {repo_id}.forge_id_changes[].first_observed_at (string:date-time, required)

  • {repo_id}.forge_id_changes[].last_observed_at (string:date-time, required)

  • {repo_id}.forge_id_changes[].forge_created_at (string:date-time) – When the forge created the new repository; absent when the scan did not list it.

  • {repo_id}.forge_id_changes[].adopted_at (string:date-time) – Adopted changes only.

  • {repo_id}.forge_id_changes[].observed_private (boolean) – Whether the listing that last observed the change was not public (GitHub private; GitLab internal or private). Absent when unknown (a change recorded before 0.29.140, or read before the migrate added the column). Adopting a change that is not KNOWN public (false) moves the id but does not lift a gone stamp; an adoption from the admin page keeps the recorded value (unknown stays unknown), aveloxis adopt-forge-id records the forge’s own answer.

  • {repo_id}.forge_id_changes[].adopted_by (string)

  • {repo_id}.forge_id_changes[].note (string)

  • {repo_id}.forge_id_changes[].repo_git (string) – The repository’s stored URL.

  • {repo_id}.forge_id_changes[].superseded (boolean) – A pending change whose old ID is no longer the stored one; it cannot be adopted. Absent when false.

  • {repo_id}.gone_history[] (object) – One stretch during which a repository did not resolve on its forge (db.GoneEpisode, 0.29.140).

  • {repo_id}.gone_history[].gone_at (string:date-time, required) – When a probe saw the repository gone.

  • {repo_id}.gone_history[].status (integer) – The probe’s HTTP status (404, 410 or 451); absent when unknown (episodes backfilled from a bare stamp, and a current stretch a merge restarted at the repository’s latest gone mark, whose status is not kept).

  • {repo_id}.gone_history[].source (string, required) – The writer that saw it gone (prelim, gone-recheck, mark-gone-repos, reconcile-repos, backfill-0.29.140); empty for a current stretch a merge restarted at the repository’s latest gone mark (the writer is not kept).

  • {repo_id}.gone_history[].restored_at (string:date-time) – When the repository was seen again; absent while the episode is open.

  • {repo_id}.gone_history[].restored_source (string) – The writer that saw it back (prelim, gone-recheck, mark-gone-repos, reconcile-repos, forge-id-adoption, org-scan; collection for an episode a merge closed at the first metadata snapshot after it; dedup-repos or rename-heal for a merged duplicate’s episode closed by the merge with no evidence of when it came back).

  • {repo_id}.has_metadata_snapshot (boolean) – Present (true) when a metadata snapshot exists, even one without a date.

Status Codes:
GET /api/v1/repos/{repoID}/sbom
Operation:

repositorySBOM

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns a software bill of materials for a repository as a JSON download.

Generated from the stored dependency data: CycloneDX 1.7 (default) or SPDX 2.3. Repositories with lockfile data carry the real dependency graph. The Content-Disposition filename is sbom-repo-<id>[-runtime][-with-vulns].cdx.json or .spdx.json.

Cost: generated per request when not in the response cache.

Handler: handleSBOMDownload.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • format (string:enum)

  • scope (string:enum) – runtime keeps only runtime-scope components (unclassified count as runtime).

  • vulns (string) – 1 annotates the document with the repository’s current findings (CycloneDX vulnerabilities; SPDX package externalRefs of category SECURITY). Any other value is ignored.

Status Codes:
Response Headers:
  • Content-Disposition (string) – attachment; filename="…".

  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/timeseries
Operation:

repositoryTimeSeries

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns a repository’s weekly commits, pull requests opened and merged, and issues opened.

The window starts two years before the Monday (UTC midnight) that starts the current week by default (two years before today’s UTC midnight until 0.29.120). An omitted until ends it at the latest plausible commit time, UTC midnight two days ahead; a given until is inclusive (the window ends at the next midnight) and is never later than that bound. The start is never earlier than 1970-01-02. The bounds apply to all four series, not only commits. Weeks start on Monday (UTC).

Handler: handleTimeSeries.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • since (string:date) – First UTC day of the window (YYYY-MM-DD, inclusive). A value that does not parse is a 400 (since 0.29.99; it fell back to the default before).

  • until (string:date) – Last UTC day of the window (YYYY-MM-DD, inclusive: the whole day counts). A value that does not parse is a 400 (since 0.29.99). A window whose since is not before until is a 400.

Response JSON Object:
  • repo_id (integer:int64, required)

  • repo_name (string, required)

  • repo_owner (string, required)

  • commits[] (object) – One week of the repository time series. Its number is count, the one native series that predates the value convention (see the conventions page, “One field name for a metric’s number”); /compare and the Augur-compatible metrics carry value.

  • commits[].week_start (string:date-time, required) – The Monday that starts the week (UTC).

  • commits[].count (integer, required)

  • prs_opened[] (object) – One week of the repository time series. Its number is count, the one native series that predates the value convention (see the conventions page, “One field name for a metric’s number”); /compare and the Augur-compatible metrics carry value.

  • prs_opened[].week_start (string:date-time, required) – The Monday that starts the week (UTC).

  • prs_opened[].count (integer, required)

  • prs_merged[] (object) – One week of the repository time series. Its number is count, the one native series that predates the value convention (see the conventions page, “One field name for a metric’s number”); /compare and the Augur-compatible metrics carry value.

  • prs_merged[].week_start (string:date-time, required) – The Monday that starts the week (UTC).

  • prs_merged[].count (integer, required)

  • issues[] (object) – One week of the repository time series. Its number is count, the one native series that predates the value convention (see the conventions page, “One field name for a metric’s number”); /compare and the Augur-compatible metrics carry value.

  • issues[].week_start (string:date-time, required) – The Monday that starts the week (UTC).

  • issues[].count (integer, required)

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/metric-series
Operation:

repositoryMetricSeries

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns one temporal metric’s series for one repository (the repository page’s charts).

The answer /compare gives for entities=repo:{repoID} with the same metric, since, until, bucket and retention_threshold (the same window rules and the same body), served by the repository-page cache: valid until the repository’s collection state changes or its window moves (the default window moves each Monday, UTC, for bucket=week, and on the 1st for bucket=month), with an ETag and 304``s. Unlike ``/compare, nothing is recorded in the caller’s “Comparisons” group, and access is the repository routes’ (an out-of-scope repository a signed-in session reads is linked into “Shared with Me”, as on every repository route). Since 0.29.119.

Commit authorship, for the contributors and committers metrics, once the repository’s daily commit picture is complete (repos.commit_daily_complete_at): read from the daily commit table (one row per repository, UTC day and author email), each day’s author resolved by the rule /contributors/top applies — the stored identity while live, else the forge’s numeric user id, the login, then the house email rule. Decided and kept (0.29.137; Copilot’s PR #249 review, comment 2, declined): a day on which two distinct live identities authored commits under one email resolves to one person or to none, where the per-file commit rows counted two. A repository whose picture is not complete keeps the per-file rows and their stored identities.

Handler: handleRepoMetricSeries.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • metric (string:enum, required) – A temporal id from the metric catalog.

  • since (string:date) – First day (YYYY-MM-DD). Default as on /compare. A value that does not parse is a 400.

  • until (string:date) – A day (YYYY-MM-DD), as on /compare. A value that does not parse is a 400.

  • bucket (string:enum)

  • retention_threshold (integer) – contributor_retention only, as on /compare.

Response JSON Object:
  • metric (object, required) – One metric of the comparison catalog (MetricDef).

  • metric.id (string, required) – The value to pass as metric.

  • metric.name (string, required)

  • metric.definition (string, required)

  • metric.unit (string, required)

  • metric.kind (string:enum, required) – temporal metrics are compared by GET /api/v1/compare, snapshot metrics by GET /api/v1/compare/snapshot.

  • metric.improves_on_chaoss (object, required)

  • metric.improves_on_chaoss.chaoss_url (string:uri, required)

  • metric.improves_on_chaoss.delta_note (string, required)

  • metric.our_reference_url (string:uri, required)

  • bucket (string:enum, required)

  • since (string:date, required) – The effective window start.

  • until (string:date, required) – The effective window end (exclusive bucket boundary).

  • series[] (object) – One entity’s series (compareSeries).

  • series[].entity (object, required) – A compared repository or organization, as parsed from entities (entity).

  • series[].entity.kind (string:enum, required)

  • series[].entity.repo_id (integer:int64) – repo entities only.

  • series[].entity.host (string) – org entities only.

  • series[].entity.login (string) – org entities only.

  • series[].entity.label (string, required) – owner/name for a repository, login (org) for an organization; the raw entity token when the lookup of labels failed.

  • series[].points[] (object) – One bucket of a series (db.WeeklyPoint).

  • series[].points[].bucket (string:date-time, required) – The bucket’s first instant (UTC); a Monday for week, the 1st for month.

  • series[].points[].value (number, required)

  • series[].parts (object) – contributor_retention only: the component series drive_by and repeat, whose sum is points.

  • series[].parts.{part}[] (object) – One bucket of a series (db.WeeklyPoint).

  • series[].parts.{part}[].bucket (string:date-time, required) – The bucket’s first instant (UTC); a Monday for week, the 1st for month.

  • series[].parts.{part}[].value (number, required)

  • series[].data_start (string:date) – The entity’s first dateable activity (first issue, change request, commit, or the forge’s creation date). Absent when it has none.

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/licenses
Operation:

repositoryLicenses

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns a repository’s dependency licenses with counts and OSI approval.

One row per canonical SPDX expression. scanned is false until dependency analysis has run for the repository (or when that probe failed; such an answer is not cached); licenses is [] when there are no dependencies.

Handler: handleLicenses.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • scope (string:enum) – runtime counts only runtime-scope dependencies (unclassified count as runtime).

Response JSON Object:
  • scanned (boolean, required)

  • scope (string:enum, required) – The scope in effect.

  • licenses[] (object)

  • licenses[].license (string, required) – The license as a canonical SPDX expression (operands of OR and AND in a fixed order), or Unknown.

  • licenses[].count (integer, required)

  • licenses[].is_osi (boolean, required) – OSI-approved per the SPDX license list (an OR when any option is, an AND when every term is).

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/scancode-licenses
Operation:

repositoryScancodeLicenses

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the source-file licenses and copyright holders ScanCode found in a repository.

Aggregated from the per-file scan. last_run is "" until ScanCode has run for the repository. A part that could not be read is served empty ([] lists) and the answer is not cached.

Handler: handleScancodeLicenses.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • licenses[] (object)

  • licenses[].license (string, required)

  • licenses[].file_count (integer, required)

  • licenses[].is_osi (boolean, required)

  • copyrights[] (object)

  • copyrights[].holder (string, required)

  • copyrights[].file_count (integer, required)

  • last_run (string, required) – YYYY-MM-DD (UTC) of the last scan, or "".

  • scancode_version (string, required)

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/scancode-files
Operation:

repositoryScancodeFiles

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns ScanCode’s per-file license and copyright rows for a repository.

One row per scanned file; [] when nothing is stored or the read failed (that answer is not cached).

Handler: handleScancodeFiles.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Array of Objects:
  • path (string, required)

  • license (string, required) – The file’s detected license, normalized to SPDX.

  • copyright (string, required) – The first copyright holder, at most 120 characters.

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

Operation:

repositorySearch

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns up to 20 repositories whose name, owner or URL contains the query.

Case-insensitive substring match over every collected repository (not limited to the caller’s groups), ordered by owner then name. % and _ in q match themselves (since 0.29.99; they acted as SQL wildcards before). [] when nothing matches.

Handler: handleRepoSearch.

Query Parameters:
  • q (string, required)

Response JSON Array of Objects:
  • id (integer:int64, required)

  • owner (string, required)

  • name (string, required)

  • starred (boolean, required) – Whether the caller has starred it; always false without an identity.

Status Codes:
GET /api/v1/authz/repos/{repoID}
Operation:

repositoryAuthorization

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Answers whether the caller may read the repository; returns no data.

Handler: handleRepoAuthz.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/traffic
Operation:

repositoryTraffic

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns a repository’s stored traffic history.

Everything stored from the forge’s traffic and statistics APIs, in one answer without paging: every daily row of clones and views, every 14-day window and complete week, and the latest top paths and referrers. A day with a row was read, even when its counts are 0. A GitLab repository answers its daily clones with uniques null, empty lists for the rest and a null snapshot_date. So does a repository whose key the forge refuses, and an id with no repository, to an unscoped caller (a scoped caller gets the 403). Grows by about 730 daily rows a year; the read is indexed by repository.

Handler: handleRepoTraffic.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • repo_id (integer:int64, required)

  • clones[] (object) – One stored UTC day of clones or views (db.TrafficDay).

  • clones[].date (string:date, required)

  • clones[].count (integer, null, required) – Clones or views that day.

  • clones[].uniques (integer, null, required) – Distinct cloners or visitors that day; null when the forge does not count them (GitLab clones).

  • views[] (object) – One stored UTC day of clones or views (db.TrafficDay).

  • views[].date (string:date, required)

  • views[].count (integer, null, required, required) – Clones or views that day.

  • views[].uniques (integer, null, required, required) – Distinct cloners or visitors that day; null when the forge does not count them (GitLab clones).

  • windows[] (object) – One 14-day window GitHub reported, from its first to its last daily bucket (db.TrafficWindow).

  • windows[].kind (string:enum, required)

  • windows[].start (string:date, required)

  • windows[].end (string:date, required) – The window’s last day, included.

  • windows[].uniques (integer, null, required) – Distinct visitors or cloners over the window, as GitHub computes them; not the sum of the daily uniques.

  • weeks[] (object) – One complete Monday-to-Sunday week inside a read’s window (db.TrafficWeek).

  • weeks[].kind (string:enum, required)

  • weeks[].week_start (string:date, required) – The week’s Monday.

  • weeks[].uniques (integer, null, required) – Distinct visitors or cloners over the week.

  • snapshot_date (['string', 'null']:date, required) – The latest UTC collection date that stored a path or a referrer; paths and referrers are that date’s snapshot. null when none was ever stored.

  • paths[] (object) – One of the top paths GitHub reported for its 14-day period (db.TrafficPath).

  • paths[].path (string, required)

  • paths[].title (string, required)

  • paths[].count (integer, null, required) – Views of the path over GitHub’s 14-day period.

  • paths[].uniques (integer, null, required) – Distinct visitors of the path over that period.

  • referrers[] (object) – One of the top referring sites GitHub reported for its 14-day period (db.TrafficReferrer).

  • referrers[].referrer (string, required)

  • referrers[].count (integer, null, required) – Views the site sent over GitHub’s 14-day period.

  • referrers[].uniques (integer, null, required) – Distinct visitors the site sent over that period.

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/star
Operation:

repositoryStarState

Access:

a signed-in session or an API token.

Returns whether the caller starred a repository.

Stars are the caller’s own; no repository scope applies.

Handler: handleRepoStarState.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • starred (boolean, required)

Status Codes:
PUT /api/v1/repos/{repoID}/star
Operation:

starRepository

Access:

a signed-in session or an API token.

Stars a repository for the caller.

A signed-in session starring a repository outside its groups adds it to its “Starred” group (added_to_group), counted against shared_with_me_adds_per_hour (429), the repository allocation (403) and the daily additions (429, quota repo_links_per_day). An API token is refused for such a repository with the instructions to add it. Starring again is idempotent.

Handler: handleStarRepo.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • ok (boolean, required)

  • starred (boolean, required) – true after a star, false after an unstar.

  • added_to_group (string) – Present when this star added the repository to the caller’s “Starred” group.

Status Codes:
DELETE /api/v1/repos/{repoID}/star
Operation:

unstarRepository

Access:

a signed-in session or an API token.

Removes the caller’s star from a repository.

No scope applies; the repository stays in any group the star added it to.

Handler: handleStarRepo.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • ok (boolean, required)

  • starred (boolean, required) – true after a star, false after an unstar.

  • added_to_group (string) – Present when this star added the repository to the caller’s “Starred” group.

Status Codes:

Vulnerabilities

Vulnerability findings and the OpenSSF Scorecard.

GET /api/v1/repos/{repoID}/vulnerabilities
Operation:

repositoryVulnerabilities

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns a repository’s vulnerability findings, current and resolved, with their counts.

Every finding the OSV scans recorded for the repository’s dependencies. A finding with resolved_at is history. counts classifies each finding once: resolved; self (an advisory about the repository’s own package); unknown_version (an unpinned range, except GitHub Actions refs); otherwise current, split into direct/transitive and runtime/dev, with critical (severity CRITICAL or CVSS 9.0 and up) counted within current and unknown_version_critical within unknown_version.

Current transitive findings carry introduced_by when the repository’s lockfiles give the dependency edges. When the edge or certainty lookups fail, the findings are still served, without that part, and the answer is not cached.

Handler: handleRepoVulnerabilities.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • repo_id (integer:int64, required)

  • vulnerabilities[] (object) – One vulnerability finding (vulnJSON).

  • vulnerabilities[].vuln_id (string, required) – The OSV id (GHSA, PYSEC, GO, …).

  • vulnerabilities[].cve_id (string)

  • vulnerabilities[].package_name (string, required)

  • vulnerabilities[].package_purl (string)

  • vulnerabilities[].ecosystem (string)

  • vulnerabilities[].severity (string, required) – The advisory’s severity word as stored (CRITICAL, HIGH, MEDIUM/MODERATE, LOW), or empty.

  • vulnerabilities[].cvss_score (number, required)

  • vulnerabilities[].cvss_vector (string)

  • vulnerabilities[].summary (string, required)

  • vulnerabilities[].details (string)

  • vulnerabilities[].scanned_version (string) – The version the scan matched, read from package_purl’s @version; absent when the purl carries none.

  • vulnerabilities[].fixed_version (string)

  • vulnerabilities[].introduced_version (string)

  • vulnerabilities[].source (string, required)

  • vulnerabilities[].aliases[] (string)

  • vulnerabilities[].advisory_url (string:uri, required) – The OSV page.

  • vulnerabilities[].cve_url (string:uri) – The OpenCVE page, when there is a CVE id.

  • vulnerabilities[].first_detected_at (string:date-time, required)

  • vulnerabilities[].last_seen_at (string:date-time, required)

  • vulnerabilities[].resolved_at (string:date-time) – When the finding stopped being seen. Absent while the repository is still affected.

  • vulnerabilities[].declared_requirement (string)

  • vulnerabilities[].version_resolution (string) – How the scanned version was obtained (for example unpinned when the manifest named a range and no lockfile pinned it).

  • vulnerabilities[].dependency_kind (string) – direct, transitive, or self (an advisory about the repository’s own package).

  • vulnerabilities[].introduced_by[] (object) – How a direct dependency pulls a vulnerable package in (vulnChainJSON).

  • vulnerabilities[].introduced_by[].root (string, required) – The direct dependency.

  • vulnerabilities[].introduced_by[].chain[] (string)

  • vulnerabilities[].introduced_by_total_roots (integer) – How many direct dependencies pull the package in (all of them, not only the ones in introduced_by).

  • vulnerabilities[].dependency_scope (string) – The dependency’s scope (runtime, dev, test, build, optional, peer); empty counts as runtime.

  • scanned_at (['string', 'null']:date-time, required) – The last vulnerability scan; null when never scanned (an empty list then means “not scanned”, not “no findings”).

  • lockfile_certainty (object, required) – How much of the repository’s dependency set a lockfile pins (db.LockfileCertainty).

  • lockfile_certainty.overall (string:enum, required)

  • lockfile_certainty.ecosystems[] (object)

  • lockfile_certainty.ecosystems[].ecosystem (string, required)

  • lockfile_certainty.ecosystems[].lockfile_kind (string, required) – The lockfile format (go.mod for Go, which pins by construction).

  • lockfile_certainty.ecosystems[].locked_packages (integer, required)

  • counts (object, required)

  • counts.current (integer, required)

  • counts.resolved (integer, required)

  • counts.critical (integer, required)

  • counts.direct (integer, required)

  • counts.transitive (integer, required)

  • counts.dev (integer, required)

  • counts.runtime (integer, required)

  • counts.self (integer, required)

  • counts.unknown_version (integer, required)

  • counts.unknown_version_critical (integer, required)

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/scorecard
Operation:

repositoryScorecard

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns a repository’s latest OpenSSF Scorecard checks and overall score.

scanned is false (and checks []) when no Scorecard run is stored. mode is remote for the complete check set, local for the subset Scorecard computes from a clone alone, and empty for a scan that predates the distinction. overall is absent for scans stored before the aggregate was kept.

Handler: handleRepoScorecard.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • repo_id (integer:int64, required)

  • checks[] (object) – One OpenSSF Scorecard check (db.ScorecardCheck).

  • checks[].name (string, required)

  • checks[].score (number, required) – 0 to 10; -1 when the stored value could not be read (not applicable).

  • scanned (boolean, required)

  • mode (string:enum) – Present when scanned.

  • overall (number) – The aggregate score, 0 to 10.

  • as_of (string:date-time) – When the stored run was collected.

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

Contributors

Who contributes to a repository, and where else they are active.

GET /api/v1/repos/{repoID}/contributions/identities
Operation:

repositoryContributorIdentities

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns every distinct person who contributed to a repository in the window.

A contribution is a commit authored, an issue opened or closed, an issue or pull-request event, a pull request opened, a review submitted, or any comment. Commits whose author was never resolved to a contributor are not counted. The window starts two years before the Monday (UTC) that starts the current week by default; an omitted until ends it at the latest plausible commit time (UTC midnight two days ahead), and a given until is never later than that bound. Ordered by login then full name.

Handler: handleRepoContributors.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • since (string:date) – First UTC day of the window (YYYY-MM-DD, inclusive). A value that does not parse is a 400 (since 0.29.99; it fell back to the default before).

  • until (string:date) – Last UTC day of the window (YYYY-MM-DD, inclusive: the whole day counts). A value that does not parse is a 400 (since 0.29.99). A window whose since is not before until is a 400.

Response JSON Array of Objects:
  • cntrb_id (string:uuid, required)

  • login (string, required)

  • full_name (string, required)

  • email (string, required)

  • profile_company (string, required)

  • location (string, required)

  • activity_class (string:enum, required) – GitHub only (trailing year). "" when never checked, GitLab-side, or the account was gone at check time.

  • public_contribs_year (integer, required)

  • restricted_contribs_year (integer, required)

  • last_contribution_year (integer, required)

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/contributions/affiliations
Operation:

repositoryContributorAffiliations

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the number of distinct contributors per affiliation in the window.

The same people as repositoryContributorIdentities for the same window, so the counts sum to its row count. Affiliation comes from the curated e-mail-domain map, then the profile company, else (unknown) (kept, so the sum reconciles). Ordered by count descending, then name.

Handler: handleRepoAffiliations.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • since (string:date) – First UTC day of the window (YYYY-MM-DD, inclusive). A value that does not parse is a 400 (since 0.29.99; it fell back to the default before).

  • until (string:date) – Last UTC day of the window (YYYY-MM-DD, inclusive: the whole day counts). A value that does not parse is a 400 (since 0.29.99). A window whose since is not before until is a 400.

Response JSON Array of Objects:
  • affiliation (string, required) – The organization, or (unknown).

  • contributor_count (integer, required)

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/contributions/coverage
Operation:

repositoryContributionsCoverage

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns how completely the window’s contributors are enriched and affiliated.

The same cohort as repositoryContributorIdentities. Read it before drawing conclusions from the (unknown) affiliation bucket: the unenriched contributors may still gain an affiliation.

Handler: handleRepoContributionsCoverage.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • since (string:date) – First UTC day of the window (YYYY-MM-DD, inclusive). A value that does not parse is a 400 (since 0.29.99; it fell back to the default before).

  • until (string:date) – Last UTC day of the window (YYYY-MM-DD, inclusive: the whole day counts). A value that does not parse is a 400 (since 0.29.99). A window whose since is not before until is a 400.

Response JSON Object:
  • window_since (string:date-time, required)

  • window_until (string:date-time, required)

  • total_contributors (integer, required)

  • enriched (integer, required)

  • canonical_email (integer, required)

  • gh_user_id_resolved (integer, required)

  • search_resolve_attempted (integer, required)

  • breadth_attempted (integer, required)

  • affiliation_resolved (integer, required)

  • affiliation_unknown (integer, required) – total_contributors minus affiliation_resolved.

  • enrichment_oldest_pending (string:date-time) – Absent when every contributor in the window is enriched.

  • enrichment_stalest (string:date-time) – Absent when no contributor in the window is enriched.

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/contributors/top
Operation:

repositoryTopContributors

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns a repository’s contributors ranked by commits, issues, pull requests, reviews and comments.

Events (labels, assignments, closes) do not count here. The window starts two years before the Monday (UTC) that starts the current week by default; an omitted until ends it at the latest plausible commit time (UTC midnight two days ahead), and a given until is never later than that bound. The envelope echoes the window in effect: until is the exclusive upper bound (the day after the requested until), or 0001-01-01T00:00:00Z when none was given.

The commits column reads the daily commit table once the repository’s picture is complete (repos.commit_daily_complete_at), each day’s author resolved by one rule — the stored identity while live, else the forge’s numeric user id, the login, then the house email rule — shared with the contributors and committers metrics of /metric-series. Decided and kept (0.29.137; Copilot’s PR #249 review, comment 2, declined): a day on which two distinct live identities authored commits under one email credits one of them or neither, never both.

Handler: handleTopContributors.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • since (string:date) – First UTC day of the window (YYYY-MM-DD, inclusive). A value that does not parse is a 400 (since 0.29.99; it fell back to the default before).

  • until (string:date) – Last UTC day of the window (YYYY-MM-DD, inclusive: the whole day counts). A value that does not parse is a 400 (since 0.29.99). A window whose since is not before until is a 400.

  • limit (integer) – Rows to return; values that are not positive integers mean the default, larger values are capped at 100.

  • bots (string) – hide leaves out automation accounts (bot account types, [bot] and …bot logins, the curated system accounts). Any other value shows them.

Response JSON Object:
  • since (string:date-time, required)

  • until (string:date-time, required)

  • limit (integer, required)

  • contributors[] (object)

  • contributors[].cntrb_id (string:uuid, required)

  • contributors[].login (string, required)

  • contributors[].full_name (string, required)

  • contributors[].activity_class (string, required)

  • contributors[].commits (integer, required) – Distinct commits authored in the window.

  • contributors[].issues (integer, required) – Issues opened.

  • contributors[].prs (integer, required) – Pull requests opened.

  • contributors[].reviews (integer, required) – Reviews submitted.

  • contributors[].comments (integer, required) – Issue, pull-request and inline review comments.

  • contributors[].total (integer, required) – The sum, and the ranking key.

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/contributors/elsewhere
Operation:

repositoryContributorsElsewhere

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the other repositories where a repository’s top contributors are active.

For the top contributors (same ranking as repositoryTopContributors), up to ten other repositories each from the contributors’ GitHub daily history. For an API token, collected repositories outside its owner’s groups are left out; repositories not collected here stay. Answers are cached for 60 seconds.

Handler: handleContributorsElsewhere.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • since (string:date) – First day of the window (YYYY-MM-DD); defaults to 180 days ago. A value that does not parse is a 400 (since 0.29.99).

  • limit (integer) – Contributors to return; values that are not positive integers mean the default, larger values are capped at 25.

  • bots (string) – hide leaves out automation accounts, as in repositoryTopContributors.

Response JSON Object:
  • since (string:date, required)

  • limit (integer, required)

  • contributors[] (object)

  • contributors[].cntrb_id (string:uuid, required)

  • contributors[].login (string, required)

  • contributors[].backfilled_at (['string', 'null']:date-time, required) – null while the history backfill has not reached this contributor: an empty elsewhere then means “pending”, not “nowhere else”. Automation accounts stay null by design.

  • contributors[].elsewhere[] (object)

  • contributors[].elsewhere[].repo_full_name (string, required)

  • contributors[].elsewhere[].repo_id (integer:int64) – Present only when the repository is collected on this instance.

  • contributors[].elsewhere[].active_days (integer, required)

  • contributors[].elsewhere[].commits (integer, required)

  • contributors[].elsewhere[].issues (integer, required)

  • contributors[].elsewhere[].prs (integer, required)

  • contributors[].elsewhere[].reviews (integer, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/contributors/{cntrbID}/activity
Operation:

contributorActivity

Access:

a signed-in session or an API token.

Returns one contributor’s monthly activity per repository and daily contribution totals.

Requires an identity but no repository scope: the history spans repositories this instance does not collect. For an API token, collected repositories outside its owner’s groups are left out. Answers are cached for 60 seconds.

Handler: handleContributorActivity.

Parameters:
  • cntrbID (string:uuid, required) – The contributor’s id (a UUID).

Query Parameters:
  • months (integer) – Months of history; values that are not positive integers mean the default, larger values are capped at 60.

  • bucket (string) – Only month is accepted (reserved for other granularities).

Response JSON Object:
  • cntrb_id (string:uuid, required)

  • login (string, required)

  • backfilled_at (['string', 'null']:date-time, required) – Same meaning as in ElsewhereContributor.

  • months (integer, required) – The window in months, after the cap.

  • repos[] (object)

  • repos[].repo_full_name (string, required)

  • repos[].repo_id (integer:int64) – Present only when the repository is collected on this instance.

  • repos[].months[] (object)

  • repos[].months[].month (string, required) – YYYY-MM.

  • repos[].months[].active_days (integer, required)

  • repos[].months[].commits (integer, required)

  • repos[].months[].issues (integer, required)

  • repos[].months[].prs (integer, required)

  • repos[].months[].reviews (integer, required)

  • day_totals[] (object)

  • day_totals[].day (string:date, required)

  • day_totals[].total (integer, required)

Status Codes:

Comparison

The metric catalog and the comparison of up to seven repositories or organizations.

GET /api/v1/metrics
Operation:

metricCatalog

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the comparison metric catalog.

The definitions behind GET /api/v1/compare and GET /api/v1/compare/snapshot, with what each improves on the CHAOSS metric it follows. Constant for a release; sent with Cache-Control: public, max-age=3600.

Handler: handleMetricsCatalog.

Response JSON Object:
  • branding (string, required)

  • metrics[] (object) – One metric of the comparison catalog (MetricDef).

  • metrics[].id (string, required) – The value to pass as metric.

  • metrics[].name (string, required)

  • metrics[].definition (string, required)

  • metrics[].unit (string, required)

  • metrics[].kind (string:enum, required) – temporal metrics are compared by GET /api/v1/compare, snapshot metrics by GET /api/v1/compare/snapshot.

  • metrics[].improves_on_chaoss (object, required)

  • metrics[].improves_on_chaoss.chaoss_url (string:uri, required)

  • metrics[].improves_on_chaoss.delta_note (string, required)

  • metrics[].our_reference_url (string:uri, required)

Status Codes:
Response Headers:
  • Cache-Control (string) – public, max-age=3600.

GET /api/v1/compare
Operation:

comparison

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns one temporal metric’s series for up to seven repositories or organizations.

Each entity’s series is densified (every bucket present) from the later of since and the entity’s first activity (data_start) to until, so series of one answer may differ in length: align them by bucket. An organization is the union of its collected repositories (at most 500).

Every entity must be readable by the caller. A signed-in session that names a collected entity outside its groups has the entity’s collected repositories added to its “Comparisons” group, and the answer lists that in added_to_group (such an answer is not cached). An API token is refused instead (403 entity_out_of_scope, with the way to add the entity). Every compared repository a signed-in caller may read is also recorded in its “Comparisons” group, silently.

Whole answers are cached for 60 seconds per caller and query (X-Cache: hit). No ETag is sent.

Cost: one aggregate per entity and metric over the window, each entity’s series reused while its repositories’ collection state is unchanged. A repository entity’s series is the repository-page cache’s answer of repositoryMetricSeries for the same parameters (since 0.29.121), shared with the repository page.

Handler: handleCompare.

Query Parameters:
  • metric (string:enum, required) – A temporal id from the metric catalog.

  • entities (string, required) – Comma-separated, at most 7: repo:<id> or org:<host>/<login>.

  • since (string:date) – First day (YYYY-MM-DD). Default: the bucket boundary three years before until’s bucket. Unlike the repository routes, a value that does not parse is a 400.

  • until (string:date) – A day (YYYY-MM-DD; default today, UTC), never later than the latest plausible commit time, then truncated to the start of its week or month. The window ends there, exclusive, so the series ends at the last complete bucket before that day. A value that does not parse is a 400.

  • bucket (string:enum)

  • retention_threshold (integer) – contributor_retention only. Contributions (over all collected history) that make a contributor “repeat” rather than “drive-by”.

Response JSON Object:
  • metric (object, required) – One metric of the comparison catalog (MetricDef).

  • metric.id (string, required) – The value to pass as metric.

  • metric.name (string, required)

  • metric.definition (string, required)

  • metric.unit (string, required)

  • metric.kind (string:enum, required) – temporal metrics are compared by GET /api/v1/compare, snapshot metrics by GET /api/v1/compare/snapshot.

  • metric.improves_on_chaoss (object, required)

  • metric.improves_on_chaoss.chaoss_url (string:uri, required)

  • metric.improves_on_chaoss.delta_note (string, required)

  • metric.our_reference_url (string:uri, required)

  • bucket (string:enum, required)

  • since (string:date, required) – The effective window start.

  • until (string:date, required) – The effective window end (exclusive bucket boundary).

  • series[] (object) – One entity’s series (compareSeries).

  • series[].entity (object, required) – A compared repository or organization, as parsed from entities (entity).

  • series[].entity.kind (string:enum, required)

  • series[].entity.repo_id (integer:int64) – repo entities only.

  • series[].entity.host (string) – org entities only.

  • series[].entity.login (string) – org entities only.

  • series[].entity.label (string, required) – owner/name for a repository, login (org) for an organization; the raw entity token when the lookup of labels failed.

  • series[].points[] (object) – One bucket of a series (db.WeeklyPoint).

  • series[].points[].bucket (string:date-time, required) – The bucket’s first instant (UTC); a Monday for week, the 1st for month.

  • series[].points[].value (number, required)

  • series[].parts (object) – contributor_retention only: the component series drive_by and repeat, whose sum is points.

  • series[].parts.{part}[] (object) – One bucket of a series (db.WeeklyPoint).

  • series[].parts.{part}[].bucket (string:date-time, required) – The bucket’s first instant (UTC); a Monday for week, the 1st for month.

  • series[].parts.{part}[].value (number, required)

  • series[].data_start (string:date) – The entity’s first dateable activity (first issue, change request, commit, or the forge’s creation date). Absent when it has none.

  • added_to_group[] (object) – A one-time notice that this request added an entity’s collected repositories to one of the caller’s groups.

  • added_to_group[].entity (string, required) – The entity’s label.

  • added_to_group[].group (string, required)

Status Codes:
Response Headers:
  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

GET /api/v1/compare/snapshot
Operation:

comparisonSnapshot

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns one snapshot metric’s current value for up to seven repositories or organizations.

The same entities and scope rules as GET /api/v1/compare (automatic addition for a session, refusal for an API token, added_to_group). Not cached.

Handler: handleCompareSnapshot.

Query Parameters:
  • metric (string:enum, required) – A snapshot id from the metric catalog.

  • entities (string, required) – Comma-separated, at most 7: repo:<id> or org:<host>/<login>.

Response JSON Object:
  • metric (object, required) – One metric of the comparison catalog (MetricDef).

  • metric.id (string, required) – The value to pass as metric.

  • metric.name (string, required)

  • metric.definition (string, required)

  • metric.unit (string, required)

  • metric.kind (string:enum, required) – temporal metrics are compared by GET /api/v1/compare, snapshot metrics by GET /api/v1/compare/snapshot.

  • metric.improves_on_chaoss (object, required)

  • metric.improves_on_chaoss.chaoss_url (string:uri, required)

  • metric.improves_on_chaoss.delta_note (string, required)

  • metric.our_reference_url (string:uri, required)

  • values[] (object) – One entity’s snapshot value (db.SnapshotValue with its entity).

  • values[].entity (object, required) – A compared repository or organization, as parsed from entities (entity).

  • values[].entity.kind (string:enum, required)

  • values[].entity.repo_id (integer:int64) – repo entities only.

  • values[].entity.host (string) – org entities only.

  • values[].entity.login (string) – org entities only.

  • values[].entity.label (string, required) – owner/name for a repository, login (org) for an organization; the raw entity token when the lookup of labels failed.

  • values[].value (number, required)

  • values[].as_of (string:date-time) – When the underlying scan ran; absent when unknown.

  • values[].detail (object) – Metric-specific companions (for example median_libyear, total_count, dev_count for upstream_dependencies).

  • added_to_group[] (object) – A one-time notice that this request added an entity’s collected repositories to one of the caller’s groups.

  • added_to_group[].entity (string, required) – The entity’s label.

  • added_to_group[].group (string, required)

Status Codes:
Operation:

entitySearchResults

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the repositories and organizations whose names match a query, for the comparison picker.

Up to 20 repositories (each classed in_scope, chartable now, or collected, which a session’s compare would add) and up to 10 organizations. When no repository matches and the query looks like a forge path or URL, uncollected carries one entry: the query, which is not collected yet. Empty lists are [].

Handler: handleEntitiesSearch.

Query Parameters:
  • q (string, required) – Case-insensitive text matched against repository name, owner and URL, and organization login.

Response JSON Object:
  • repos[] (object)

  • repos[].entity (string, required) – repo:<id>, ready for entities.

  • repos[].label (string, required) – owner/name.

  • repos[].class (string:enum, required)

  • orgs[] (object)

  • orgs[].entity (string, required) – org:<host>/<login>.

  • orgs[].label (string, required)

  • orgs[].repo_count (integer, required)

  • uncollected[] (object)

  • uncollected[].query (string, required)

  • uncollected[].class (string, required)

  • uncollected[].hint (string, required)

Status Codes:

Supply chain

Package-centred view of dependencies and advisories across repositories.

GET /api/v1/supply-chain/packages
Operation:

supplyChainPackages

Access:

a signed-in session or an API token.

Returns the packages with vulnerability findings across the caller’s repositories, one row per package.

The scope is the whole fleet for an administrator’s session without group (read from the refreshed supply-chain views), the caller’s groups for anyone else, or one group with group (computed live). Answers are cached for 60 seconds.

Handler: handleSupplyChainPackages.

Query Parameters:
  • group (integer:int64) – A group id the caller owns (any group for an administrator).

  • ecosystem (string) – Only this ecosystem (matched lower-cased).

  • q (string) – Literal substring of the package name.

  • sort (string:enum)

  • limit (integer) – Rows per page; values that are not positive mean 50, larger values are capped at 500.

  • offset (integer) – Rows to skip; negative means 0.

Response JSON Object:
  • scope (object, required)

  • scope.kind (string:enum, required) – fleet for an administrator without group; user (the caller’s groups) for anyone else; group with group.

  • scope.group_id (integer:int64)

  • scope.repos (integer, required) – Repositories in the scope (0 for fleet).

  • scope.source (string:enum, required) – matview reads the refreshed supply-chain views (fleet scope); live computes over the scope’s repositories.

  • total (integer, required) – Packages matching, across all pages.

  • packages[] (object)

  • packages[].ecosystem (string, required)

  • packages[].package_name (string, required)

  • packages[].cohort_repos (integer, required) – Repositories in scope with a finding on this package.

  • packages[].repos_unresolved (integer, required)

  • packages[].findings (integer, required)

  • packages[].findings_unresolved (integer, required)

  • packages[].pct_unresolved (number, required)

  • packages[].pct_transitive (number, required)

  • packages[].median_days_open (number, null, required)

  • packages[].worst_severity (string, required)

  • packages[].max_cvss (number, required)

  • packages[].n_advisories (integer, required)

  • packages[].distinct_versions_in_use (integer, required)

  • packages[].modal_version (string, required)

  • packages[].modal_version_share_pct (number, null, required)

  • packages[].lead_advisory (string, required)

  • packages[].lead_cve (string, required)

  • packages[].lead_severity (string, required)

  • packages[].lead_fixed_version (string, required)

  • packages[].lead_advisory_repos (integer, required)

  • packages[].repos_with_known_versions (integer, required)

  • sort (string, required) – The sort in effect.

  • generated_at (string:date-time, required)

Status Codes:
GET /api/v1/supply-chain/packages/{ecosystem}/{name}
Operation:

supplyChainPackage

Access:

a signed-in session or an API token.

Returns one package’s exposure, advisories, versions in use and affected repositories in the caller’s scope.

The scope rules of supplyChainPackages. name is the rest of the path and may contain slashes (Maven and Go names). Answers are cached for 60 seconds.

Cost: four queries over the scope’s findings on a cache miss.

Handler: handleSupplyChainPackage.

Parameters:
  • ecosystem (string, required) – The ecosystem (matched lower-cased).

  • name (string, required) – The package name; every remaining path segment.

Query Parameters:
  • group (integer:int64) – A group id the caller owns (any group for an administrator).

  • repos (integer) – Affected repositories to list; values that are not positive mean 50, larger values are capped at 500.

Response JSON Object:
  • scope (object, required)

  • scope.kind (string:enum, required) – fleet for an administrator without group; user (the caller’s groups) for anyone else; group with group.

  • scope.group_id (integer:int64)

  • scope.repos (integer, required) – Repositories in the scope (0 for fleet).

  • scope.source (string:enum, required) – matview reads the refreshed supply-chain views (fleet scope); live computes over the scope’s repositories.

  • package (object, required)

  • package.ecosystem (string, required)

  • package.package_name (string, required)

  • package.cohort_repos (integer, required) – Repositories in scope with a finding on this package.

  • package.repos_unresolved (integer, required)

  • package.findings (integer, required)

  • package.findings_unresolved (integer, required)

  • package.pct_unresolved (number, required)

  • package.pct_transitive (number, required)

  • package.median_days_open (number, null, required, required)

  • package.worst_severity (string, required)

  • package.max_cvss (number, required)

  • package.n_advisories (integer, required)

  • package.distinct_versions_in_use (integer, required)

  • package.modal_version (string, required)

  • package.modal_version_share_pct (number, null, required, required)

  • package.lead_advisory (string, required)

  • package.lead_cve (string, required)

  • package.lead_severity (string, required)

  • package.lead_fixed_version (string, required)

  • package.lead_advisory_repos (integer, required)

  • package.repos_with_known_versions (integer, required)

  • advisories[] (object)

  • advisories[].vuln_id (string, required)

  • advisories[].cve_id (string, required)

  • advisories[].severity (string, required)

  • advisories[].max_cvss (number, required)

  • advisories[].fixed_version (string, required)

  • advisories[].repos (integer, required)

  • advisories[].repos_unresolved (integer, required)

  • advisories[].first_seen (['string', 'null']:date-time, required)

  • advisories[].advisory_url (string, required) – The advisory’s OSV page.

  • advisories[].cve_url (string) – The CVE record; absent without a CVE id.

  • versions[] (object)

  • versions[].version (string, required)

  • versions[].repos (integer, required)

  • repos[] (object)

  • repos[].repo_id (integer:int64, required)

  • repos[].repo_owner (string, required)

  • repos[].repo_name (string, required)

  • repos[].findings_unresolved (integer, required)

  • repos[].transitive (boolean, required)

  • repos[].versions[] (string)

  • repos[].version_detail[] (object)

  • repos[].version_detail[].version (string, required)

  • repos[].version_detail[].findings_unresolved (integer, required)

  • repos[].version_detail[].lockfiles (integer, required) – Lockfiles in the repository’s current snapshot that resolve the package to this version; 0 is a real answer.

  • generated_at (string:date-time, required)

Status Codes:

Account

The signed-in caller’s identity, account e-mail and session.

GET /api/v1/me
Operation:

me

Access:

a signed-in session or an API token.

Returns the caller’s identity, account e-mail, role, scope size and fair-use numbers.

The identity fields and the account fields are best-effort: a failed lookup yields empty strings (logged), never an error. capacity is null when the store cannot answer. For an API token, capacity reports the token’s own allowances.

Handler: handleMe.

Response JSON Object:
  • user_id (integer, required)

  • login (string, required)

  • name (string, required)

  • avatar_url (string, required)

  • provider (string, required) – The forge of the account’s last sign-in (github, gitlab); empty when unknown.

  • email (string, required) – The confirmed account e-mail; empty when none.

  • email_pending (string, required) – An address waiting for its confirmation link; empty when none.

  • is_admin (boolean, required) – Always false for an API token.

  • capacity (object) – The caller’s fair-use numbers (meCapacity); request counts are this api process’s.

  • capacity.repos (object, required) – An account’s repository allocation (db.RepoAllocationStatus).

  • capacity.repos.used (integer, required) – Repositories across the account’s groups, additions waiting for approval included.

  • capacity.repos.allowed (integer, required)

  • capacity.repos.mode (string:enum, required) – enforce refuses past the value; shadow counts and logs but never refuses; off neither counts nor refuses.

  • capacity.repos.exempt (boolean, required) – True for an administrator, who is never refused.

  • capacity.repos.contact (string, required)

  • capacity.requests[] (object)

  • capacity.requests[].quota (string:enum, required)

  • capacity.requests[].window (string:enum, required)

  • capacity.requests[].used (integer, required)

  • capacity.requests[].allowed (integer, required)

  • capacity.requests[].mode (string:enum, required) – Quotas that are off are not listed.

  • capacity.requests[].reset_at (string:date-time, required)

  • capacity.contact (string, required) – The address heavy users may write to; empty when none.

  • scope_repo_count (integer, required) – How many repositories the caller may read; -1 for an administrator’s session (unscoped).

Status Codes:
GET /api/v1/me/sessions
Operation:

mySessions

Access:

a signed-in session; an API token is refused.

Returns the caller’s live sessions.

Every live session of the account (0.29.113, OWASP ASVS V7.5.2): the browser sessions of the web GUI (kind web), the tokens POST /api/v1/auth/token minted and the tokens the web process’s /api/ proxy holds (kind api; both are minted from a browser session: from_web_session is true while that session lives and false once it has expired, which the SPA’s 30-day token outlives). The session presenting this request is current. Operator-issued API tokens are not sessions and are not listed. A browser session idle past web.session_idle_minutes is not live and not listed. last_used_at moves, at most once a minute (every half bound when the bound is under two minutes), for kind web only; a token’s is its mint time.

Handler: handleMeSessions.

Response JSON Object:
  • sessions[] (object) – One live session of an account (0.29.113).

  • sessions[].kind (string:enum, required) – web is a browser session of the web GUI; api is a Bearer token.

  • sessions[].from_web_session (boolean, required) – The token’s browser session is still live (every kind api session is minted from one; false once it has expired, and for kind web).

  • sessions[].current (boolean, required) – This session presented the request.

  • sessions[].created_at (string:date-time, required) – When the session was signed in or the token minted.

  • sessions[].last_used_at (string:date-time, required) – A browser session’s last request, to the minute (created_at until its first); for kind api, the mint time.

  • sessions[].expires_at (string:date-time, required)

Status Codes:
Response Headers:
  • Cache-Control (string)

POST /api/v1/me/sessions/revoke
Operation:

revokeMySessions

Access:

a signed-in session; an API token is refused.

Ends every session of the caller’s account, this one included.

Deletes the account’s web sessions, /auth/token tokens and proxy tokens (0.29.113, OWASP ASVS V7.5.2): every other browser and client of the account is signed out at its next request, and this token’s next request is 401 too — the answer is the last one it gets. No body. Never refused by a spent request quota, and not counted (0.29.114), like sign-out.

Handler: handleMeSessionsRevoke.

Response JSON Object:
  • ok (boolean, required)

  • ended (integer, required) – Sessions and tokens deleted.

Status Codes:
POST /api/v1/me/email
Operation:

submitAccountEmail

Access:

a signed-in session; an API token is refused.

Stores an address as the account’s pending e-mail and mails its confirmation link.

The same submission the web process’s account page uses. A refusal the user can act on (not a deliverable address, mail not configured on this server, a failed save or send) is a 422 carrying the message the web form shows. Bodies over 4 KiB are refused.

Handler: handleMeEmail.

Request JSON Object:
  • email (string:email, required)

Response JSON Object:
  • sent (boolean, required)

Status Codes:
  • 200 OK – The confirmation link was mailed.

  • 400 Bad Request – The body is not the JSON object {"email": "…"}.

  • 401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.

  • 403 Forbidden – An operator-issued API token (error is a sentence saying an API token cannot change account settings), or a sign-in older than web.session_idle_minutes (since 0.29.113, OWASP ASVS V7.5.1: error is reauthentication_required and message says what to do — the recovery address changes only after a recent sign-in; every session token is judged by the sign-in of the browser session it was minted from, and a token whose browser session expired has none that counts).

  • 422 Unprocessable Entity – Nothing was mailed; message says why, in the words the web form uses.

  • 429 Too Many Requests – Refused by a rate limit; retry after Retry-After seconds. Shared response TooManyRequests.

  • 500 Internal Server Error – A server-side failure. Shared response ServerError.

  • 503 Service Unavailable – A presented token could not be checked (session lookup failed; try again), or this server runs without a store (accounts unavailable), or the request ran past http_timeout_seconds (plain text).

POST /api/v1/me/email/confirm
Operation:

confirmAccountEmail

Access:

a signed-in session; an API token is refused.

Confirms the account’s pending e-mail with the token from the mailed link.

The token must be live for the signed-in account. A token that is unknown, expired, already used or another account’s answers 200 with status invalid and changes nothing. A database failure is a 500 with status error; the link still works. token is not required: a body without it ({}) is read as an empty token and answers 200 with status invalid, like any other unknown token.

Handler: handleMeEmailConfirm.

Request JSON Object:
  • token (string) – The token from the confirmation link (surrounding whitespace is ignored).

Response JSON Object:
  • status (string:enum, required)

Status Codes:
POST /api/v1/auth/logout
Operation:

signOut

Access:

a signed-in session; an API token is refused.

Ends the presented session token.

Deletes the Bearer session token server-side. An already-invalid session token answers 204 too, unless api.require_auth is on, where the authentication layer answers 401 first. Another api process may accept the token for up to its 60-second authorization cache. Never refused by a spent session quota and not counted; an API token here is counted like any request and answered 400.

Handler: handleLogout.

Status Codes:

Home

The caller’s home lists.

GET /api/v1/home/new-repos
Operation:

newRepositories

Access:

a signed-in session or an API token.

Returns the repositories added to the fleet, and to the caller’s groups, in the last days.

Two lists of at most 200 each, newest first. fleet holds the repositories under organizations an administrator registered; mine the repositories under organizations the caller registered (a repository can be in both). Only collected, unarchived repositories under an organization of a group that was not rejected are listed: a repository added on its own, not through an organization, never appears. Answers are cached for 60 seconds per caller.

Handler: handleNewRepos.

Query Parameters:
  • days (integer) – How far back; values that are not positive integers mean the default, larger values are capped at 90.

Response JSON Object:
  • days (integer, required) – The window in effect.

  • fleet[] (object)

  • fleet[].repo_id (integer:int64, required)

  • fleet[].owner (string, required)

  • fleet[].name (string, required)

  • fleet[].org (string, required)

  • fleet[].added_at (string:date-time, required)

  • mine[] (object)

  • mine[].repo_id (integer:int64, required)

  • mine[].owner (string, required)

  • mine[].name (string, required)

  • mine[].org (string, required)

  • mine[].added_at (string:date-time, required)

Status Codes:
GET /api/v1/home/repos
Operation:

homeRepositories

Access:

a signed-in session or an API token.

Returns the caller’s home list, starred repositories first, then the most active of its groups.

Activity is issues and pull requests opened in the last 90 days (the queue’s cached figure). Cached per caller and limit for five minutes; an expired answer up to an hour old is served at once (X-Cache: stale) while one background refresh recomputes it.

Handler: handleHomeRepos.

Query Parameters:
  • limit (integer) – Rows; values below 1 read as 50, values above 100 as 100.

Response JSON Object:
  • repos[] (object) – A home-list row (db.HomeRepo).

  • repos[].repo_id (integer:int64, required)

  • repos[].owner (string, required)

  • repos[].name (string, required)

  • repos[].starred (boolean, required)

  • repos[].activity_90d (integer, required) – Issues and pull requests opened in the last 90 days.

Status Codes:
Response Headers:
  • X-Cache (string:enum) – hit (fresh), stale (expired, being refreshed) or miss (computed now).

Groups

The caller’s groups of repositories and organizations.

GET /api/v1/groups
Operation:

groups

Access:

a signed-in session or an API token.

Returns the caller’s groups.

Every group the account owns, whatever its status; status is approved when the store holds none.

Handler: handleGroupsList.

Response JSON Object:
  • groups[] (object) – One of the caller’s groups (groupJSON).

  • groups[].group_id (integer:int64, required)

  • groups[].name (string, required)

  • groups[].status (string:enum, required)

  • groups[].repo_count (integer, required)

  • groups[].favorited (boolean, required)

  • groups[].pending_adds (integer, required) – Additions waiting for approval.

Status Codes:
POST /api/v1/groups
Operation:

createGroup

Access:

a signed-in session or an API token.

Creates a group owned by the caller.

Groups are born approved; approval applies to each addition, not to the group. The name is trimmed and at most 200 characters; the body at most 4 KiB.

Handler: handleGroupCreate.

Request JSON Object:
  • name (string, required)

Response JSON Object:
  • group_id (integer:int64, required)

Status Codes:
GET /api/v1/groups/{groupID}/repos
Operation:

groupRepositories

Access:

a signed-in session or an API token.

Returns one page of a group’s repositories.

Counts are the collection queue’s cached totals. sort is checked against an allowlist (unknown keys fall back to name), and the envelope echoes the sort and direction actually applied. An administrator may read any group.

Handler: handleGroupRepos.

Parameters:
  • groupID (integer:int64, required) – A group’s id.

Query Parameters:
  • page (integer) – 1-based page; values below 1 read as 1.

  • page_size (integer) – Rows per page; values below 1 read as 50, values above 100 as 100.

  • sort (string) – Sort key from the collection-listing allowlist; anything else sorts by name.

  • dir (string) – desc (any case) for descending; anything else is ascending.

Response JSON Object:
  • repos[] (object) – A repository row of a group listing (db.PortalGroupRepo).

  • repos[].repo_id (integer:int64, required)

  • repos[].owner (string, required)

  • repos[].name (string, required)

  • repos[].git_url (string, required)

  • repos[].issues (integer:int64, required) – The collection queue’s cached gathered count.

  • repos[].prs (integer:int64, required)

  • repos[].commits (integer:int64, required)

  • repos[].last_collected (string:date-time)

  • repos[].last_activity (string:date-time) – The forge-reported last activity.

  • repos[].starred (boolean, required) – Whether the caller starred it.

  • total (integer, required)

  • page (integer, required)

  • page_size (integer, required)

  • sort (string, required) – The sort key applied.

  • dir (string, required) – asc or desc: the direction applied (0.29.100; a DESC sent is echoed as desc).

Status Codes:
POST /api/v1/groups/{groupID}/repos
Operation:

addRepositoriesToGroup

Access:

a signed-in session or an API token.

Adds repositories, or one organization, to one of the caller’s groups.

kind repo (the default) adds urls (or the single url, used only when urls holds no non-empty entry): at most 1,000 per request, all in one step. Repositories already tracked are linked at once (linked); an administrator’s new repositories are queued for collection (enqueued); a non-administrator’s new ones wait for approval as one add request (pending_approval, request_id), unless they fit under web.auto_approve_add_limit.

kind org registers one organization (one URL per request). An administrator’s registration, or one of an organization already tracked elsewhere, answers registered: 1; otherwise the registration waits for approval (pending_approval: 1, request_id). The organization’s repositories are linked later, by the scheduler’s organization scan. A GitHub organization must be on this deployment’s GitHub host, and a GitLab group on its configured GitLab instance (gitlab.base_url).

Every line is parsed as a repository URL first (a missing scheme is supplied; GitHub, GitLab and any git host are accepted): a line that is not one is reported in invalid and skipped, the rest go through; a paste with no usable line is a 400.

An add that does not fit the account’s repository allocation (403) or its daily additions (429, quota repo_links_per_day, until 00:00 UTC) adds nothing and is refused with the capacity_limit body. A group that is not the caller’s is a 404; one an administrator rejected is a 409. A 500 naming how many repositories could not be added means some URLs failed while the others were added: send them again. The body is bounded (1,000 URLs at the store’s URL length).

Handler: handleGroupAddRepo.

Parameters:
  • groupID (integer:int64, required) – A group’s id.

Request JSON Object:
  • url (string) – One URL; ignored when urls holds a non-empty entry.

  • urls[] (string)

  • kind (string:enum) – Any value other than org adds repositories.

Response JSON Object:
  • ok (boolean, required)

  • submitted (integer, required) – The non-blank URLs received.

  • linked (integer) – Repositories only. Already-tracked repositories linked into the group.

  • enqueued (integer) – Repositories only. New repositories queued for collection.

  • pending_approval (integer) – Items waiting for an administrator (an organization counts 1).

  • request_id (integer:int64) – The add request holding the waiting items.

  • invalid[] (string)

  • registered (integer) – Organizations only. Tracking is registered now.

Status Codes:
  • 200 OK – What happened. For repositories: linked, enqueued, and when approval is needed pending_approval and request_id. For an organization: registered: 1, or pending_approval: 1 with request_id.

  • 400 Bad Request – The body is malformed or names no URL; no line of the paste is a repository URL; more than 1,000 URLs; more than one organization; a group id that is not an integer; an organization not on this deployment’s GitHub host or GitLab instance; a URL that is too long, carries credentials or was refused by the database.

  • 401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.

  • 403 Forbidden – The add would exceed the account’s repository allocation (capacity_limit, kind allocation). Nothing was written.

  • 404 Not Found – No group of the caller’s has that id (no group of yours with that id).

  • 409 Conflict – An administrator rejected the group; it takes no additions.

  • 429 Too Many Requests – Refused by a rate limit; retry after Retry-After seconds. Shared response TooManyRequests.

  • 500 Internal Server Error – JSON error add request <id>: <f> of <n> repositories could not be added; try adding them again (f of the n URLs failed, the rest were added), or the generic server failure as plain text (internal error; try again; the cause is in the api log).

  • 503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.

GET /api/v1/groups/{groupID}/orgs
Operation:

groupOrganizations

Access:

a signed-in session or an API token.

Returns the organizations tracked in a group.

Read-only; registration is POST /api/v1/groups/{groupID}/repos with kind org. An administrator may read any group.

Handler: handleGroupOrgs.

Parameters:
  • groupID (integer:int64, required) – A group’s id.

Response JSON Object:
  • orgs[] (object)

  • orgs[].org_request_id (integer:int64, required)

  • orgs[].url (string, required)

  • orgs[].name (string, required)

  • orgs[].platform (string, required)

  • orgs[].last_scanned (string:date-time) – Absent until the organization’s first scan.

Status Codes:
GET /api/v1/groups/{groupID}/pending-adds
Operation:

groupPendingAdditions

Access:

a signed-in session or an API token.

Returns a group’s additions waiting for approval.

One row per waiting item (repository URL or organization). An administrator may read any group.

Handler: handleGroupPendingAdds.

Parameters:
  • groupID (integer:int64, required) – A group’s id.

Response JSON Object:
  • pending[] (object)

  • pending[].request_id (integer:int64, required)

  • pending[].kind (string:enum, required)

  • pending[].url (string, required)

  • pending[].created_at (string:date-time, required)

Status Codes:
POST /api/v1/groups/{groupID}/repos/{repoID}/remove
Operation:

removeRepositoryFromGroup

Access:

a signed-in session or an API token.

Removes a repository from one of the caller’s groups.

How an account makes room under its repository allocation. Removing does not give back the day’s addition (repo_links_per_day), and a group that tracks an organization gets that organization’s repositories linked back by the next scan.

Handler: handleGroupRemoveRepo.

Parameters:
  • groupID (integer:int64, required) – A group’s id.

  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • group_id (integer:int64, required)

  • repo_id (integer:int64, required)

  • removed (boolean, required)

Status Codes:

Collections

Administrator-curated groups of groups, readable by every signed-in caller.

GET /api/v1/collections
Operation:

collections

Access:

a signed-in session or an API token.

Returns every collection, with the caller’s stars.

Collections are administrator-curated groups of groups, readable by every signed-in caller.

Handler: handleCollectionsList.

Response JSON Object:
  • collections[] (object) – One collection in the list (db.CollectionSummary).

  • collections[].collection_id (integer:int64, required)

  • collections[].name (string, required)

  • collections[].description (string, required)

  • collections[].position (integer, required) – The administrator’s ordering key.

  • collections[].groups (integer, required) – How many groups the collection holds.

  • collections[].repos (integer, required) – How many distinct repositories its groups hold.

  • collections[].starred (boolean, required) – Whether the caller starred it.

  • collections[].created_at (string:date-time, required)

Status Codes:
GET /api/v1/collections/{collectionID}
Operation:

collection

Access:

a signed-in session or an API token.

Returns a collection’s member groups and one page of its distinct repositories.

The counts are the collection queue’s cached totals. The envelope echoes the effective page, size, sort and direction (an unknown sort falls back to name). An id with no collection answers 200 with empty groups and repos.

Handler: handleCollectionDetail.

Parameters:
  • collectionID (integer:int64, required) – A collection’s id.

Query Parameters:
  • page (integer) – 1-based page; values below 1 read as 1.

  • page_size (integer) – Rows per page; values below 1 read as 50, values above 100 as 100.

  • sort (string) – Sort key from the collection-listing allowlist (name, issues, prs, commits, collected, activity); anything else sorts by name.

  • dir (string) – desc (any case) for descending; anything else is ascending.

Response JSON Object:
  • collection_id (integer:int64, required)

  • groups[] (object) – One member group of a collection (db.CollectionGroup).

  • groups[].group_id (integer:int64, required)

  • groups[].name (string, required)

  • groups[].repos (integer, required)

  • repos[] (object) – One distinct repository of a collection (db.CollectionRepo). The counts are the collection queue’s cached totals.

  • repos[].repo_id (integer:int64, required)

  • repos[].owner (string, required)

  • repos[].name (string, required)

  • repos[].git_url (string, required)

  • repos[].issues (integer:int64, required)

  • repos[].prs (integer:int64, required)

  • repos[].commits (integer:int64, required)

  • repos[].last_collected (string:date-time) – Absent when never collected.

  • repos[].last_activity (string:date-time) – The forge’s last-updated time from the latest metadata snapshot; absent when none.

  • repos[].starred (boolean, required)

  • total (integer, required) – Distinct repositories in the collection.

  • page (integer, required)

  • page_size (integer, required)

  • sort (string, required)

  • dir (string, required) – asc or desc: the direction applied (0.29.100; a DESC sent is echoed as desc).

Status Codes:
POST /api/v1/collections/{collectionID}/copy
Operation:

copyCollectionToGroup

Access:

a signed-in session or an API token.

Links every repository of a collection into one of the caller’s groups.

Names the target by group_id or, when that is absent or 0, by group_name (found or created). The copy fits the caller’s repository allocation (else 403) and its daily additions (else 429, quota repo_links_per_day), or adds nothing. An id with no collection adds nothing (added 0).

Handler: handleCollectionCopy.

Parameters:
  • collectionID (integer:int64, required) – A collection’s id.

Request JSON Object:
  • group_id (integer:int64) – One of the caller’s groups.

  • group_name (string) – Used when group_id is absent or 0.

Response JSON Object:
  • added (integer:int64, required)

  • group_id (integer:int64, required)

Status Codes:
PUT /api/v1/collections/{collectionID}/star
Operation:

starCollection

Access:

a signed-in session or an API token.

Stars a collection for the caller.

Stars only order the caller’s list. Starring twice is a no-op.

Handler: handleStarCollection.

Parameters:
  • collectionID (integer:int64, required) – A collection’s id.

Response JSON Object:
  • ok (boolean, required)

  • starred (boolean, required) – The collection’s star state for the caller after the request.

Status Codes:
DELETE /api/v1/collections/{collectionID}/star
Operation:

unstarCollection

Access:

a signed-in session or an API token.

Removes the caller’s star from a collection.

Removing a star that is not there is a no-op (200), also for an id with no collection.

Handler: handleStarCollection.

Parameters:
  • collectionID (integer:int64, required) – A collection’s id.

Response JSON Object:
  • ok (boolean, required)

  • starred (boolean, required) – The collection’s star state for the caller after the request.

Status Codes:

Admin users and groups

Account roles and group approvals. Administrator sessions only.

GET /api/v1/admin/users
Operation:

users

Access:

an administrator’s signed-in session.

Returns every account.

Handler: handleAdminUsers.

Response JSON Object:
  • users[] (object)

  • users[].user_id (integer, required)

  • users[].login (string, required)

  • users[].email (string, required)

  • users[].provider (string, required)

  • users[].is_admin (boolean, required)

  • users[].created_at (string:date-time, required)

  • users[].last_seen (string:date-time, required) – The last sign-in.

Status Codes:
POST /api/v1/admin/users/{userID}/sessions/revoke
Operation:

revokeUserSessions

Access:

an administrator’s signed-in session.

Ends every session of an account.

An administrator’s answer to a lost device or a suspected account takeover (0.29.113, OWASP ASVS V7.4.5): the account’s web sessions, /auth/token tokens and proxy tokens are deleted, and each is 401 at its next request. Operator-issued API tokens are not touched (revoke those on the API-tokens page). An administrator may end its own account’s sessions this way. The action is logged. No body.

Handler: handleAdminUserSessionsRevoke.

Parameters:
  • userID (integer, required) – An account’s id.

Response JSON Object:
  • ok (boolean, required)

  • ended (integer, required) – Sessions and tokens deleted.

Status Codes:
POST /api/v1/admin/users/{userID}/admin
Operation:

setAdministrator

Access:

an administrator’s signed-in session.

Promotes an account to administrator or demotes it.

An administrator cannot demote itself, and the last administrator is never demoted. The change applies to the account’s next request in this process.

Handler: handleAdminSetUserAdmin.

Parameters:
  • userID (integer, required) – An account’s id.

Request JSON Object:
  • admin (boolean) – Omitted reads as false, so {} demotes the account.

Response JSON Object:
  • ok (boolean, required)

Status Codes:
POST /api/v1/admin/groups/{groupID}/reject
Operation:

rejectGroup

Access:

an administrator’s signed-in session.

Rejects a group.

The group-level abuse lever (v0.27.20): a rejected group takes no further additions and its organizations stop being listed; its repositories stay. Works on any group. The legacy approve arm and GET /admin/groups/pending are gone since 0.29.100 (groups are born approved; the additions queue, /admin/add-requests, is the approval unit).

Handler: handleAdminGroupReject.

Parameters:
  • groupID (integer:int64, required) – A group’s id.

Response JSON Object:
  • ok (boolean, required)

Status Codes:

Admin add requests

Repository and organization additions waiting for approval. Administrator sessions only.

GET /api/v1/admin/add-requests
Operation:

pendingAddRequests

Access:

an administrator’s signed-in session.

Returns the additions waiting for approval.

Handler: handleAdminAddRequests.

Response JSON Object:
  • pending[] (object)

  • pending[].request_id (integer:int64, required)

  • pending[].user_id (integer, required)

  • pending[].user_login (string, required)

  • pending[].user_email (string, required)

  • pending[].group_id (integer:int64, required)

  • pending[].group_name (string, required)

  • pending[].kind (string:enum, required)

  • pending[].org_url (string) – Organizations only.

  • pending[].item_count (integer, required)

  • pending[].sample_urls[] (string)

  • pending[].created_at (string:date-time, required)

Status Codes:
POST /api/v1/admin/add-requests/{requestID}/{decision}
Operation:

decideAddRequest

Access:

an administrator’s signed-in session.

Approves or rejects an add request.

An approved repository request is processed in the background (repositories created, queued and linked); approving it again resumes an interrupted pass. An approved organization request registers tracking; the scheduler’s next organization scan links its repositories. A request already decided keeps its decision: deciding it again, in either direction, answers changed: false and changes nothing, except that approving an approved request again resumes an interrupted repository pass, or registers an organization whose registration an older release lost (then changed: true). The requester is mailed when the decision changed.

Handler: handleAdminAddRequestDecision.

Parameters:
  • requestID (integer:int64, required)

  • decision (string:enum, required)

Response JSON Object:
  • ok (boolean, required)

  • changed (boolean, required)

Status Codes:

Admin monitor

The collection queue and its statistics. Administrator sessions only.

GET /api/v1/admin/monitor/stats
Operation:

queueStats

Access:

an administrator’s signed-in session.

Returns the collection queue’s row counts by status.

Always carries queued, collecting, draining and total, plus any other status present. draining counts rows parked by the staging drain or heal-collection-gaps; they hold no worker.

Handler: handleAdminMonitorStats.

Response JSON Object:
  • queue (object, required)

  • queue.queued (integer, required)

  • queue.collecting (integer, required)

  • queue.draining (integer, required)

  • queue.total (integer, required)

  • queue.{status} (integer) – One entry per {status}.

Status Codes:
GET /api/v1/admin/monitor/queue
Operation:

queuePage

Access:

an administrator’s signed-in session.

Returns one page of 100 collection-queue rows.

Each row carries the queue’s cached gathered counts and the latest metadata counts. sort is checked against an allowlist; an unknown key uses the default order (collecting first) and the envelope then echoes empty sort and dir. A row whose repository name cannot be read is labelled with its id.

Handler: handleAdminMonitorQueue.

Query Parameters:
  • page (integer) – 1-based page; values below 1 read as 1.

  • page_size (integer) – Rows per page, at most 100 (since 0.29.109; earlier releases always answered 100).

  • q (string) – Filter on the repository.

  • sort (string) – Sort key from the queue allowlist.

  • dir (string) – desc (any case) for descending; anything else is ascending. Ignored when sort is not an allowlisted key.

Response JSON Object:
  • jobs[] (object)

  • jobs[].repo_id (integer:int64, required)

  • jobs[].repo (string, required) – owner/name, or the id when the name could not be read.

  • jobs[].status (string, required)

  • jobs[].priority (integer, required)

  • jobs[].due_at (string:date-time, required)

  • jobs[].last_collected (string:date-time)

  • jobs[].last_error (string)

  • jobs[].issues (integer, required)

  • jobs[].prs (integer, required)

  • jobs[].commits (integer, required)

  • jobs[].meta_issues (integer, required)

  • jobs[].meta_prs (integer, required)

  • jobs[].meta_commits (integer, required)

  • total (integer, required)

  • page (integer, required)

  • page_size (integer, required) – The page size applied (the request’s, at most 100; 100 when none was given).

  • sort (string, required) – The sort key applied; empty for the default order.

  • dir (string:enum, required)

  • warnings[] (string)

Status Codes:
GET /api/v1/admin/cache
Operation:

adminCacheSummary

Access:

an administrator’s signed-in session.

Returns what the api process’s caches hold and did since it started.

The repository-page cache’s budget, size and counters (hits served stored bodies, revalidations answered 304, misses computed the answer, stores kept one, evictions dropped one for the budget — or, with no budget, for the 1,000-answer bound of its pool; the re-warm’s own replays are counted with visitors’), the re-warm’s interval, its last pass and the size of its saved list, the comparison series cache’s size, hits, misses and whole-map resets, and the comparison answer cache’s size. The caches live in this process’s memory: with several api processes each answers for itself, and only the one that owns the saved re-warm list (the first to start; 0.29.124) reports a saved list. Read-only. Since 0.29.123.

Handler: handleAdminCache.

Response JSON Object:
  • page_cache (object)

  • page_cache.max_bytes (integer:int64, required) – api.response_cache_mb in bytes; 0 keeps only the time series and top contributors (at most 1,000 answers) and the metric series (at most another 1,000).

  • page_cache.bytes (integer:int64, required)

  • page_cache.entries (integer, required)

  • page_cache.repositories (integer, required)

  • page_cache.saved_requests (integer, required) – Requests loaded from the saved re-warm list at start and not yet replayed.

  • page_cache.hits (integer:int64, required)

  • page_cache.revalidated (integer:int64, required)

  • page_cache.misses (integer:int64, required)

  • page_cache.stores (integer:int64, required)

  • page_cache.evictions (integer:int64, required)

  • rewarm (object, required)

  • rewarm.interval_seconds (integer:int64, required) – api.cache_rewarm_seconds in effect; 0 is off.

  • rewarm.saved_requests (integer, required) – Rows of the saved re-warm list as this process last saved or loaded them; 0 on a process that does not own the list (another api process claimed it first, 0.29.124).

  • rewarm.last_pass_at (string:date-time)

  • rewarm.last_pass_repositories (integer)

  • rewarm.last_pass_requests (integer)

  • rewarm.last_pass_duration_ms (integer:int64)

  • series_cache (object)

  • series_cache.entries (integer, required)

  • series_cache.max_entries (integer, required)

  • series_cache.hits (integer:int64, required)

  • series_cache.misses (integer:int64, required)

  • series_cache.resets (integer:int64, required) – Times the map was cleared on reaching max_entries.

  • compare_body_cache (object)

  • compare_body_cache.entries (integer, required)

Status Codes:
GET /api/v1/admin/cache/repos
Operation:

adminCacheRepositories

Access:

an administrator’s signed-in session.

Returns the repositories with answers in the repository-page cache, at most 100.

One row per repository with held answers or saved requests, sorted by sort (an unknown key sorts by bytes, and sort in the answer is the key applied), ties by id. total counts every such repository. Read-only. Since 0.29.123.

Handler: handleAdminCacheRepos.

Query Parameters:
  • sort (string:enum)

Response JSON Object:
  • sort (string:enum, required)

  • total (integer, required)

  • repositories[] (object)

  • repositories[].repo_id (integer:int64, required)

  • repositories[].entries (integer, required)

  • repositories[].bytes (integer:int64, required)

  • repositories[].hits (integer, required) – Times its held answers were served from the cache.

  • repositories[].saved_requests (integer, required)

Status Codes:
GET /api/v1/admin/cache/repos/{repoID}
Operation:

adminCacheRepository

Access:

an administrator’s signed-in session.

Returns one repository’s answers in the repository-page cache, each current or why not.

Each held answer with its request, when it was computed, what it cost, how often it was served and its size, and status: current, or outdated: and the reason (the repository changed, its window moved, or the request is no longer a cached one) — the re-warm’s own rule. Also the saved requests not yet replayed. Read-only. Since 0.29.123.

Handler: handleAdminCacheRepo.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • repo_id (integer:int64, required)

  • collecting (boolean, required)

  • answers[] (object)

  • answers[].uri (string, required)

  • answers[].computed_at (string:date-time, required)

  • answers[].cost_ms (integer:int64, required)

  • answers[].hits (integer, required)

  • answers[].bytes (integer:int64, required)

  • answers[].status (string, required)

  • saved_requests[] (string)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

POST /api/v1/admin/monitor/queue/{repoID}/prioritize
Operation:

prioritizeRepository

Access:

an administrator’s signed-in session.

Moves a repository to the front of the collection queue.

Sets priority 0, due now, and status queued.

Handler: handleAdminPrioritizeRepo.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • ok (boolean, required)

  • repo_id (integer:int64, required)

Status Codes:

Admin collections

Creating and changing collections. Administrator sessions only.

POST /api/v1/admin/collections
Operation:

createCollection

Access:

an administrator’s signed-in session.

Creates a collection.

Collection names are unique; a name already taken is answered 500 (the constraint error is not mapped to 409).

Handler: handleAdminCollectionCreate.

Request JSON Object:
  • name (string, required) – Unique among collections; not empty.

  • description (string)

  • position (integer) – The ordering key (lower first).

Response JSON Object:
  • collection_id (integer:int64, required)

Status Codes:
POST /api/v1/admin/collections/{collectionID}
Operation:

updateCollection

Access:

an administrator’s signed-in session.

Replaces a collection’s name, description and position.

Every field is written: an omitted description or position becomes empty or 0. An id with no collection is answered 500.

Handler: handleAdminCollectionUpdate.

Parameters:
  • collectionID (integer:int64, required) – A collection’s id.

Request JSON Object:
  • name (string, required) – Unique among collections; not empty.

  • description (string)

  • position (integer) – The ordering key (lower first).

Response JSON Object:
  • ok (boolean, required)

Status Codes:
POST /api/v1/admin/collections/{collectionID}/delete
Operation:

deleteCollection

Access:

an administrator’s signed-in session.

Deletes a collection (its member groups are left as they are).

Deleting an id with no collection is a no-op (200).

Handler: handleAdminCollectionDelete.

Parameters:
  • collectionID (integer:int64, required) – A collection’s id.

Response JSON Object:
  • ok (boolean, required)

Status Codes:
POST /api/v1/admin/collections/{collectionID}/groups
Operation:

addGroupToCollection

Access:

an administrator’s signed-in session.

Adds an administrator-owned group to a collection.

Adding a group already in the collection is a no-op. A group id that does not exist, or a collection id that does not exist, is answered 500.

Handler: handleAdminCollectionAddGroup.

Parameters:
  • collectionID (integer:int64, required) – A collection’s id.

Request JSON Object:
  • group_id (integer:int64, required)

Response JSON Object:
  • ok (boolean, required)

Status Codes:
POST /api/v1/admin/collections/{collectionID}/groups/{groupID}/remove
Operation:

removeGroupFromCollection

Access:

an administrator’s signed-in session.

Removes a group from a collection.

Removing a group that is not in the collection is a no-op (200).

Handler: handleAdminCollectionRemoveGroup.

Parameters:
  • collectionID (integer:int64, required) – A collection’s id.

  • groupID (integer:int64, required) – A group’s id.

Response JSON Object:
  • ok (boolean, required)

Status Codes:

Admin API tokens

Operator-issued API tokens and their defaults. Administrator sessions only.

GET /api/v1/admin/api-tokens
Operation:

apiTokens

Access:

an administrator’s signed-in session.

Returns every granted API token, newest first, with the grant defaults.

Never carries a token or its hash: only the hash is stored.

Handler: handleAdminAPITokens.

Response JSON Object:
  • tokens[] (object) – A granted API token, without the token or its hash (db.APIToken).

  • tokens[].token_id (integer:int64, required)

  • tokens[].user_id (integer, required) – The account the token authenticates as.

  • tokens[].owner_login (string, required)

  • tokens[].label (string, required)

  • tokens[].created_by (integer, required)

  • tokens[].created_by_login (string, required)

  • tokens[].created_at (string:date-time, required)

  • tokens[].expires_at (string:date-time, required)

  • tokens[].rate_limit_per_hour (integer, required)

  • tokens[].rate_limit_per_day (integer, required)

  • tokens[].last_used_at (['string', 'null']:date-time, required)

  • tokens[].revoked_at (['string', 'null']:date-time, required)

  • settings (object, required) – The defaults a grant offers (db.APITokenSettings). The allowances are the token_requests_per_hour and token_requests_per_day quotas.

  • settings.default_rate_limit_per_hour (integer, required)

  • settings.default_rate_limit_per_day (integer, required)

  • settings.default_lifetime_days (integer, required)

  • settings.updated_by (integer, required) – The administrator who last changed the lifetime; 0 when never changed.

  • settings.updated_at (string:date-time, required)

Status Codes:
POST /api/v1/admin/api-tokens
Operation:

grantAPIToken

Access:

an administrator’s signed-in session.

Grants an API token to an account.

The answer is the only time the token is shown; it is sent Cache-Control: private, no-store. A token’s allowances are fixed when it is granted. Body limit 64 KiB.

Handler: handleAdminAPITokenGrant.

Request JSON Object:
  • user_id (integer, required) – The account the token authenticates as. A value above 2,147,483,647 is not refused as a 400; it currently fails as a 500.

  • label (string, required) – Who or what the token is for. Not blank; at most 200 characters after trimming.

  • lifetime_days (integer) – Default default_lifetime_days.

  • rate_limit_per_hour (integer) – Default default_rate_limit_per_hour.

  • rate_limit_per_day (integer) – Default default_rate_limit_per_day.

Response JSON Object:
  • token (string, required) – The API token (avx_…). Shown once.

  • token_id (integer:int64, required)

  • user_id (integer, required)

  • label (string, required)

  • created_at (string:date-time, required)

  • expires_at (string:date-time, required)

  • rate_limit_per_hour (integer, required)

  • rate_limit_per_day (integer, required)

Status Codes:
Response Headers:
  • Cache-Control (string) – private, no-store.

POST /api/v1/admin/api-tokens/{tokenID}/revoke
Operation:

revokeAPIToken

Access:

an administrator’s signed-in session.

Revokes an API token.

The token stops working on its next call to any api process (every API-token call rechecks it). Revoking a revoked token is a no-op.

Handler: handleAdminAPITokenRevoke.

Parameters:
  • tokenID (integer:int64, required)

Response JSON Object:
  • token_id (integer:int64, required)

  • revoked (boolean, required)

Status Codes:
GET /api/v1/admin/api-token-settings
Operation:

apiTokenSettings

Access:

an administrator’s signed-in session.

Returns the defaults an API-token grant offers.

Handler: handleAdminAPITokenSettings.

Response JSON Object:
  • default_rate_limit_per_hour (integer, required)

  • default_rate_limit_per_day (integer, required)

  • default_lifetime_days (integer, required)

  • updated_by (integer, required) – The administrator who last changed the lifetime; 0 when never changed.

  • updated_at (string:date-time, required)

Status Codes:
POST /api/v1/admin/api-token-settings
Operation:

updateAPITokenSettings

Access:

an administrator’s signed-in session.

Changes the defaults an API-token grant offers.

The allowances are the token_requests_per_hour and token_requests_per_day quotas. Changing the value of one that aveloxis.json sets is refused with 409; sending its current value (or omitting the daily one) is accepted. An omitted daily value is left unchanged. Tokens already granted keep their allowances. Body limit 64 KiB.

Handler: handleAdminAPITokenSettingsUpdate.

Request JSON Object:
  • default_rate_limit_per_hour (integer, required)

  • default_rate_limit_per_day (integer)

  • default_lifetime_days (integer, required)

Response JSON Object:
  • default_rate_limit_per_hour (integer, required)

  • default_rate_limit_per_day (integer, required)

  • default_lifetime_days (integer, required)

Status Codes:

Admin capacity

The fair-use quotas and per-account overrides. Administrator sessions only.

GET /api/v1/admin/capacity
Operation:

capacityOverview

Access:

an administrator’s signed-in session.

Returns every quota as applied, the refusal contact, sign-ups, the sign-up allowlist, overridden accounts and today’s busiest accounts.

quotas lists every quota in name order. signups_per_day covers the last 30 UTC days (null when there were none). busiest_today holds at most 25 accounts, by saved session requests.

Handler: handleAdminCapacity.

Response JSON Object:
  • quotas[] (object) – A quota as applied (capacity.EffectiveQuota).

  • quotas[].name (string:enum, required)

  • quotas[].allowed (integer, required)

  • quotas[].mode (string:enum, required) – enforce refuses past the value; shadow counts and logs but never refuses; off neither counts nor refuses.

  • quotas[].source (string:enum, required) – The aveloxis.json word for this quota. Only WEB quotas are set on the Capacity page.

  • quotas[].editable (boolean, required)

  • contact_email (string, required) – The address refusals name; empty when none is offered.

  • signups_per_day[] (object) – New accounts on one UTC day (db.SignupDay).

  • signups_per_day[].day (string:date-time, required)

  • signups_per_day[].accounts (integer, required)

  • signup_allowlist[] (object) – A network exempt from the sign-up quota (db.SignupAllowlistEntry).

  • signup_allowlist[].cidr (string, required) – Stored normalised (192.0.2.0/24).

  • signup_allowlist[].note (string, required)

  • signup_allowlist[].added_by (integer, null, required)

  • signup_allowlist[].added_at (string:date-time, required)

  • overrides[] (object) – One account’s capacity figures (db.CapacityAccount).

  • overrides[].user_id (integer, required)

  • overrides[].login (string, required)

  • overrides[].provider (string, required) – The forge of the account’s last sign-in (an empty legacy value reads as GitHub).

  • overrides[].gitlab_host (string) – A GitLab account’s instance.

  • overrides[].admin (boolean, required)

  • overrides[].override (object, required) – One account’s own values (db.CapacityOverride). null means the quota’s value.

  • overrides[].override.user_id (integer, required)

  • overrides[].override.repos_allowed (integer, null, required)

  • overrides[].override.requests_per_hour (integer, null, required)

  • overrides[].override.requests_per_day (integer, null, required)

  • overrides[].override.links_per_day (integer, null, required)

  • overrides[].override.note (string, required)

  • overrides[].override.updated_at (string:date-time, required)

  • overrides[].override.updated_by (integer, null, required)

  • overrides[].repos (object, required) – An account’s repository allocation (db.RepoAllocationStatus).

  • overrides[].repos.used (integer, required) – Repositories across the account’s groups, additions waiting for approval included.

  • overrides[].repos.allowed (integer, required)

  • overrides[].repos.mode (string:enum, required) – enforce refuses past the value; shadow counts and logs but never refuses; off neither counts nor refuses.

  • overrides[].repos.exempt (boolean, required) – True for an administrator, who is never refused.

  • overrides[].repos.contact (string, required)

  • overrides[].requests_today (integer:int64, required) – Session requests saved today by the api processes (at most one save period, about a minute, behind).

  • busiest_today[] (object) – One account’s capacity figures (db.CapacityAccount).

  • busiest_today[].user_id (integer, required)

  • busiest_today[].login (string, required)

  • busiest_today[].provider (string, required) – The forge of the account’s last sign-in (an empty legacy value reads as GitHub).

  • busiest_today[].gitlab_host (string) – A GitLab account’s instance.

  • busiest_today[].admin (boolean, required)

  • busiest_today[].override (object, required) – One account’s own values (db.CapacityOverride). null means the quota’s value.

  • busiest_today[].override.user_id (integer, required)

  • busiest_today[].override.repos_allowed (integer, null, required, required)

  • busiest_today[].override.requests_per_hour (integer, null, required, required)

  • busiest_today[].override.requests_per_day (integer, null, required, required)

  • busiest_today[].override.links_per_day (integer, null, required, required)

  • busiest_today[].override.note (string, required)

  • busiest_today[].override.updated_at (string:date-time, required)

  • busiest_today[].override.updated_by (integer, null, required, required)

  • busiest_today[].repos (object, required) – An account’s repository allocation (db.RepoAllocationStatus).

  • busiest_today[].repos.used (integer, required) – Repositories across the account’s groups, additions waiting for approval included.

  • busiest_today[].repos.allowed (integer, required)

  • busiest_today[].repos.mode (string:enum, required) – enforce refuses past the value; shadow counts and logs but never refuses; off neither counts nor refuses.

  • busiest_today[].repos.exempt (boolean, required) – True for an administrator, who is never refused.

  • busiest_today[].repos.contact (string, required)

  • busiest_today[].requests_today (integer:int64, required) – Session requests saved today by the api processes (at most one save period, about a minute, behind).

Status Codes:
GET /api/v1/admin/capacity/largest
Operation:

largestAccounts

Access:

an administrator’s signed-in session.

Returns the accounts with the most repositories in their groups.

At most 25 accounts. Cost: reads every group link, so the page asks for it only on demand.

Handler: handleAdminCapacityLargest.

Response JSON Object:
  • accounts[] (object) – One account’s capacity figures (db.CapacityAccount).

  • accounts[].user_id (integer, required)

  • accounts[].login (string, required)

  • accounts[].provider (string, required) – The forge of the account’s last sign-in (an empty legacy value reads as GitHub).

  • accounts[].gitlab_host (string) – A GitLab account’s instance.

  • accounts[].admin (boolean, required)

  • accounts[].override (object, required) – One account’s own values (db.CapacityOverride). null means the quota’s value.

  • accounts[].override.user_id (integer, required)

  • accounts[].override.repos_allowed (integer, null, required, required, required)

  • accounts[].override.requests_per_hour (integer, null, required, required, required)

  • accounts[].override.requests_per_day (integer, null, required, required, required)

  • accounts[].override.links_per_day (integer, null, required, required, required)

  • accounts[].override.note (string, required)

  • accounts[].override.updated_at (string:date-time, required)

  • accounts[].override.updated_by (integer, null, required, required, required)

  • accounts[].repos (object, required) – An account’s repository allocation (db.RepoAllocationStatus).

  • accounts[].repos.used (integer, required) – Repositories across the account’s groups, additions waiting for approval included.

  • accounts[].repos.allowed (integer, required)

  • accounts[].repos.mode (string:enum, required) – enforce refuses past the value; shadow counts and logs but never refuses; off neither counts nor refuses.

  • accounts[].repos.exempt (boolean, required) – True for an administrator, who is never refused.

  • accounts[].repos.contact (string, required)

  • accounts[].requests_today (integer:int64, required) – Session requests saved today by the api processes (at most one save period, about a minute, behind).

Status Codes:
POST /api/v1/admin/capacity/quotas/{name}
Operation:

setCapacityQuota

Access:

an administrator’s signed-in session.

Sets one quota’s value and mode.

The api processes apply it within a minute. Body limit 64 KiB. shared_with_me_adds_per_hour is fixed and is not a quota here.

Handler: handleAdminCapacityQuota.

Parameters:
  • name (string:enum, required)

Request JSON Object:
  • allowed (integer, required)

  • mode (string:enum, required) – enforce refuses past the value; shadow counts and logs but never refuses; off neither counts nor refuses.

Response JSON Object:
  • name (string, required)

  • allowed (integer, required)

  • mode (string:enum, required) – enforce refuses past the value; shadow counts and logs but never refuses; off neither counts nor refuses.

Status Codes:
POST /api/v1/admin/capacity/contact
Operation:

setCapacityContact

Access:

an administrator’s signed-in session.

Sets the address every refusal invites heavy users to write to.

An empty value offers none. Body limit 64 KiB.

Handler: handleAdminCapacityContact.

Request JSON Object:
  • contact_email (string) – An e-mail address, or empty to offer none. Omitted reads as empty, so {} clears the address.

Response JSON Object:
  • saved (boolean, required)

Status Codes:
GET /api/v1/admin/capacity/accounts
Operation:

capacityAccount

Access:

an administrator’s signed-in session.

Returns one account’s capacity figures, found by user id or login.

user_id wins when both are given. A login matches regardless of letter case; when more than one account has it, the answer is 409 with the candidates to choose from by user_id.

Handler: handleAdminCapacityAccount.

Query Parameters:
  • user_id (integer)

  • login (string)

Response JSON Object:
  • user_id (integer, required)

  • login (string, required)

  • provider (string, required) – The forge of the account’s last sign-in (an empty legacy value reads as GitHub).

  • gitlab_host (string) – A GitLab account’s instance.

  • admin (boolean, required)

  • override (object, required) – One account’s own values (db.CapacityOverride). null means the quota’s value.

  • override.user_id (integer, required)

  • override.repos_allowed (integer, null, required, required, required, required)

  • override.requests_per_hour (integer, null, required, required, required, required)

  • override.requests_per_day (integer, null, required, required, required, required)

  • override.links_per_day (integer, null, required, required, required, required)

  • override.note (string, required)

  • override.updated_at (string:date-time, required)

  • override.updated_by (integer, null, required, required, required, required)

  • repos (object, required) – An account’s repository allocation (db.RepoAllocationStatus).

  • repos.used (integer, required) – Repositories across the account’s groups, additions waiting for approval included.

  • repos.allowed (integer, required)

  • repos.mode (string:enum, required) – enforce refuses past the value; shadow counts and logs but never refuses; off neither counts nor refuses.

  • repos.exempt (boolean, required) – True for an administrator, who is never refused.

  • repos.contact (string, required)

  • requests_today (integer:int64, required) – Session requests saved today by the api processes (at most one save period, about a minute, behind).

Status Codes:
POST /api/v1/admin/capacity/accounts/{userID}
Operation:

setCapacityOverride

Access:

an administrator’s signed-in session.

Sets one account’s own quota values.

null (or an omitted field) takes the quota’s value; all null and no note removes the override. That removal does not check the account: for an id with no account it answers 200 {"saved": true} and changes nothing. Body limit 64 KiB.

Handler: handleAdminCapacityOverride.

Parameters:
  • userID (integer, required) – An account’s id.

Request JSON Object:
  • repos_allowed (integer, null)

  • requests_per_hour (integer, null)

  • requests_per_day (integer, null)

  • links_per_day (integer, null)

  • note (string) – At most 500 characters; blank when only spaces.

Response JSON Object:
  • user_id (integer, required)

  • saved (boolean, required)

Status Codes:
POST /api/v1/admin/capacity/signup-allowlist
Operation:

addSignupAllowlistNetwork

Access:

an administrator’s signed-in session.

Exempts a network from the sign-up quota.

For an organization whose members sign up from one address. The network is stored normalised and the answer echoes that form. Body limit 64 KiB.

Handler: handleAdminSignupAllowlistAdd.

Request JSON Object:
  • cidr (string, required)

  • note (string)

Response JSON Object:
  • cidr (string, required) – The network as stored.

Status Codes:
POST /api/v1/admin/capacity/signup-allowlist/remove
Operation:

removeSignupAllowlistNetwork

Access:

an administrator’s signed-in session.

Removes a network from the sign-up allowlist.

Body limit 64 KiB.

Handler: handleAdminSignupAllowlistRemove.

Request JSON Object:
  • cidr (string, required)

Response JSON Object:
  • removed (boolean, required)

Status Codes:

Admin forge-ID changes

Repositories deleted and re-created upstream under the same URL. Administrator sessions only.

GET /api/v1/admin/forge-id-changes
Operation:

forgeIDChanges

Access:

an administrator’s signed-in session.

Returns the recorded forge-ID changes.

A repository deleted and re-created upstream under the same URL gets a new forge ID; the organization scan records it as pending. The full list orders adoptable, superseded, then adopted changes. A pending change whose old ID is no longer the stored one is superseded and cannot be adopted.

Handler: handleAdminForgeIDChanges.

Query Parameters:
  • pending (string) – 1 lists only the adoptable changes; any other value lists all.

Response JSON Object:
  • changes[] (object) – A recorded forge-ID change (db.ForgeIDChange).

  • changes[].repo_id (integer:int64, required)

  • changes[].old_forge_id (string, required)

  • changes[].new_forge_id (string, required)

  • changes[].first_observed_at (string:date-time, required)

  • changes[].last_observed_at (string:date-time, required)

  • changes[].forge_created_at (string:date-time) – When the forge created the new repository; absent when the scan did not list it.

  • changes[].adopted_at (string:date-time) – Adopted changes only.

  • changes[].observed_private (boolean) – Whether the listing that last observed the change was not public (GitHub private; GitLab internal or private). Absent when unknown (a change recorded before 0.29.140, or read before the migrate added the column). Adopting a change that is not KNOWN public (false) moves the id but does not lift a gone stamp; an adoption from the admin page keeps the recorded value (unknown stays unknown), aveloxis adopt-forge-id records the forge’s own answer.

  • changes[].adopted_by (string)

  • changes[].note (string)

  • changes[].repo_git (string) – The repository’s stored URL.

  • changes[].superseded (boolean) – A pending change whose old ID is no longer the stored one; it cannot be adopted. Absent when false.

Status Codes:
POST /api/v1/admin/forge-id-changes/{repoID}/adopt
Operation:

adoptForgeIDChange

Access:

an administrator’s signed-in session.

Adopts a recorded forge-ID change, treating the new upstream repository as a continuation.

Moves the stored forge ID to the one the scan observed and records the administrator. The body names the change, since a repository can have more than one. The api process holds no forge keys, so this adopts the recorded observation; aveloxis adopt-forge-id asks the forge live. The body is at most 6,256 bytes and the note at most 1,000 bytes.

Handler: handleAdminForgeIDAdopt.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Request JSON Object:
  • old_forge_id (string, required)

  • new_forge_id (string, required)

  • note (string) – At most 1,000 bytes.

Response JSON Object:
  • adopted (boolean, required)

  • repo_id (integer:int64, required)

Status Codes:

Augur catalog

Augur-compatible lookups of repositories and repository groups (for 8Knot and other Augur clients).

GET /api/v1/repo-groups
Operation:

augurRepositoryGroups

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns every repository group, ordered by name.

The legacy repository groups (aveloxis_data.repo_groups), not the caller’s own groups (see Groups). An API token sees only the groups holding at least one repository of its owner’s groups (since 0.29.99); every other caller sees every group. An empty result is [].

Handler: handleRepoGroups.

Response JSON Array of Objects:
  • repo_group_id (integer:int64, required)

  • rg_name (string, required)

  • description (string) – Absent when empty.

  • rg_type (string) – Absent when empty (for example github_org, gitlab_group).

Status Codes:
GET /api/v1/repos
Operation:

augurRepositories

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns every collected repository, ordered by owner and name.

Not paged: one row per repository. An API token sees only the repositories of its owner’s groups (since 0.29.99); a session, an administrator and a caller without an identity get the whole catalog. Cost: one scan of the repositories table. An empty result is [].

Handler: handleAllRepos.

Response JSON Array of Objects:
  • repo_id (integer:int64, required)

  • repo_group_id (integer:int64, required) – 0 when the repository has no legacy group.

  • repo_git (string, required) – The repository’s URL.

  • repo_name (string, required)

  • repo_owner (string, required)

  • platform_id (integer:enum, required) – 1 GitHub, 2 GitLab, 3 any other git host.

  • repo_archived (boolean, required)

Status Codes:
GET /api/v1/repos/{repoID}
Operation:

augurRepository

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns one repository’s identity fields.

The body is the internal repository record without JSON tags, so its keys are PascalCase, unlike the other catalog lookups. Only ID, Platform, GitURL, Name and Owner are read from the database; every other field carries its zero value (GroupID 0, empty strings, false, 0001-01-01T00:00:00Z).

Handler: handleRepoByID.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • ID (integer:int64, required)

  • GroupID (integer:int64, required) – Always 0 here.

  • Platform (integer:enum, required) – 1 GitHub, 2 GitLab, 3 any other git host.

  • GitURL (string, required)

  • Name (string, required)

  • Owner (string, required)

  • Path (string, required) – Always empty here.

  • Description (string, required) – Always empty here.

  • PrimaryLanguage (string, required) – Always empty here.

  • ForkedFrom (string, required) – Always empty here.

  • Archived (boolean, required) – Always false here.

  • CreatedAt (string:date-time, required) – Always 0001-01-01T00:00:00Z here.

  • UpdatedAt (string:date-time, required) – Always 0001-01-01T00:00:00Z here.

  • PlatformID (string, required) – Always empty here.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repo-groups/{groupID}/repos
Operation:

augurRepositoryGroupRepositories

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the repositories of one repository group, ordered by owner and name.

An API token sees only the repositories of its owner’s groups (since 0.29.99). A group id no group has, or a group with nothing in the token’s scope, answers 200 with [] (no 404). An empty result is [].

Handler: handleReposByGroup.

Parameters:
  • groupID (integer:int64, required) – A legacy repository group’s id (repo_group_id).

Response JSON Array of Objects:
  • repo_id (integer:int64, required)

  • repo_group_id (integer:int64, required) – 0 when the repository has no legacy group.

  • repo_git (string, required) – The repository’s URL.

  • repo_name (string, required)

  • repo_owner (string, required)

  • platform_id (integer:enum, required) – 1 GitHub, 2 GitLab, 3 any other git host.

  • repo_archived (boolean, required)

Status Codes:
GET /api/v1/owner/{owner}/repo/{repo}
Operation:

augurRepositoryByOwnerAndName

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the repository with this owner and name.

Owner and name match without regard to letter case. When the name exists on two forges the GitHub one is picked, then the lower id. An API token is answered within its owner’s groups (since 0.29.99): the in-scope repository when one exists; when the name exists only outside its scope, the structured 403 naming that repository; when it exists nowhere, 404.

Handler: handleRepoByOwnerName.

Parameters:
  • owner (string, required) – The repository’s owner (user, organization or GitLab group path).

  • repo (string, required) – The repository’s name.

Response JSON Object:
  • repo_id (integer:int64, required)

  • repo_group_id (integer:int64, required) – 0 when the repository has no legacy group.

  • repo_git (string, required) – The repository’s URL.

  • repo_name (string, required)

  • repo_owner (string, required)

  • platform_id (integer:enum, required) – 1 GitHub, 2 GitLab, 3 any other git host.

  • repo_archived (boolean, required)

Status Codes:
GET /api/v1/rg-name/{rgName}
Operation:

augurRepositoryGroupByName

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the repository group with this name.

The name matches without regard to letter case; the first match wins. An API token finds only a group holding at least one repository of its owner’s groups (since 0.29.99); any other is 404.

Handler: handleRepoGroupByName.

Parameters:
  • rgName (string, required) – The repository group’s name (rg_name).

Response JSON Object:
  • repo_group_id (integer:int64, required)

  • rg_name (string, required)

  • description (string) – Absent when empty.

  • rg_type (string) – Absent when empty (for example github_org, gitlab_group).

Status Codes:
GET /api/v1/rg-name/{rgName}/repo-name/{repoName}
Operation:

augurRepositoryByGroupAndName

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the repository with this name in the named repository group.

Both names match without regard to letter case (since 0.29.99 the repository name too; it had to match exactly). With the name on two forges the GitHub one is picked, then the lower id. An API token is answered within its owner’s groups (since 0.29.99): a group holding none of them is 404; a repository that exists in the group only outside the scope is the structured 403 naming it.

Handler: handleRepoByGroupAndName.

Parameters:
  • rgName (string, required) – The repository group’s name (rg_name).

  • repoName (string, required) – The repository’s name (letter case ignored).

Response JSON Object:
  • repo_id (integer:int64, required)

  • repo_group_id (integer:int64, required) – 0 when the repository has no legacy group.

  • repo_git (string, required) – The repository’s URL.

  • repo_name (string, required)

  • repo_owner (string, required)

  • platform_id (integer:enum, required) – 1 GitHub, 2 GitLab, 3 any other git host.

  • repo_archived (boolean, required)

Status Codes:

Augur metrics

Augur-compatible per-repository metrics, with Augur’s parameter names (begin_date, end_date, period).

GET /api/v1/repos/{repoID}/issues-new
Operation:

augurIssuesNew

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the issues opened per period.

Issues (pull requests excluded) counted by the day they were created. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. period buckets by day, week, month or year; it defaults to month, and any other value is read as month (no 400). An empty result is [].

Handler: handleIssuesNew.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

  • period (string) – Augur’s bucket size, day, week, month or year. Any other value is read as month, never refused.

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC), or the snapshot’s collection time.

  • value (integer, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/issues-closed
Operation:

augurIssuesClosed

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the issues closed per period.

Issues (pull requests excluded) counted by the day they were closed. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. period buckets by day, week, month or year; it defaults to month, and any other value is read as month (no 400). An empty result is [].

Handler: handleIssuesClosed.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

  • period (string) – Augur’s bucket size, day, week, month or year. Any other value is read as month, never refused.

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC), or the snapshot’s collection time.

  • value (integer, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/issues-active
Operation:

augurIssuesActive

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the issues with activity per period.

Distinct issues (pull requests excluded) with at least one issue event in the bucket. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. period buckets by day, week, month or year; it defaults to month, and any other value is read as month (no 400). An empty result is [].

Handler: handleIssuesActive.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

  • period (string) – Augur’s bucket size, day, week, month or year. Any other value is read as month, never refused.

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC), or the snapshot’s collection time.

  • value (integer, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/issue-backlog
Operation:

augurIssueBacklog

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the number of open issues.

Issues whose state is open, pull requests excluded. A repository with none, or none collected, answers 0.

Handler: handleIssueBacklog.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • issue_backlog (integer, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/issue-throughput
Operation:

augurIssueThroughput

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the share of issues that are closed.

Closed issues divided by all issues (pull requests excluded), from 0 to 1; 0 when there are none.

Handler: handleIssueThroughput.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • throughput (number, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/issue-duration
Operation:

augurIssueDuration

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns how long each closed issue stayed open.

One row per closed issue (pull requests excluded) created inside the window, ordered by issue id. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. An empty result is [].

Handler: handleIssueDuration.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

Response JSON Array of Objects:
  • issue_id (integer:int64, required)

  • created_at (string:date-time, required)

  • closed_at (string:date-time, required)

  • duration_days (number, required) – Days from creation to closing, fractional.

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/average-issue-resolution-time
Operation:

augurAverageIssueResolutionTime

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the mean days from an issue’s creation to its closing.

Over every closed issue of the repository (pull requests excluded), all time; 0 when none is closed.

Handler: handleAvgIssueResolution.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • avg_issue_resolution_days (number, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/abandoned-issues
Operation:

augurAbandonedIssues

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the open issues not updated for a year.

Open issues (pull requests excluded) whose last update is more than a year before now, least recently updated first. An empty result is [].

Handler: handleAbandonedIssues.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Array of Objects:
  • issue_id (integer:int64, required)

  • updated_at (string:date-time, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/open-issues-count
Operation:

augurOpenIssuesCount

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the number of open issues.

The same count as issue-backlog, under Augur’s other name.

Handler: handleOpenIssuesCount.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • open_count (integer, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/closed-issues-count
Operation:

augurClosedIssuesCount

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the number of closed issues.

Issues whose state is closed, pull requests excluded.

Handler: handleClosedIssuesCount.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • closed_count (integer, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/pull-requests-new
Operation:

augurPullRequestsNew

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the pull requests opened per period.

Pull requests counted by the day they were created. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. period buckets by day, week, month or year; it defaults to month, and any other value is read as month (no 400). An empty result is [].

Handler: handlePRsNew.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

  • period (string) – Augur’s bucket size, day, week, month or year. Any other value is read as month, never refused.

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC), or the snapshot’s collection time.

  • value (integer, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/reviews
Operation:

augurReviews

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the pull requests opened per period, under Augur’s reviews name.

Augur’s “reviews” metric counts pull requests created; the answer is identical to pull-requests-new. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. period buckets by day, week, month or year; it defaults to month, and any other value is read as month (no 400). An empty result is [].

Handler: handleReviews.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

  • period (string) – Augur’s bucket size, day, week, month or year. Any other value is read as month, never refused.

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC), or the snapshot’s collection time.

  • value (integer, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/reviews-accepted
Operation:

augurReviewsAccepted

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the pull requests merged per period.

Pull requests counted by the day they were merged. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. period buckets by day, week, month or year; it defaults to month, and any other value is read as month (no 400). An empty result is [].

Handler: handleReviewsAccepted.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

  • period (string) – Augur’s bucket size, day, week, month or year. Any other value is read as month, never refused.

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC), or the snapshot’s collection time.

  • value (integer, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/reviews-declined
Operation:

augurReviewsDeclined

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the pull requests closed without merging per period.

Pull requests closed and never merged, counted by the day they were closed. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. period buckets by day, week, month or year; it defaults to month, and any other value is read as month (no 400). An empty result is [].

Handler: handleReviewsDeclined.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

  • period (string) – Augur’s bucket size, day, week, month or year. Any other value is read as month, never refused.

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC), or the snapshot’s collection time.

  • value (integer, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/review-duration
Operation:

augurReviewDuration

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns how long each merged pull request took to merge.

One row per merged pull request created inside the window, ordered by pull request id. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. An empty result is [].

Handler: handleReviewDuration.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

Response JSON Array of Objects:
  • pull_request_id (integer:int64, required)

  • created_at (string:date-time, required)

  • merged_at (string:date-time, required)

  • duration_days (number, required) – Days from creation to merge, fractional.

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/committers
Operation:

augurCommitters

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the distinct commit authors per period.

Authors counted by identity: the resolved contributor where known, otherwise the non-empty author e-mail; commits by the UTC day of their author timestamp (the same day as repositoryTimeSeries; since 0.29.99 — before, by the author’s local date), and a commit whose author date could not be parsed is not counted. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. period buckets by day, week, month or year; it defaults to month, and any other value is read as month (no 400). An empty result is [].

Handler: handleCommitters.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

  • period (string) – Augur’s bucket size, day, week, month or year. Any other value is read as month, never refused.

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC), or the snapshot’s collection time.

  • value (integer, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/code-changes
Operation:

augurCodeChanges

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the commits per period.

Distinct commit hashes counted by the UTC day of their author timestamp (the same day as repositoryTimeSeries; since 0.29.99 — before, by the author’s local date); a commit whose author date could not be parsed is not counted. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. period buckets by day, week, month or year; it defaults to month, and any other value is read as month (no 400). An empty result is [].

Handler: handleCodeChanges.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

  • period (string) – Augur’s bucket size, day, week, month or year. Any other value is read as month, never refused.

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC), or the snapshot’s collection time.

  • value (integer, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/code-changes-lines
Operation:

augurCodeChangesLines

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the lines added and removed per period.

Sums of the per-file line counts of the commits authored in each bucket. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. period buckets by day, week, month or year; it defaults to month, and any other value is read as month (no 400). An empty result is [].

Handler: handleCodeChangesLines.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

  • period (string) – Augur’s bucket size, day, week, month or year. Any other value is read as month, never refused.

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC).

  • added (integer:int64, required)

  • removed (integer:int64, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/contributors
Operation:

augurContributors

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns each contributor’s activity counts in the window.

One row per contributor, most active first: commits (distinct hashes), issues opened, pull requests opened, issue comments and pull request comments, with their total. Only activity attributed to a resolved contributor counts. These are counts per person, unlike /contributions/identities (a roster). The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. Cost: five aggregates over the repository’s commits, issues, pull requests and messages, uncached. An empty result is [].

Handler: handleContributors.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

Response JSON Array of Objects:
  • user_id (string, required) – The contributor’s cntrb_id (a UUID).

  • commits (integer, required)

  • issues (integer, required)

  • pull_requests (integer, required)

  • issue_comments (integer, required)

  • pull_request_comments (integer, required)

  • total (integer, required) – The sum of the five counts; the ordering key.

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/contributors-new
Operation:

augurContributorsNew

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the first-time contributors per period.

Each resolved contributor counted once, in the bucket of their first commit (by the UTC day of its author timestamp, since 0.29.99) or first issue, whichever came first. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. period buckets by day, week, month or year; it defaults to month, and any other value is read as month (no 400). An empty result is [].

Handler: handleContributorsNew.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

  • period (string) – Augur’s bucket size, day, week, month or year. Any other value is read as month, never refused.

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC), or the snapshot’s collection time.

  • value (integer, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/stars
Operation:

augurStars

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the star count at each metadata snapshot.

One row per stored metadata snapshot (the latest and the earlier ones kept in history), oldest first; period and the window do not apply. An empty result is [].

Handler: handleStars.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC), or the snapshot’s collection time.

  • value (integer, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/stars-count
Operation:

augurStarsCount

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the latest star count.

From the latest metadata snapshot. A repository without one answers stars 0 and an empty repo_name.

Handler: handleStarsCount.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • repo_name (string, required)

  • stars (integer, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/forks
Operation:

augurForks

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the fork count at each metadata snapshot.

One row per stored metadata snapshot (the latest and the earlier ones kept in history), oldest first. An empty result is [].

Handler: handleForks.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC), or the snapshot’s collection time.

  • value (integer, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/fork-count
Operation:

augurForkCount

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the latest fork count.

From the latest metadata snapshot. A repository without one answers forks 0 and an empty repo_name.

Handler: handleForkCount.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • repo_name (string, required)

  • forks (integer, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/watchers
Operation:

augurWatchers

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the watcher count over time, from the metadata snapshots.

One row per metadata snapshot (the history and the current one, oldest first; since 0.29.99 — before, only the latest snapshot, so one row at most). Rows carry watchers where the stars and forks series carry value (Augur’s own name). A snapshot without a date is left out. An empty result is [].

Handler: handleWatchers.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Array of Objects:
  • date (string:date-time, required)

  • watchers (integer, required)

  • repo_name (string, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/watchers-count
Operation:

augurWatchersCount

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the latest watcher count.

From the latest metadata snapshot. A repository without one answers watchers 0 and an empty repo_name.

Handler: handleWatchersCount.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • repo_name (string, required)

  • watchers (integer, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/languages
Operation:

augurLanguages

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the repository’s primary language.

The forge-reported primary language; empty when unknown. A repository id no repository has is a 500 for a caller the scope check lets through (an administrator, or a caller without an identity), not a 404.

Handler: handleLanguages.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Object:
  • repo_id (integer:int64, required)

  • primary_language (string, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/deps
Operation:

augurDependencies

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the repository’s dependencies with their libyear.

With neither license nor scope, every stored dependency row, ordered by name. With either, the rows the licenses table aggregates (GitHub Actions rows excluded), so a license bucket counting N lists exactly N rows. An empty result is [].

Handler: handleDeps.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • license (string) – Keep only rows whose license normalizes to this canonical bucket, exactly as /repos/{repoID}/licenses returned it.

  • scope (string:enum) – runtime keeps only runtime-scope dependencies (dev, test, build, optional and peer rows excluded); all keeps every scope. Any other value is a 400.

Response JSON Array of Objects:
  • name (string, required)

  • requirement (string, required) – The declared requirement; empty when none was recorded.

  • dep_type (string, required) – The dependency’s scope as recorded (for example runtime, dev); empty when unknown.

  • package_manager (string, required)

  • current_version (string, required)

  • latest_version (string, required)

  • libyear (number, required) – Years between the used version’s release and the latest’s; 0 when unknown.

  • license (string) – The license as the registry reported it (not normalized). Absent when unknown.

  • purl (string) – The package URL. Absent when none was minted.

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/libyear
Operation:

augurLibyear

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the repository’s dependencies with their libyear, under Augur’s libyear name.

The same answer as deps. With neither license nor scope, every stored dependency row, ordered by name. With either, the rows the licenses table aggregates (GitHub Actions rows excluded), so a license bucket counting N lists exactly N rows. An empty result is [].

Handler: handleDeps.

Request Headers:
  • If-None-Match (string) – An ETag from an earlier answer. When it names the current one the answer is 304 with no body.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • license (string) – Keep only rows whose license normalizes to this canonical bucket, exactly as /repos/{repoID}/licenses returned it.

  • scope (string:enum) – runtime keeps only runtime-scope dependencies (dev, test, build, optional and peer rows excluded); all keeps every scope. Any other value is a 400.

Response JSON Array of Objects:
  • name (string, required)

  • requirement (string, required) – The declared requirement; empty when none was recorded.

  • dep_type (string, required) – The dependency’s scope as recorded (for example runtime, dev); empty when unknown.

  • package_manager (string, required)

  • current_version (string, required)

  • latest_version (string, required)

  • libyear (number, required) – Years between the used version’s release and the latest’s; 0 when unknown.

  • license (string) – The license as the registry reported it (not normalized). Absent when unknown.

  • purl (string) – The package URL. Absent when none was minted.

Status Codes:
Response Headers:
  • ETag (string) – The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

  • Cache-Control (string:enum) – no-cache for an answer any caller may be given (revalidate each time); private, no-store for an answer about this caller, which nothing may store.

  • X-Cache (string) – hit when the answer came from the server’s response cache; absent otherwise.

  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/repo-messages
Operation:

augurRepositoryMessages

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the messages posted per period.

Every stored message of the repository (issue, pull request and review comments) counted by its timestamp. The window is begin_date through end_date, both inclusive UTC days (since 0.29.99; before, end_date ended at that day’s midnight), by default the year before today through today. A date that does not parse as YYYY-MM-DD is a 400. period buckets by day, week, month or year; it defaults to month, and any other value is read as month (no 400). An empty result is [].

Handler: handleRepoMessages.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Query Parameters:
  • begin_date (string:date) – Augur’s window start, an inclusive UTC day (YYYY-MM-DD). Default a year before today; a value that does not parse is a 400 (since 0.29.99).

  • end_date (string:date) – Augur’s window end, an inclusive UTC day (YYYY-MM-DD; the whole day counts, since 0.29.99). Default today; a value that does not parse is a 400.

  • period (string) – Augur’s bucket size, day, week, month or year. Any other value is read as month, never refused.

Response JSON Array of Objects:
  • date (string:date-time, required) – The bucket’s first day (midnight UTC), or the snapshot’s collection time.

  • value (integer, required)

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/releases
Operation:

augurReleases

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the repository’s releases, newest first.

Ordered by publication time, unpublished last. An empty result is [].

Handler: handleReleases.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Array of Objects:
  • release_id (string, required)

  • release_name (string, required)

  • release_description (string) – Absent when empty.

  • release_author (string, required)

  • release_tag_name (string, required)

  • release_url (string) – Absent when empty.

  • release_created_at (string:date-time, required)

  • release_published_at (string:date-time) – Absent when the release was never published.

  • repo_name (string) – Absent when empty.

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/project-languages
Operation:

augurProjectLanguages

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the code size and complexity per language.

From the stored scc results, one row per language, most code lines first. An empty result is [].

Handler: handleProjectLanguages.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Array of Objects:
  • language (string, required)

  • files (integer, required)

  • lines (integer, required)

  • blanks (integer, required)

  • comments (integer, required)

  • code (integer, required)

  • complexity (integer, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/project-files
Operation:

augurProjectFiles

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the code size and complexity per language, under Augur’s project-files name.

The same answer as project-languages. From the stored scc results, one row per language, most code lines first. An empty result is [].

Handler: handleProjectLanguages.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Array of Objects:
  • language (string, required)

  • files (integer, required)

  • lines (integer, required)

  • blanks (integer, required)

  • comments (integer, required)

  • code (integer, required)

  • complexity (integer, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

GET /api/v1/repos/{repoID}/project-lines
Operation:

augurProjectLines

Access:

a session or an API token; anonymous callers too while api.require_auth is off or from an exempt network.

Returns the code size and complexity per language, under Augur’s project-lines name.

The same answer as project-languages. From the stored scc results, one row per language, most code lines first. An empty result is [].

Handler: handleProjectLanguages.

Parameters:
  • repoID (integer:int64, required) – A repository’s id (repo_id). A value that is not a positive integer is a 400; an id no repository has is a 404 on every repository route (since 0.29.99).

Response JSON Array of Objects:
  • language (string, required)

  • files (integer, required)

  • lines (integer, required)

  • blanks (integer, required)

  • comments (integer, required)

  • code (integer, required)

  • complexity (integer, required)

Status Codes:
Response Headers:
  • X-Aveloxis-Added-To-Group (string) – Present once, on the answer whose request added the repository to the caller’s “Shared with Me” group (a signed-in session following a link to a repository outside its groups). Its value is the group’s name. The addition happens before the operation runs, so the header rides on whatever that request answers, a 400, 404, 429 or 500 included; the reference declares it on the success response.

Shared responses

Responses many operations share, written once. An entry above that links here sends exactly this response; the conventions say what each status code means across the API.

NotModified

The If-None-Match validator names the current answer. No body.

Headers:

  • ETag (string) — The answer’s validator, weak (W/"…") when the answer depends only on the repository’s stored state. Send it back as If-None-Match.

BadRequest

The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). The body is one sentence.

Body, text/plain: string

Unauthorized

No valid Bearer token: missing, unknown, expired or revoked. Sent by every operation that requires an identity, and by every data operation when api.require_auth is on (callers on an exempt network excepted). Never stored.

Body, application/json (Error):

  • error (string, required) — A machine-readable code or a sentence; see each operation.

  • message (string) — A sentence for a person, present when error is a code (reauthentication_required).

Forbidden

The token is valid but may not do this: an API token on an administrator or account-settings route, or a session that is not an administrator’s. Never stored.

Body, application/json (Error):

  • error (string, required) — A machine-readable code or a sentence; see each operation.

  • message (string) — A sentence for a person, present when error is a code (reauthentication_required).

RepoOutOfScope

The repository is outside the caller’s scope (repo_out_of_scope), or a signed-in session’s automatic addition of it would exceed the account’s repository allocation (capacity_limit, kind allocation). Never stored.

Body, application/json:

One of:

  • RepoOutOfScope

    • error (string, required) — always repo_out_of_scope

    • repo_id (integer, int64, required)

    • hint (string, required)

    • repo_url (string) — API tokens only, when the repository exists. Its stored URL.

    • your_groups (array of object) — The owner’s groups that accept additions.

      • group_id (integer, int64, required)

      • name (string, required)

    • add_to_existing_group (object) — A request ready to send.

      • method (string, required) — always POST

      • path (string, required) — The path, with {group_id} to fill in where present.

      • body (object, required) — The JSON body: {"url": …, "kind": "repo"} for one repository, {"urls": […], "kind": "repo"} for an organization’s collected repositories, {"name": …} for a new group.

    • create_group (object) — A request ready to send.

      • method (string, required) — always POST

      • path (string, required) — The path, with {group_id} to fill in where present.

      • body (object, required) — The JSON body: {"url": …, "kind": "repo"} for one repository, {"urls": […], "kind": "repo"} for an organization’s collected repositories, {"name": …} for a new group.

  • CapacityRefusal

    • error (string, required) — always capacity_limit

    • kind (string, required) — one of rate, allocation

    • quota (string, required) — one of requests_per_hour, requests_per_day, token_requests_per_hour, token_requests_per_day, repos_per_account, repo_links_per_day, shared_with_me_adds_per_hour; The quota that refused.

    • window (string) — one of hour, day; Rate quotas only. hour starts at the window’s first counted request; day is the UTC day.

    • used (integer, required)

    • allowed (integer, required)

    • wanted (integer) — Allocation only. How many more the refused change would have added.

    • reset_at (string, date-time) — Rate quotas only. When the window ends (UTC).

    • retry_after (integer) — Rate quotas only. Seconds until reset_at, the same value as Retry-After.

    • contact (string) — The address the operator invites heavy users to write to; absent when none is set.

    • message (string, required) — The refusal in a sentence, with the way to make room or the time to retry.

EntityOutOfScope

A compared entity resolves to no repository the caller may read (entity_out_of_scope; for an API token, with the way to add it), or a signed-in session’s automatic addition would exceed the account’s repository allocation (capacity_limit, kind allocation). Never stored.

Body, application/json:

One of:

  • EntityOutOfScope

    • error (string, required) — always entity_out_of_scope

    • entity (string, required) — The entity’s label.

    • hint (string, required)

    • entity_url (string) — API tokens, repository entities only. The repository’s stored URL.

    • entity_repo_urls (array of string) — API tokens, organization entities only. The organization’s collected repositories, all added by add_to_existing_group in one call.

    • your_groups (array of object) — The owner’s groups that accept additions.

      • group_id (integer, int64, required)

      • name (string, required)

    • add_to_existing_group (object) — A request ready to send.

      • method (string, required) — always POST

      • path (string, required) — The path, with {group_id} to fill in where present.

      • body (object, required) — The JSON body: {"url": …, "kind": "repo"} for one repository, {"urls": […], "kind": "repo"} for an organization’s collected repositories, {"name": …} for a new group.

    • create_group (object) — A request ready to send.

      • method (string, required) — always POST

      • path (string, required) — The path, with {group_id} to fill in where present.

      • body (object, required) — The JSON body: {"url": …, "kind": "repo"} for one repository, {"urls": […], "kind": "repo"} for an organization’s collected repositories, {"name": …} for a new group.

  • CapacityRefusal

    • error (string, required) — always capacity_limit

    • kind (string, required) — one of rate, allocation

    • quota (string, required) — one of requests_per_hour, requests_per_day, token_requests_per_hour, token_requests_per_day, repos_per_account, repo_links_per_day, shared_with_me_adds_per_hour; The quota that refused.

    • window (string) — one of hour, day; Rate quotas only. hour starts at the window’s first counted request; day is the UTC day.

    • used (integer, required)

    • allowed (integer, required)

    • wanted (integer) — Allocation only. How many more the refused change would have added.

    • reset_at (string, date-time) — Rate quotas only. When the window ends (UTC).

    • retry_after (integer) — Rate quotas only. Seconds until reset_at, the same value as Retry-After.

    • contact (string) — The address the operator invites heavy users to write to; absent when none is set.

    • message (string, required) — The refusal in a sentence, with the way to make room or the time to retry.

NotFound

No such resource.

Body, text/plain: string

RepoNotFound

No repository has this id (repo not found). Every repository route answers it before deciding the caller’s scope (since 0.29.99; an unknown id was a 403 for tokens and sessions before), so it says nothing about the caller.

Body, text/plain: string

TooManyRequests

Refused by a rate limit; retry after Retry-After seconds. A caller without a valid token is limited per address (api.rate_limit_rps, api.rate_limit_burst, api.rate_limit_daily) and gets the plain text rate limit exceeded. A session or an API token is limited by its quotas and gets the capacity_limit body, sent Cache-Control: private, no-store; so does a session’s automatic addition past shared_with_me_adds_per_hour, and an operation that links repositories into a group past the account’s repo_links_per_day. The per-address text carries no cache directive.

Headers:

  • Retry-After (integer) — Whole seconds until the refused request may succeed (at least 1).

  • RateLimit (string) — The tightest enforced quota this answer was counted against (IETF RateLimit header fields draft): "<quota>";r=<remaining>;t=<seconds to reset>. Sent on every answer counted against an enforced quota of a session or an API token; a quota in shadow mode is not advertised.

  • RateLimit-Policy (string) — Every enforced quota the answer was counted against: "<quota>";q=<allowed>;w=<window seconds>, comma-separated.

  • X-RateLimit-Limit (integer) — The tightest enforced quota’s allowance (the older header, kept for clients that read it).

  • X-RateLimit-Remaining (integer) — Requests left in the tightest enforced quota’s window.

  • X-RateLimit-Reset (integer, int64) — When the tightest enforced quota’s window ends, in Unix seconds.

Body, application/json (CapacityRefusal):

  • error (string, required) — always capacity_limit

  • kind (string, required) — one of rate, allocation

  • quota (string, required) — one of requests_per_hour, requests_per_day, token_requests_per_hour, token_requests_per_day, repos_per_account, repo_links_per_day, shared_with_me_adds_per_hour; The quota that refused.

  • window (string) — one of hour, day; Rate quotas only. hour starts at the window’s first counted request; day is the UTC day.

  • used (integer, required)

  • allowed (integer, required)

  • wanted (integer) — Allocation only. How many more the refused change would have added.

  • reset_at (string, date-time) — Rate quotas only. When the window ends (UTC).

  • retry_after (integer) — Rate quotas only. Seconds until reset_at, the same value as Retry-After.

  • contact (string) — The address the operator invites heavy users to write to; absent when none is set.

  • message (string, required) — The refusal in a sentence, with the way to make room or the time to retry.

Body, text/plain: rate limit exceeded and a newline (the per-address limit).

ServerError

A server-side failure. The body never carries the cause (internal error; try again, or a fixed phrase); the cause is in the api log.

Body, text/plain: string

ServiceUnavailable

Retry later; this is never a sign-out. Either a presented token could not be checked because the database failed (JSON, session lookup failed; try again), or the request ran past http_timeout_seconds and was cut off (plain text, request exceeded http_timeout_seconds).

Body, application/json (Error):

  • error (string, required) — A machine-readable code or a sentence; see each operation.

  • message (string) — A sentence for a person, present when error is a code (reauthentication_required).

Body, text/plain: request exceeded http_timeout_seconds and a newline.