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:
200 OK – The process is serving.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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-Afterseconds. 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 pasthttp_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_authis 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;nullwhen no message is classified. Ornull.ByClass.{msg_class} (integer:int64) – One entry per {msg_class}.
- Status Codes:
200 OK – The rollup.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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_authis 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 a400; an id no repository has is a404on 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 saysfalse.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/nameof 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-idrecords 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;collectionfor an episode a merge closed at the first metadata snapshot after it;dedup-reposorrename-healfor 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:
200 OK – The repository’s statistics.
400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis off or from an exempt network.
Returns the statistics of several repositories, keyed by id.
idsis a comma-separated list of repository ids; an entry that is not a positive integer is a400(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 saysfalse.{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/nameof 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-idrecords 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;collectionfor an episode a merge closed at the first metadata snapshot after it;dedup-reposorrename-healfor 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:
200 OK – Statistics per repository id (object keys are the ids as strings).
400 Bad Request –
idsmissing, an entry that is not a positive integer, or more than 500 ids.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- GET /api/v1/repos/{repoID}/sbom
- Operation:
repositorySBOM- Access:
a session or an API token; anonymous callers too while
api.require_authis 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-Dispositionfilename issbom-repo-<id>[-runtime][-with-vulns].cdx.jsonor.spdx.json.Cost: generated per request when not in the response cache.
Handler:
handleSBOMDownload.- Request Headers:
If-None-Match (string) – An
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on every repository route (since 0.29.99).
- Query Parameters:
format (string:enum)
scope (string:enum) –
runtimekeeps only runtime-scope components (unclassified count as runtime).vulns (string) –
1annotates the document with the repository’s current findings (CycloneDXvulnerabilities; SPDX packageexternalRefsof category SECURITY). Any other value is ignored.
- Status Codes:
200 OK – The SBOM document.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request – An id that is not a positive integer, or
format/scopeoutside their values.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found –
repo not found(an unscoped caller asked for an id with no repository).429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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 asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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_authis 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
untilends it at the latest plausible commit time, UTC midnight two days ahead; a givenuntilis 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
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on 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 a400(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 a400(since 0.29.99). A window whosesinceis not beforeuntilis a400.
- 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 thevalueconvention (see the conventions page, “One field name for a metric’s number”);/compareand the Augur-compatible metrics carryvalue.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 thevalueconvention (see the conventions page, “One field name for a metric’s number”);/compareand the Augur-compatible metrics carryvalue.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 thevalueconvention (see the conventions page, “One field name for a metric’s number”);/compareand the Augur-compatible metrics carryvalue.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 thevalueconvention (see the conventions page, “One field name for a metric’s number”);/compareand the Augur-compatible metrics carryvalue.issues[].week_start (string:date-time, required) – The Monday that starts the week (UTC).
issues[].count (integer, required)
- Status Codes:
200 OK – The four weekly series.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request – An id that is not a positive integer, a date that does not parse, or
sincenot beforeuntil.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure; also an unscoped caller’s id with no repository.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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_authis off or from an exempt network.
Returns one temporal metric’s series for one repository (the repository page’s charts).
The answer
/comparegives forentities=repo:{repoID}with the samemetric,since,until,bucketandretention_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, forbucket=week, and on the 1st forbucket=month), with anETagand304``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
contributorsandcommittersmetrics, 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/topapplies — 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
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on every repository route (since 0.29.99).
- Query Parameters:
metric (string:enum, required) – A
temporalid from the metric catalog.since (string:date) – First day (
YYYY-MM-DD). Default as on/compare. A value that does not parse is a400.until (string:date) – A day (
YYYY-MM-DD), as on/compare. A value that does not parse is a400.bucket (string:enum)
retention_threshold (integer) –
contributor_retentiononly, 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) –
temporalmetrics are compared byGET /api/v1/compare,snapshotmetrics byGET /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) –
repoentities only.series[].entity.host (string) –
orgentities only.series[].entity.login (string) –
orgentities only.series[].entity.label (string, required) –
owner/namefor 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 formonth.series[].points[].value (number, required)
series[].parts (object) –
contributor_retentiononly: the component seriesdrive_byandrepeat, whose sum ispoints.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 formonth.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:
200 OK – The series, one entity.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request – An id that is not a positive integer, a
metricthat is not a temporal catalog id, a date that does not parse,sincenot beforeuntil, abucketother than week or month, or aretention_thresholdthat is not a positive integer.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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_authis off or from an exempt network.
Returns a repository’s dependency licenses with counts and OSI approval.
One row per canonical SPDX expression.
scannedis false until dependency analysis has run for the repository (or when that probe failed; such an answer is not cached);licensesis[]when there are no dependencies.Handler:
handleLicenses.- Request Headers:
If-None-Match (string) – An
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on every repository route (since 0.29.99).
- Query Parameters:
scope (string:enum) –
runtimecounts 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:
200 OK – The license table.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request – An id that is not a positive integer, or
scopeoutside its values.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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_authis 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_runis""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
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on 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:
200 OK – Licenses, copyrights and freshness.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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_authis 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
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on 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:
200 OK – The file rows.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; the reference declares it on the success response.
- GET /api/v1/repos/search
- Operation:
repositorySearch- Access:
a session or an API token; anonymous callers too while
api.require_authis 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_inqmatch 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:
200 OK – The matches.
400 Bad Request –
q parameter required.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- GET /api/v1/authz/repos/{repoID}
- Operation:
repositoryAuthorization- Access:
a session or an API token; anonymous callers too while
api.require_authis 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 a400; an id no repository has is a404on every repository route (since 0.29.99).
- Status Codes:
204 No Content – The caller may read the repository.
400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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
uniquesnull, empty lists for the rest and anullsnapshot_date. So does a repository whose key the forge refuses, and an id with no repository, to an unscoped caller (a scoped caller gets the403). Grows by about 730 daily rows a year; the read is indexed by repository.Handler:
handleRepoTraffic.- Request Headers:
If-None-Match (string) – An
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on 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;
nullwhen 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;
nullwhen 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;
pathsandreferrersare that date’s snapshot.nullwhen 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:
200 OK – The stored traffic.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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 a400; an id no repository has is a404on every repository route (since 0.29.99).
- Response JSON Object:
starred (boolean, required)
- Status Codes:
200 OK – The star state.
400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – The star state could not be read.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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 againstshared_with_me_adds_per_hour(429), the repository allocation (403) and the daily additions (429, quotarepo_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 a400; an id no repository has is a404on every repository route (since 0.29.99).
- Response JSON Object:
ok (boolean, required)
starred (boolean, required) –
trueafter a star,falseafter an unstar.added_to_group (string) – Present when this star added the repository to the caller’s “Starred” group.
- Status Codes:
200 OK – Starred.
400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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 a400; an id no repository has is a404on every repository route (since 0.29.99).
- Response JSON Object:
ok (boolean, required)
starred (boolean, required) –
trueafter a star,falseafter an unstar.added_to_group (string) – Present when this star added the repository to the caller’s “Starred” group.
- Status Codes:
200 OK – Unstarred.
400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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_authis 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_atis history.countsclassifies each finding once:resolved;self(an advisory about the repository’s own package);unknown_version(an unpinned range, except GitHub Actions refs); otherwisecurrent, split intodirect/transitiveandruntime/dev, withcritical(severityCRITICALor CVSS 9.0 and up) counted withincurrentandunknown_version_criticalwithinunknown_version.Current transitive findings carry
introduced_bywhen 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
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on 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
unpinnedwhen the manifest named a range and no lockfile pinned it).vulnerabilities[].dependency_kind (string) –
direct,transitive, orself(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;
nullwhen 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.modfor 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:
200 OK – The findings.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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_authis off or from an exempt network.
Returns a repository’s latest OpenSSF Scorecard checks and overall score.
scannedis false (andchecks[]) when no Scorecard run is stored.modeisremotefor the complete check set,localfor the subset Scorecard computes from a clone alone, and empty for a scan that predates the distinction.overallis absent for scans stored before the aggregate was kept.Handler:
handleRepoScorecard.- Request Headers:
If-None-Match (string) – An
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on 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;
-1when 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:
200 OK – The checks.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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_authis 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
untilends it at the latest plausible commit time (UTC midnight two days ahead), and a givenuntilis never later than that bound. Ordered by login then full name.Handler:
handleRepoContributors.- Request Headers:
If-None-Match (string) – An
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on 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 a400(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 a400(since 0.29.99). A window whosesinceis not beforeuntilis a400.
- 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:
200 OK – One row per person.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request – An id that is not a positive integer, a date that does not parse, or
sincenot beforeuntil.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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_authis off or from an exempt network.
Returns the number of distinct contributors per affiliation in the window.
The same people as
repositoryContributorIdentitiesfor 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
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on 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 a400(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 a400(since 0.29.99). A window whosesinceis not beforeuntilis a400.
- Response JSON Array of Objects:
affiliation (string, required) – The organization, or
(unknown).contributor_count (integer, required)
- Status Codes:
200 OK – One row per affiliation.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request – An id that is not a positive integer, a date that does not parse, or
sincenot beforeuntil.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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_authis 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
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on 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 a400(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 a400(since 0.29.99). A window whosesinceis not beforeuntilis a400.
- 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_contributorsminusaffiliation_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:
200 OK – The coverage snapshot.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request – An id that is not a positive integer, a date that does not parse, or
sincenot beforeuntil.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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_authis 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
untilends it at the latest plausible commit time (UTC midnight two days ahead), and a givenuntilis never later than that bound. The envelope echoes the window in effect:untilis the exclusive upper bound (the day after the requesteduntil), or0001-01-01T00:00:00Zwhen 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 thecontributorsandcommittersmetrics 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
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on 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 a400(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 a400(since 0.29.99). A window whosesinceis not beforeuntilis a400.limit (integer) – Rows to return; values that are not positive integers mean the default, larger values are capped at 100.
bots (string) –
hideleaves out automation accounts (bot account types,[bot]and…botlogins, 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:
200 OK – The ranking.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request – An id that is not a positive integer, a date that does not parse, or
sincenot beforeuntil.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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_authis 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 a400; an id no repository has is a404on 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 a400(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) –
hideleaves out automation accounts, as inrepositoryTopContributors.
- 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) –
nullwhile the history backfill has not reached this contributor: an emptyelsewherethen means “pending”, not “nowhere else”. Automation accounts staynullby 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:
200 OK – The contributors and their other repositories.
400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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
monthis 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:
200 OK – The activity view.
400 Bad Request –
cntrbIDis not a UUID, orbucketis notmonth.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
404 Not Found –
contributor not found: the id parsed, but no contributor has it.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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_authis off or from an exempt network.
Returns the comparison metric catalog.
The definitions behind
GET /api/v1/compareandGET /api/v1/compare/snapshot, with what each improves on the CHAOSS metric it follows. Constant for a release; sent withCache-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) –
temporalmetrics are compared byGET /api/v1/compare,snapshotmetrics byGET /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:
200 OK – The catalog.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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_authis 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
sinceand the entity’s first activity (data_start) tountil, so series of one answer may differ in length: align them bybucket. 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 (403entity_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). NoETagis 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
repositoryMetricSeriesfor the same parameters (since 0.29.121), shared with the repository page.Handler:
handleCompare.- Query Parameters:
metric (string:enum, required) – A
temporalid from the metric catalog.entities (string, required) – Comma-separated, at most 7:
repo:<id>ororg:<host>/<login>.since (string:date) – First day (
YYYY-MM-DD). Default: the bucket boundary three years beforeuntil’s bucket. Unlike the repository routes, a value that does not parse is a400.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 a400.bucket (string:enum)
retention_threshold (integer) –
contributor_retentiononly. 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) –
temporalmetrics are compared byGET /api/v1/compare,snapshotmetrics byGET /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) –
repoentities only.series[].entity.host (string) –
orgentities only.series[].entity.login (string) –
orgentities only.series[].entity.label (string, required) –
owner/namefor 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 formonth.series[].points[].value (number, required)
series[].parts (object) –
contributor_retentiononly: the component seriesdrive_byandrepeat, whose sum ispoints.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 formonth.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:
200 OK – The series.
400 Bad Request –
metricis not a temporal catalog id;entitiesis missing, malformed or longer than 7; a date does not parse;sinceis not beforeuntil;bucketis notweekormonth; orretention_thresholdis not a positive integer.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response EntityOutOfScope.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
X-Cache (string) –
hitwhen 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_authis 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
snapshotid from the metric catalog.entities (string, required) – Comma-separated, at most 7:
repo:<id>ororg:<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) –
temporalmetrics are compared byGET /api/v1/compare,snapshotmetrics byGET /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.SnapshotValuewith 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) –
repoentities only.values[].entity.host (string) –
orgentities only.values[].entity.login (string) –
orgentities only.values[].entity.label (string, required) –
owner/namefor 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_countforupstream_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:
200 OK – One value per entity, in request order.
400 Bad Request –
metricis not a snapshot catalog id, orentitiesis missing, malformed or longer than 7.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response EntityOutOfScope.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- GET /api/v1/entities/search
- Operation:
entitySearchResults- Access:
a session or an API token; anonymous callers too while
api.require_authis 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, orcollected, 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,uncollectedcarries 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 forentities.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:
200 OK – The matches.
400 Bad Request –
qis missing or blank.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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 withgroup(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) –
fleetfor an administrator withoutgroup;user(the caller’s groups) for anyone else;groupwithgroup.scope.group_id (integer:int64)
scope.repos (integer, required) – Repositories in the scope (0 for
fleet).scope.source (string:enum, required) –
matviewreads the refreshed supply-chain views (fleet scope);livecomputes 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:
200 OK – One page of packages.
400 Bad Request –
invalid sort, orinvalid group(not a positive integer).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
404 Not Found –
group not found(no such group, or one the caller does not own).429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error –
group lookup failedorpackage list failed; the cause is in the api log.503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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.nameis 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) –
fleetfor an administrator withoutgroup;user(the caller’s groups) for anyone else;groupwithgroup.scope.group_id (integer:int64)
scope.repos (integer, required) – Repositories in the scope (0 for
fleet).scope.source (string:enum, required) –
matviewreads the refreshed supply-chain views (fleet scope);livecomputes 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:
200 OK – The package profile.
400 Bad Request – An empty ecosystem or name, or
invalid group.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
404 Not Found –
package has no findings in this scope, orgroup not found.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A fixed phrase naming the part that failed (
package profile failed, …); the cause is in the api log.503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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.
capacityisnullwhen the store cannot answer. For an API token,capacityreports 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
falsefor 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) –
enforcerefuses past the value;shadowcounts and logs but never refuses;offneither 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;
-1for an administrator’s session (unscoped).
- Status Codes:
200 OK – The caller. Sent
private, no-store.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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 (
kindweb), the tokensPOST /api/v1/auth/tokenminted and the tokens the web process’s/api/proxy holds (kindapi; both are minted from a browser session:from_web_sessionistruewhile that session lives andfalseonce it has expired, which the SPA’s 30-day token outlives). The session presenting this request iscurrent. Operator-issued API tokens are not sessions and are not listed. A browser session idle pastweb.session_idle_minutesis not live and not listed.last_used_atmoves, at most once a minute (every half bound when the bound is under two minutes), forkindwebonly; 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) –
webis a browser session of the web GUI;apiis a Bearer token.sessions[].from_web_session (boolean, required) – The token’s browser session is still live (every
kindapisession is minted from one;falseonce it has expired, and forkindweb).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_atuntil its first); forkindapi, the mint time.sessions[].expires_at (string:date-time, required)
- Status Codes:
200 OK – The sessions, newest first.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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/tokentokens 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 is401too — 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:
200 OK – Done;
endedcounts the sessions and tokens deleted.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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
422carrying 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 (
erroris a sentence saying an API token cannot change account settings), or a sign-in older thanweb.session_idle_minutes(since 0.29.113, OWASP ASVS V7.5.1:errorisreauthentication_requiredandmessagesays 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;
messagesays why, in the words the web form uses.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. 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 pasthttp_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
200withstatusinvalidand changes nothing. A database failure is a500withstatuserror; the link still works.tokenis not required: a body without it ({}) is read as an empty token and answers200withstatusinvalid, 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:
200 OK – The outcome.
400 Bad Request – The body is not a JSON object.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – The database failed; nothing changed and the link still works.
503 Service Unavailable – A presented token could not be checked, or this server runs without a store (
accounts unavailable), or the request ran pasthttp_timeout_seconds(plain text).
- 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
204too, unlessapi.require_authis on, where the authentication layer answers401first. Anotherapiprocess 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 answered400.Handler:
handleLogout.- Status Codes:
204 No Content – The session token no longer exists.
400 Bad Request – An API token was presented; an administrator revokes those.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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.
fleetholds the repositories under organizations an administrator registered;minethe 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:
200 OK – The two lists.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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
limitfor 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:
200 OK – The list. Sent
private, no-store.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
X-Cache (string:enum) –
hit(fresh),stale(expired, being refreshed) ormiss(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;
statusisapprovedwhen 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:
200 OK – The groups.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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:
200 OK – The new group’s id.
400 Bad Request – The body is not
{"name": "…"}, the name is empty, or it is longer than 200 characters.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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.
sortis checked against an allowlist (unknown keys fall back toname), 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) –
ascordesc: the direction applied (0.29.100; aDESCsent is echoed asdesc).
- Status Codes:
200 OK – The page.
400 Bad Request – The group id is not an integer.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
404 Not Found – No group of the caller’s has that id (
no group of yours with that id); an administrator’s session reads any group, an API token only its owner’s.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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.
kindrepo(the default) addsurls(or the singleurl, used only whenurlsholds 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 underweb.auto_approve_add_limit.kindorgregisters one organization (one URL per request). An administrator’s registration, or one of an organization already tracked elsewhere, answersregistered: 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
invalidand skipped, the rest go through; a paste with no usable line is a400.An add that does not fit the account’s repository allocation (
403) or its daily additions (429, quotarepo_links_per_day, until 00:00 UTC) adds nothing and is refused with thecapacity_limitbody. A group that is not the caller’s is a404; one an administrator rejected is a409. A500naming how manyrepositories could not be addedmeans 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
urlsholds a non-empty entry.urls[] (string)
kind (string:enum) – Any value other than
orgadds 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 neededpending_approvalandrequest_id. For an organization:registered: 1, orpending_approval: 1withrequest_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,kindallocation). 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-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – JSON
erroradd request <id>: <f> of <n> repositories could not be added; try adding them again(fof thenURLs 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}/reposwithkindorg. 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:
200 OK – The organizations.
400 Bad Request – The group id is not an integer.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
404 Not Found – No group of the caller’s has that id (
no group of yours with that id); an administrator’s session reads any group, an API token only its owner’s.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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:
200 OK – The waiting items.
400 Bad Request – The group id is not an integer.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
404 Not Found – No group of the caller’s has that id (
no group of yours with that id); an administrator’s session reads any group, an API token only its owner’s.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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 a400; an id no repository has is a404on 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:
200 OK – Removed.
400 Bad Request – An id is not a positive integer.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
404 Not Found – No group of the caller’s has that id (
no group of yours with that id), or the repository is not in it (that repository is not in that group).429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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:
200 OK – The collections.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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 answers200with emptygroupsandrepos.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 byname.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) –
ascordesc: the direction applied (0.29.100; aDESCsent is echoed asdesc).
- Status Codes:
200 OK – The page.
400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
404 Not Found – No collection with that id (0.29.100; it answered 200 with an empty page).
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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_idor, when that is absent or 0, bygroup_name(found or created). The copy fits the caller’s repository allocation (else403) and its daily additions (else429, quotarepo_links_per_day), or adds nothing. An id with no collection adds nothing (added0).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_idis absent or 0.
- Response JSON Object:
added (integer:int64, required)
group_id (integer:int64, required)
- Status Codes:
200 OK – The repositories newly linked.
400 Bad Request – The id is not an integer, the body is not JSON, or neither
group_idnorgroup_nameis given.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – The target group is not the caller’s (
text/plain), or the copy does not fit the account’s repository allocation (capacity_limit,kindallocation).404 Not Found – No collection with that id (0.29.100; it answered 200 and linked nothing).
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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:
200 OK – Starred.
400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
404 Not Found – No collection with that id.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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:
200 OK – Not starred.
400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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:
200 OK – The accounts.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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/tokentokens and proxy tokens are deleted, and each is401at 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:
200 OK – Done;
endedcounts the sessions and tokens deleted (0for an account with none, and for an id no account has).400 Bad Request – The user id is not an integer.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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:
200 OK – Done.
400 Bad Request – The user id is not an integer, the body is not a JSON object with a boolean
admin(for example{"admin": "yes"},{}— the field is required since 0.29.100 — or no body at all), or the caller tried to demote itself.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – No user with that id.
409 Conflict – The account is the last administrator.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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/pendingare 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:
200 OK – Done (a group already rejected answers the same).
400 Bad Request – The group id is not an integer.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – No group with that id.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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:
200 OK – The waiting add requests.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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: falseand changes nothing, except that approving an approved request again resumes an interrupted repository pass, or registers an organization whose registration an older release lost (thenchanged: 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:
200 OK – Done.
400 Bad Request – The request id is not an integer, or the decision is neither
approvenorreject.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – No such add request.
409 Conflict – The group was rejected, or an organization cannot be registered (not on this deployment’s GitHub host or GitLab instance, a URL carrying credentials, or too long); the body says what to do.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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,drainingandtotal, plus any other status present.drainingcounts rows parked by the staging drain orheal-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:
200 OK – The counts.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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.
sortis checked against an allowlist; an unknown key uses the default order (collecting first) and the envelope then echoes emptysortanddir. 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 whensortis 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:
200 OK – The page.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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_mbin 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_secondsin 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:
200 OK – The totals.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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, andsortin the answer is the key applied), ties by id.totalcounts 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:
200 OK – The repositories.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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, oroutdated: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 a400; an id no repository has is a404on 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:
200 OK – The repository’s held answers.
400 Bad Request – An id that is not a positive integer.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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 a400; an id no repository has is a404on every repository route (since 0.29.99).
- Response JSON Object:
ok (boolean, required)
repo_id (integer:int64, required)
- Status Codes:
200 OK – Done.
400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – The repository has no queue row.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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 to409).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:
200 OK – Created.
400 Bad Request – The body is not JSON or
nameis empty (name required).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
409 Conflict – A collection with that name already exists (0.29.100; it was a 500).
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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
descriptionorpositionbecomes empty or 0. An id with no collection is answered500.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:
200 OK – Done.
400 Bad Request – The id is not an integer, the body is not JSON, or
nameis empty.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – No collection with that id (0.29.100; it was a 500).
409 Conflict – A collection with that name already exists (0.29.100; it was a 500).
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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:
200 OK – Done.
400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – No collection with that id (0.29.100; it answered 200).
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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:
200 OK – Done.
400 Bad Request – The id is not an integer, the body is not JSON,
group_idis missing or 0, or the group is not owned by an administrator.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – No collection with that id (0.29.100; it was a 500), or no group with that id (
no group with that id).429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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:
200 OK – Done.
400 Bad Request – The request is malformed (an id that is not an integer, a value outside its enum, a missing parameter). Shared response BadRequest.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – No collection with that id (0.29.100; it answered 200).
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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 thetoken_requests_per_hourandtoken_requests_per_dayquotas.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:
200 OK – The tokens.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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 a500.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:
201 Created – Granted.
400 Bad Request – The body is not JSON;
user_idis missing, not positive, above 2147483647 (0.29.100; it was a 500), or names no account;labelis blank or too long; or a lifetime or allowance is out of range.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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:
200 OK – Revoked.
400 Bad Request – The id is not a positive integer.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – No API token with that id.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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:
200 OK – The defaults.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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_hourandtoken_requests_per_dayquotas. Changing the value of one thataveloxis.jsonsets is refused with409; 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:
200 OK – The defaults as saved.
400 Bad Request – The body is not JSON, or a value is missing or out of range.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
409 Conflict –
aveloxis.jsonsets an allowance quota whose value the request changes; change it there.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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.
quotaslists every quota in name order.signups_per_daycovers the last 30 UTC days (nullwhen there were none).busiest_todayholds 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) –
enforcerefuses past the value;shadowcounts and logs but never refuses;offneither counts nor refuses.quotas[].source (string:enum, required) – The
aveloxis.jsonword for this quota. OnlyWEBquotas 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).nullmeans 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) –
enforcerefuses past the value;shadowcounts and logs but never refuses;offneither 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).nullmeans 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) –
enforcerefuses past the value;shadowcounts and logs but never refuses;offneither 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:
200 OK – The capacity overview.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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).nullmeans 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) –
enforcerefuses past the value;shadowcounts and logs but never refuses;offneither 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:
200 OK – The accounts.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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_houris fixed and is not a quota here.Handler:
handleAdminCapacityQuota.- Parameters:
name (string:enum, required)
- Request JSON Object:
allowed (integer, required)
mode (string:enum, required) –
enforcerefuses past the value;shadowcounts and logs but never refuses;offneither counts nor refuses.
- Response JSON Object:
name (string, required)
allowed (integer, required)
mode (string:enum, required) –
enforcerefuses past the value;shadowcounts and logs but never refuses;offneither counts nor refuses.
- Status Codes:
200 OK – Saved.
400 Bad Request – The body is not JSON,
allowedis missing or out of range, ormodeis unknown.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – No quota with that name (checked after the body parses).
409 Conflict –
aveloxis.jsonsets this quota (DEFAULT,SHADOWorOFF); change it there.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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:
200 OK – Saved.
400 Bad Request – The body is not a JSON object,
contact_emailis missing (0.29.100; a body without it cleared the address), or it is neither empty nor an e-mail address within the length limit.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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_idwins when both are given. A login matches regardless of letter case; when more than one account has it, the answer is409with the candidates to choose from byuser_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).nullmeans 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) –
enforcerefuses past the value;shadowcounts and logs but never refuses;offneither 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:
200 OK – The account.
400 Bad Request –
user_idis not a positive integer in range.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – No such account (also for a missing or empty
login).409 Conflict – More than one account has this login apart from letter case. Never stored.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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; allnulland no note removes the override. That removal does not check the account: for an id with no account it answers200{"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:
200 OK – Saved.
400 Bad Request – The id is not a positive integer in range, the body is not JSON, a value is not between 1 and 2,147,483,647, or the note is over 500 characters.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – No account with that user id.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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:
200 OK – Added.
400 Bad Request – The body is not JSON,
cidris not a network in CIDR form, or the note is too long.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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:
200 OK – Removed.
400 Bad Request – The body is not JSON, or
cidris not a network in CIDR form.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – That network is not on the allowlist.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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
supersededand cannot be adopted.Handler:
handleAdminForgeIDChanges.- Query Parameters:
pending (string) –
1lists 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-idrecords 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:
200 OK – The changes.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error –
forge-ID changes could not be listed.503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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-idasks 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 a400; an id no repository has is a404on 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:
200 OK – Adopted.
400 Bad Request – The repository id is not a positive integer, the body is unreadable, too large or not JSON, an ID is missing, or the note is too long.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 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. Shared response Forbidden.
404 Not Found – No unadopted change with that pair is recorded for this repository.
409 Conflict – Superseded; the repository no longer stores the old ID. Nothing was written.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later. Either the database has not been migrated to this release (0.29.140: the api process does not migrate; JSON naming the deploy steps, nothing written), or the shared condition of every route: a token could not be checked because the database failed (JSON), or the request ran past
http_timeout_seconds(plain text).
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_authis 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:
200 OK – The repository groups.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- GET /api/v1/repos
- Operation:
augurRepositories- Access:
a session or an API token; anonymous callers too while
api.require_authis 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:
200 OK – The repositories.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- GET /api/v1/repos/{repoID}
- Operation:
augurRepository- Access:
a session or an API token; anonymous callers too while
api.require_authis 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,NameandOwnerare read from the database; every other field carries its zero value (GroupID0, 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 a400; an id no repository has is a404on 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
falsehere.CreatedAt (string:date-time, required) – Always
0001-01-01T00:00:00Zhere.UpdatedAt (string:date-time, required) – Always
0001-01-01T00:00:00Zhere.PlatformID (string, required) – Always empty here.
- Status Codes:
200 OK – The repository.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found).429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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
200with[](no404). 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:
200 OK – The group’s repositories.
400 Bad Request –
groupIDis not an integer (invalid repo_group_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- GET /api/v1/owner/{owner}/repo/{repo}
- Operation:
augurRepositoryByOwnerAndName- Access:
a session or an API token; anonymous callers too while
api.require_authis 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
403naming 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:
200 OK – The repository.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this owner and name (
repo not found).429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- GET /api/v1/rg-name/{rgName}
- Operation:
augurRepositoryGroupByName- Access:
a session or an API token; anonymous callers too while
api.require_authis 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:
200 OK – The repository group.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
404 Not Found – No repository group has this name (
repo group not found).429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- GET /api/v1/rg-name/{rgName}/repo-name/{repoName}
- Operation:
augurRepositoryByGroupAndName- Access:
a session or an API token; anonymous callers too while
api.require_authis 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 structured403naming 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:
200 OK – The repository.
401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository group has this name (
repo group not found), or the group has no repository with this name (repo not found).429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
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_authis 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_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400.periodbuckets byday,week,monthoryear; it defaults tomonth, and any other value is read asmonth(no400). 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 a400; an id no repository has is a404on 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 a400(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 a400.period (string) – Augur’s bucket size,
day,week,monthoryear. Any other value is read asmonth, 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:
200 OK – One row per bucket that has activity, oldest first.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400.periodbuckets byday,week,monthoryear; it defaults tomonth, and any other value is read asmonth(no400). 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 a400; an id no repository has is a404on 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 a400(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 a400.period (string) – Augur’s bucket size,
day,week,monthoryear. Any other value is read asmonth, 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:
200 OK – One row per bucket that has activity, oldest first.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400.periodbuckets byday,week,monthoryear; it defaults tomonth, and any other value is read asmonth(no400). 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 a400; an id no repository has is a404on 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 a400(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 a400.period (string) – Augur’s bucket size,
day,week,monthoryear. Any other value is read asmonth, 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:
200 OK – One row per bucket that has activity, oldest first.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 a400; an id no repository has is a404on every repository route (since 0.29.99).
- Response JSON Object:
issue_backlog (integer, required)
- Status Codes:
200 OK – The value.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 a400; an id no repository has is a404on every repository route (since 0.29.99).
- Response JSON Object:
throughput (number, required)
- Status Codes:
200 OK – The value.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400. 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 a400; an id no repository has is a404on 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 a400(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 a400.
- 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:
200 OK – One row per closed issue.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 a400; an id no repository has is a404on every repository route (since 0.29.99).
- Response JSON Object:
avg_issue_resolution_days (number, required)
- Status Codes:
200 OK – The value.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 a400; an id no repository has is a404on 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:
200 OK – The abandoned issues.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 a400; an id no repository has is a404on every repository route (since 0.29.99).
- Response JSON Object:
open_count (integer, required)
- Status Codes:
200 OK – The value.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 a400; an id no repository has is a404on every repository route (since 0.29.99).
- Response JSON Object:
closed_count (integer, required)
- Status Codes:
200 OK – The value.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400.periodbuckets byday,week,monthoryear; it defaults tomonth, and any other value is read asmonth(no400). 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 a400; an id no repository has is a404on 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 a400(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 a400.period (string) – Augur’s bucket size,
day,week,monthoryear. Any other value is read asmonth, 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:
200 OK – One row per bucket that has activity, oldest first.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 isbegin_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400.periodbuckets byday,week,monthoryear; it defaults tomonth, and any other value is read asmonth(no400). 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 a400; an id no repository has is a404on 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 a400(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 a400.period (string) – Augur’s bucket size,
day,week,monthoryear. Any other value is read asmonth, 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:
200 OK – One row per bucket that has activity, oldest first.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400.periodbuckets byday,week,monthoryear; it defaults tomonth, and any other value is read asmonth(no400). 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 a400; an id no repository has is a404on 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 a400(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 a400.period (string) – Augur’s bucket size,
day,week,monthoryear. Any other value is read asmonth, 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:
200 OK – One row per bucket that has activity, oldest first.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400.periodbuckets byday,week,monthoryear; it defaults tomonth, and any other value is read asmonth(no400). 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 a400; an id no repository has is a404on 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 a400(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 a400.period (string) – Augur’s bucket size,
day,week,monthoryear. Any other value is read asmonth, 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:
200 OK – One row per bucket that has activity, oldest first.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400. 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 a400; an id no repository has is a404on 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 a400(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 a400.
- 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:
200 OK – One row per merged pull request.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 isbegin_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400.periodbuckets byday,week,monthoryear; it defaults tomonth, and any other value is read asmonth(no400). 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 a400; an id no repository has is a404on 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 a400(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 a400.period (string) – Augur’s bucket size,
day,week,monthoryear. Any other value is read asmonth, 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:
200 OK – One row per bucket that has activity, oldest first.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 isbegin_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400.periodbuckets byday,week,monthoryear; it defaults tomonth, and any other value is read asmonth(no400). 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 a400; an id no repository has is a404on 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 a400(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 a400.period (string) – Augur’s bucket size,
day,week,monthoryear. Any other value is read asmonth, 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:
200 OK – One row per bucket that has activity, oldest first.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400.periodbuckets byday,week,monthoryear; it defaults tomonth, and any other value is read asmonth(no400). 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 a400; an id no repository has is a404on 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 a400(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 a400.period (string) – Augur’s bucket size,
day,week,monthoryear. Any other value is read asmonth, 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:
200 OK – One row per bucket that has commits, oldest first.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 isbegin_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400. 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 a400; an id no repository has is a404on 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 a400(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 a400.
- 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:
200 OK – One row per contributor.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400.periodbuckets byday,week,monthoryear; it defaults tomonth, and any other value is read asmonth(no400). 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 a400; an id no repository has is a404on 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 a400(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 a400.period (string) – Augur’s bucket size,
day,week,monthoryear. Any other value is read asmonth, 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:
200 OK – One row per bucket that has activity, oldest first.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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;
periodand 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 a400; an id no repository has is a404on 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:
200 OK – One row per snapshot.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis off or from an exempt network.
Returns the latest star count.
From the latest metadata snapshot. A repository without one answers
stars0 and an emptyrepo_name.Handler:
handleStarsCount.- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on every repository route (since 0.29.99).
- Response JSON Object:
repo_name (string, required)
stars (integer, required)
- Status Codes:
200 OK – The value.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 a400; an id no repository has is a404on 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:
200 OK – One row per snapshot.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis off or from an exempt network.
Returns the latest fork count.
From the latest metadata snapshot. A repository without one answers
forks0 and an emptyrepo_name.Handler:
handleForkCount.- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on every repository route (since 0.29.99).
- Response JSON Object:
repo_name (string, required)
forks (integer, required)
- Status Codes:
200 OK – The value.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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
watcherswhere thestarsandforksseries carryvalue(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 a400; an id no repository has is a404on 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:
200 OK – One row per dated snapshot, oldest first.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis off or from an exempt network.
Returns the latest watcher count.
From the latest metadata snapshot. A repository without one answers
watchers0 and an emptyrepo_name.Handler:
handleWatchersCount.- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on every repository route (since 0.29.99).
- Response JSON Object:
repo_name (string, required)
watchers (integer, required)
- Status Codes:
200 OK – The value.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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
500for a caller the scope check lets through (an administrator, or a caller without an identity), not a404.Handler:
handleLanguages.- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on every repository route (since 0.29.99).
- Response JSON Object:
repo_id (integer:int64, required)
primary_language (string, required)
- Status Codes:
200 OK – The value.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis off or from an exempt network.
Returns the repository’s dependencies with their libyear.
With neither
licensenorscope, 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
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on 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}/licensesreturned it.scope (string:enum) –
runtimekeeps only runtime-scope dependencies (dev, test, build, optional and peer rows excluded);allkeeps every scope. Any other value is a400.
- 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:
200 OK – The dependency rows.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request –
repoIDis not a positive integer, orscopeis neitherallnorruntime.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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_authis 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 neitherlicensenorscope, 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
ETagfrom an earlier answer. When it names the current one the answer is304with no body.
- Parameters:
repoID (integer:int64, required) – A repository’s id (
repo_id). A value that is not a positive integer is a400; an id no repository has is a404on 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}/licensesreturned it.scope (string:enum) –
runtimekeeps only runtime-scope dependencies (dev, test, build, optional and peer rows excluded);allkeeps every scope. Any other value is a400.
- 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:
200 OK – The dependency rows.
304 Not Modified – The
If-None-Matchvalidator names the current answer. Shared response NotModified.400 Bad Request –
repoIDis not a positive integer, orscopeis neitherallnorruntime.401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- Response Headers:
ETag (string) – The answer’s validator, weak (
W/"…") when the answer depends only on the repository’s stored state. Send it back asIf-None-Match.Cache-Control (string:enum) –
no-cachefor an answer any caller may be given (revalidate each time);private, no-storefor an answer about this caller, which nothing may store.X-Cache (string) –
hitwhen 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,429or500included; 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_authis 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_datethroughend_date, both inclusive UTC days (since 0.29.99; before,end_dateended at that day’s midnight), by default the year before today through today. A date that does not parse asYYYY-MM-DDis a400.periodbuckets byday,week,monthoryear; it defaults tomonth, and any other value is read asmonth(no400). 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 a400; an id no repository has is a404on 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 a400(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 a400.period (string) – Augur’s bucket size,
day,week,monthoryear. Any other value is read asmonth, 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:
200 OK – One row per bucket that has activity, oldest first.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 a400; an id no repository has is a404on 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:
200 OK – The releases.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 a400; an id no repository has is a404on 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:
200 OK – One row per language.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 a400; an id no repository has is a404on 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:
200 OK – One row per language.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; 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_authis 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 a400; an id no repository has is a404on 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:
200 OK – One row per language.
400 Bad Request –
repoIDis not a positive integer (invalid repo_id).401 Unauthorized – No valid Bearer token: missing, unknown, expired or revoked. Shared response Unauthorized.
403 Forbidden – 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,kindallocation). Shared response RepoOutOfScope.404 Not Found – No repository has this id (
repo not found). Shared response RepoNotFound.429 Too Many Requests – Refused by a rate limit; retry after
Retry-Afterseconds. Shared response TooManyRequests.500 Internal Server Error – A server-side failure. Shared response ServerError.
503 Service Unavailable – Retry later; this is never a sign-out. Shared response ServiceUnavailable.
- 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,429or500included; the reference declares it on the success response.