# Causal Ledger

## List Drivers

> Ranked SPR drivers for one (outcome\_family, outcome\_key). Byar 1978 95% CI. SPR > 1 = feature value over-indexes for this outcome vs. the workspace baseline. Filter by feature\_family (demographic|comorbidity) or feature\_arity (1=univariate, 2=pairwise). min\_support\_only=true (default) hides observed < 5 rows. This is DESCRIPTIVE attribution — v2 causal (ITS + synthetic control) lands via the analytics.public.causal\_attribution pipeline in Phase 5.

```json
{"openapi":"3.1.0","info":{"title":"Platform API","version":"1.0.0"},"servers":[{"url":"https://api.platform.amigo.ai","description":"Production"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API key issued via `POST /v1/{workspace_id}/api-keys`. Pass the returned `api_key` value as a Bearer token."}},"schemas":{"DriversResponse":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"outcome_family":{"type":"string","title":"Outcome Family"},"outcome_key":{"type":"string","title":"Outcome Key"},"sort_by":{"type":"string","title":"Sort By"},"count":{"type":"integer","title":"Count"},"items":{"items":{"$ref":"#/components/schemas/DriverRow"},"type":"array","title":"Items"}},"type":"object","required":["workspace_id","outcome_family","outcome_key","sort_by","count","items"],"title":"DriversResponse"},"DriverRow":{"properties":{"workspace_id":{"type":"string","title":"Workspace Id"},"outcome_family":{"type":"string","title":"Outcome Family"},"outcome_key":{"type":"string","title":"Outcome Key"},"outcome_display":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome Display"},"outcome_code_system":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Outcome Code System"},"feature_arity":{"type":"integer","title":"Feature Arity"},"feature_family_1":{"type":"string","title":"Feature Family 1"},"feature_name_1":{"type":"string","title":"Feature Name 1"},"feature_value_1":{"type":"string","title":"Feature Value 1"},"feature_family_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feature Family 2"},"feature_name_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feature Name 2"},"feature_value_2":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Feature Value 2"},"observed":{"type":"integer","title":"Observed"},"expected":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Expected"},"feature_population":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Feature Population"},"spr":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spr"},"spr_ci_lower":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spr Ci Lower"},"spr_ci_upper":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Spr Ci Upper"},"min_support_met":{"type":"boolean","title":"Min Support Met"},"window_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Window Days"},"as_of_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"As Of Date"}},"type":"object","required":["workspace_id","outcome_family","outcome_key","feature_arity","feature_family_1","feature_name_1","feature_value_1","observed","min_support_met"],"title":"DriverRow","description":"One SPR row — generic (outcome, feature-tuple) grain."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/v1/{workspace_id}/causal/drivers":{"get":{"tags":["Causal Ledger"],"summary":"List Drivers","description":"Ranked SPR drivers for one (outcome_family, outcome_key). Byar 1978 95% CI. SPR > 1 = feature value over-indexes for this outcome vs. the workspace baseline. Filter by feature_family (demographic|comorbidity) or feature_arity (1=univariate, 2=pairwise). min_support_only=true (default) hides observed < 5 rows. This is DESCRIPTIVE attribution — v2 causal (ITS + synthetic control) lands via the analytics.public.causal_attribution pipeline in Phase 5.","operationId":"list_drivers_v1__workspace_id__causal_drivers_get","parameters":[{"name":"outcome_family","in":"query","required":true,"schema":{"const":"disease_incidence","type":"string","title":"Outcome Family"}},{"name":"outcome_key","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Outcome Key"}},{"name":"feature_family","in":"query","required":false,"schema":{"anyOf":[{"enum":["demographic","comorbidity"],"type":"string"},{"type":"null"}],"title":"Feature Family"}},{"name":"feature_arity","in":"query","required":false,"schema":{"anyOf":[{"enum":[1,2],"type":"integer"},{"type":"null"}],"title":"Feature Arity"}},{"name":"min_support_only","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Min Support Only"}},{"name":"sort_by","in":"query","required":false,"schema":{"enum":["spr","observed","feature_population"],"type":"string","default":"spr","title":"Sort By"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DriversResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.amigo.ai/api-reference/readme/platform/causal-ledger.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
