Match a patient profile
The primary endpoint. Queries ClinicalTrials.gov live and returns every open frontier option — interventional trials and expanded-access programs — with a per-criterion match state. Only `condition` is required; every profile field you omit simply produces fewer checks. States from free-text criteria are signposts (mentioned/unknown), never verdicts — only the site decides eligibility.
curl -s https://www.trial0.com/api/v1/match \
-H 'authorization: Bearer tr0_test_sandbox' \
-H 'content-type: application/json' \
-d '{
"condition": "glioblastoma",
"stage": "Recurrent",
"biomarkers": ["MGMT methylated", "IDH wild-type"],
"age": 54,
"location": {"lat": 42.3601, "lng": -71.0589, "radius_miles": 200},
"limit": 5
}'