Skip to main content
POST
Estimate Causal Effect

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model_id
string
required

Body

application/json

Request body for causal effect estimation (POST /models/{id}/estimate-causal-effect).

Estimates the average effect of do(treatment = treatment_action) vs do(treatment = control_action) by g-computation over the model's training dataset (the frame is rebuilt from the frozen causal labels). Always asynchronous: returns a job to poll; scalar results land in the job's results summary, per-row effects (tau) via GET /jobs/{id}/results/rows.

estimand
enum<string>
required

Which effect to estimate: ate or att.

Available options:
ate,
att
treatment_action
required

Counterfactual treatment value for the 'treated' arm.

control_action
required

Counterfactual treatment value for the control arm.

model_version_id
string | null

Public ID of a specific model version (e.g. mdlv_A8K2P9QX). If omitted, the latest ready version is used.

Response

Successful Response

Async inference submission response.

job_id
string
required

Public ID of the inference job (e.g. job_A8K2P9QX).

status
string
required
model_version_id
string
required

Public ID of the model version used (e.g. mdlv_A8K2P9QX).