Related

Sources semantically similar to an anchor source

Changed on

Pulls the anchor source's vector from the polymorphic ENTITIES_INDEX (orgs + products + sources) via getByIds, then runs query restricted to type=source so the candidate pool isn't wasted on parent orgs/products that would be filtered out post-hydration anyway. scope=org adds an org_id filter; scope=global (default) keeps the source filter only.

Degrades gracefully the same way /v1/related/releases does — missing binding, unembedded anchor, or query error returns { degraded: true, degradedReason, items: [] } with HTTP 200.

Each surviving row carries its source basics plus an org rollup and a recent-release window-function stat block (releaseCount, latestDate, latestTitle, latestVersion, recentCount) so a rail card can render without follow-up requests.

get/related/sources

Request

  • Base URL: https://api.releases.sh
  • URL: https://api.releases.sh/related/sources
  • Auth: none declared

Query parameters

sourcestring required

Anchor source id (src_…) or slug.

scope'org' | 'global'

Restrict candidates to the anchor's org, or run unscoped.

limitinteger

Max neighbors to return. Clamped to 1–25.

Response

Successful or degraded neighbor list.

OR

Changes

    • info

      added subschema #1 subschema #2 to the response body anyOf list for the response status

    • info

      removed subschema #1 subschema #2 from the response body anyOf list for the response status

    • warning

      added the new too_large enum value to the / response property for the response status

    • warning

      added the new too_large enum value to the / response property for the response status