---
title: "Pairwise"
method: GET
path: "/api/contagion/pairwise"
tags: ["contagion"]
---

# Pairwise

`GET /api/contagion/pairwise`

## Request

- Base URL: `https://basisprotocol.xyz` (the document declares no server; this is the origin it was published from)
- URL: `https://basisprotocol.xyz/api/contagion/pairwise`
- Auth: none declared

Return the calibrated pairwise co-stress matrix for ``peg_type``.

Trustworthy (``sample_floor_met``) pairs are ordered first, then by lift
desc. The envelope carries the provenance of the latest calibration run; the
matrix is read from the frozen ``pairwise_costress`` table, never recomputed
here. Pre-calibration (no rows / no run) returns an empty set with a null
envelope — an honest "not yet calibrated", not a synthesized value.

## Query parameters

- `peg_type` string

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/basisprotocol/apis/basis-protocol-api.md) · [All operations](https://skmtc.dev/basisprotocol/apis/basis-protocol-api/llms.txt) · [OpenAPI document](https://skmtc.dev/basisprotocol/apis/basis-protocol-api/revisions/c0067366b9c0?raw)
