Narratives, explanations and peers

These routes return what Arche generated about a company: prose on what changed in a period and why a data-quality anomaly was raised, the companies whose reported financials most resemble it, and the profiles that comparison is built on. Each takes the company in its {company_id} path segment, as the company's UUID, its CIK or a ticker; a ticker resolves as of the request's as_of.

Narratives need the Growth plan; anomaly explanations, peers and embedding metadata need Scale. A plan without them answers 403 FEATURE_NOT_AVAILABLE, naming what is required.

Dates covered

as_of is required on every route here. Narratives and anomaly explanations cover the filings a company has today. An earlier as_of, on a date when the company's filings were different, may answer 404, and the message says so.

Narratives

curl -X GET "https://api.arche.fi/v1/ai/companies/{company_id}/narratives?as_of={as_of}&narrative_type=CHANGE_SUMMARY&statement_type=INCOME_STATEMENT&page_size=50" \
  -H "X-Api-Key: $ARCHE_API_KEY" \
  -H "Accept: application/json"
  • Name
    narrative_type
    Type
    required
    Description

    CHANGE_SUMMARY, MARGINS_MOVE or ROIC_CHANGE. Each answers a different question, so the parameter selects the narrative rather than filtering a list of them.

  • Name
    statement_type
    Type
    default INCOME_STATEMENT
    Description

    Which statement the narrative draws its inputs from.

A narrative is generated once and cached, so repeating the request returns the same text rather than a fresh rewording. That is deliberate: a figure and the sentence explaining it should not drift apart between two reads.

Anomaly explanations

curl -X GET "https://api.arche.fi/v1/ai/companies/{company_id}/anomaly-explanations?as_of={as_of}&min_severity=HIGH&page_size=50" \
  -H "X-Api-Key: $ARCHE_API_KEY" \
  -H "Accept: application/json"
  • Name
    min_severity
    Type
    optional
    Description

    NONE, LOW, MEDIUM, HIGH or CRITICAL. Filters to explanations at or above that materiality.

These explain anomalies the data-quality rules raised. The anomalies themselves, without prose, come from /v1/data-quality/issues and the statement overlay, and neither of those needs a paid plan or a snapshot.

Peers

curl -X GET "https://api.arche.fi/v1/ai/companies/{company_id}/peers?as_of={as_of}&page_size=50" \
  -H "X-Api-Key: $ARCHE_API_KEY" \
  -H "Accept: application/json"
  • Name
    embedding_type
    Type
    optional
    Description

    The profile the comparison uses. Peer sets are built on WINDOW_10Y, the profile of a company's reported history over a ten-year window.

Each item is a peer set: the company's industry_code, its SIC code, and a ranked peers list, each peer with its company UUID, rank (1 is most similar) and similarity_score, a decimal string. Peers are drawn from companies with the same SIC code and ranked by how closely their reported margins, balance-sheet mix, leverage and scale match, so a company alone in its industry has no peer set. The route is experimental: treat a peer list as a starting point for comparison, not as a classification.

Embedding metadata

curl -X GET "https://api.arche.fi/v1/ai/companies/{company_id}/embeddings/metadata?as_of={as_of}&page_size=50" \
  -H "X-Api-Key: $ARCHE_API_KEY" \
  -H "Accept: application/json"
  • Name
    embedding_type
    Type
    optional
    Description

    PERIOD for one profile per reported period, with its period_end, or a window type such as WINDOW_10Y.

Each item describes one financial profile Arche holds for the company: its embedding_type, period_end for a period profile, embedding_mode (deterministic today) and vector_dim, the profile's length. It tells you which periods the peer comparison can draw on; the vectors themselves are not served.

What is populated today

Coverage here is narrower than the rest of the corpus, and worth knowing before you build on it. Narratives exist for a minority of companies and anomaly explanations for fewer, because both are generated against snapshots rather than computed on read.

A missing narrative answers 404, and its code says why (see Why a narrative is missing). A missing anomaly explanation is an empty page, which means none has been generated for that company and date. The underlying figures are always available from the statement and data-quality routes, which cover the whole corpus.

Was this page helpful?