{
  "info": {
    "_postman_id": "2c9f5f93-4fd6-4c6f-9eb9-7d9a2e4fe9d3",
    "name": "CribScore Public API",
    "description": "Public CribScore collection for childcare licensing, inspections, trust metrics, and decision workflows.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.cribscore.co",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "",
      "type": "string"
    },
    {
      "key": "facilityId",
      "value": "949308c6-a3a8-486e-bb14-9a2cbc4cea98",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Health",
      "item": [
        {
          "name": "API Health",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{baseUrl}}/api/health",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "api",
                "health"
              ]
            },
            "description": "Public route-health summary for the CribScore API."
          }
        }
      ]
    },
    {
      "name": "Directory and Trust",
      "item": [
        {
          "name": "States",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/states?limit=25",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "states"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "25"
                }
              ]
            }
          }
        },
        {
          "name": "Trust Jurisdictions",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/trust/jurisdictions?limit=25",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "trust",
                "jurisdictions"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "25"
                }
              ]
            }
          }
        },
        {
          "name": "Coverage Snapshot",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/coverage/snapshot?snapshot=1",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "coverage",
                "snapshot"
              ],
              "query": [
                {
                  "key": "snapshot",
                  "value": "1"
                }
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Facilities",
      "item": [
        {
          "name": "Search Facilities",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/facilities?zip_code=90003&limit=5",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "facilities"
              ],
              "query": [
                {
                  "key": "zip_code",
                  "value": "90003"
                },
                {
                  "key": "limit",
                  "value": "5"
                }
              ]
            }
          }
        },
        {
          "name": "Facility Detail",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/facilities/{{facilityId}}",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "facilities",
                "{{facilityId}}"
              ]
            }
          }
        },
        {
          "name": "Facility Proof",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/v1/facilities/{{facilityId}}/proof",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "facilities",
                "{{facilityId}}",
                "proof"
              ]
            }
          }
        }
      ]
    },
    {
      "name": "Decision",
      "item": [
        {
          "name": "Decision Memo",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{apiKey}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"geography\": \"90003\",\n  \"child_age_months\": 24,\n  \"budget_weekly\": 350,\n  \"shortlist_limit\": 3\n}"
            },
            "url": {
              "raw": "{{baseUrl}}/v1/decision/memo",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "v1",
                "decision",
                "memo"
              ]
            }
          }
        }
      ]
    }
  ]
}
