Impact GateDocs

Guides

How to find who consumes your API before you change it

Find API consumers across repositories, troubleshoot missing matches, and understand what code and runtime evidence can and cannot prove.

On this page

Four sources of consumer evidence#

Before you rename a field, remove an endpoint, or set a sunset date, build a caller list. No single source has every consumer, so use the sources together and label what each one actually proves.

  1. Code search across repositories

    Search for the path, client wrapper, generated operation name, field, and repository references. It is fast and useful for leads, but it misses dynamic URLs and code outside the search scope.

  2. Contract-to-code tracing

    Start from the changed OpenAPI operation and follow supported HTTP client patterns into consumer code. Impact Gate performs this for selected, indexed JavaScript, TypeScript, and Java repositories.

  3. Runtime metrics and APM

    Prometheus request counters or Datadog indexed APM spans show matched route activity. A caller relationship requires an explicitly recorded caller identity and a reviewed mapping to an indexed consumer.

  4. Owner and external-consumer review

    Mobile apps, partner clients, scripts, generated clients, and repositories outside the workspace need an owner to confirm their use.

A repeatable discovery workflow#

  1. Start with the provider operation

    Record the HTTP method, normalized route template, changed field or parameter, and the provider repository/commit.

  2. Build the repository scope

    Select the provider and every known consumer repository. Include a consumer-only repository when it has caller code but no provider contract.

  3. Index and inspect Coverage

    Wait for each repository to finish indexing. Check supported files, detected contracts, skipped files, and the indexed commit before reading the API inventory.

  4. Follow each reference

    Open the consumer source at the recorded commit. Verify the call, the response field access or request construction, and the service identity with its owner.

  5. Add runtime and owner evidence

    Connect Prometheus or Datadog when available, review route and caller coverage, then ask about consumers that cannot be represented in the index.

The result is an evidence inventory, not a universal registry of every deployed caller. Keep the source commit, observation window, and unresolved questions alongside the change review.

Troubleshoot missing consumer matches#

SymptomWhat to check next
No consumer appearsConfirm the repository is selected and indexed, then check Coverage and the indexed commit. Search the exact method/path and client wrapper in the indexed source.
The route is called but does not matchCompare HTTP method and normalized route template. Explicit URL origins and OpenAPI server origins can help; a route-only match can remain possible when the deployment host is unverified.
A repository has no OpenAPI documentKeep it selected as a consumer. A consumer repository can provide caller evidence without being an API provider.
Generated or dynamic client code is missingCheck generated source and URL construction in the indexed commit. Dynamic evaluation, opaque reflection, unresolved string construction, and external consumers can remain unknown.
The index is oldRead Last index and re-index after restoring access, adding a contract, or changing consumer code. A PR report may use the PR's base/head contract but still use the selected consumer snapshot.
Runtime shows traffic but no callerRoute traffic establishes observed service/route activity. Add a trustworthy low-cardinality caller field and map its service to an indexed consumer, or keep the caller unknown.

How to read the result#

ResultWhat it meansAction
Verified consumer evidenceThe inspected source establishes the relevant relationship or changed-field use within the analysis scope.Coordinate with the named consumer owner and review the migration.
Possible / cannot tellThe relationship is plausible, but host identity, dynamic code, data flow, or another boundary prevents a complete conclusion.Inspect source and deployment metadata; keep it open until the ambiguity is resolved or accepted.
No static caller locatedNo supported reference was found in the selected indexed repositories.Check runtime, external clients, generated code, and repository scope. Do not call this zero usage.
Runtime callerTelemetry supplied a caller identity and it was mapped to an indexed consumer.Compare with static evidence; runtime route activity does not prove a specific call site executed.

Continue the investigation#

Explore the documentation

↑↓ NavigateEnter Open guideSearch stays in your browser