Skip to content
CribScore
Skip to content
CribScore Docs

API Reference

Decision Memo API

One POST gives you a trust-aware shortlist plus a memo you can paste into a recommendation, ticket, or agent response.

Why a memo, not a list#

A bare ranked list hides the reasoning that makes it defensible. The decision memo route returns the shortlist plus an explanation per option (why it ranked where it did, what trade-offs it embodies) and a one-paragraph summary suitable for downstream consumption by an agent or a human.

Request shape#

Three required inputs: geography (ZIP or state), child age in months, and weekly budget. Optional inputs sharpen the shortlist: `priorities` orders dimensions; `shortlist_limit` caps result count; `commute_origin` adds drive-time scoring.

curl -X POST "https://api.cribscore.co/v1/decision/memo" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "geography": "90003",
    "child_age_months": 24,
    "budget_weekly": 350,
    "shortlist_limit": 3,
    "priorities": ["safety_score", "license_status", "commute_minutes"]
  }'

Response shape#

The response includes a `shortlist` array (each entry has `facility_id`, `rank`, `score`, `recommendation`), a one-paragraph `summary`, and a `tradeoffs` array describing the trade-space the ranking embodies.

Response (excerpt)json
{
  "memo_id": "memo_01HZ8YK4X3F8B9T5RC2WN6PHJD",
  "summary": "Three centers within 1.5 miles of 90003 cleared the safety + budget floor. Sunrise leads on safety_score; Maple leads on price.",
  "shortlist": [
    {
      "rank": 1,
      "facility_id": "fac_01HZ8X9K2D7N3M5P0AYR4FTC2W",
      "score": 0.89,
      "recommendation": "Top choice on safety_score (87) within $30 of budget."
    }
  ],
  "tradeoffs": [
    { "axis": "safety vs price", "note": "+$30/wk buys +6 safety_score points." }
  ],
  "trust_floor": "launch_ready"
}

Endpoint reference#

POST/v1/decision/memo

Generate an explainable shortlist memo from geography + child + budget.

NameTypeRequiredDefaultDescription
geographystringrequiredZIP code or `state_code`.
child_age_monthsintegerrequired0-144 months.
budget_weeklyintegerrequiredUSD per week.
shortlist_limitintegeroptional51-10.
prioritiesstring[]optionalOrdered list of dimensions to weigh.
allow_non_launch_readybooleanoptionalfalseInclude results from non-launch_ready states.
Requestbash
curl -X POST "https://api.cribscore.co/v1/decision/memo" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "geography": "90003",
    "child_age_months": 24,
    "budget_weekly": 350,
    "shortlist_limit": 3,
    "priorities": ["safety_score", "license_status", "commute_minutes"]
  }'
Responsejson
{ "memo_id": "...", "shortlist": [...], "summary": "..." }