{
  "info": {
    "_postman_id": "bipkit-public-api",
    "name": "Bipkit Public API",
    "description": "Official public Postman collection for the Bipkit System One Decision Engine API (https://api.bipkit.io). Requires an Early Access API key (bpk_live_...).",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Core Evaluation",
      "item": [
        {
          "name": "Multi-Dimensional State Evaluation",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"state\": \"User requested account termination and immediate deletion of database logs.\",\n  \"evaluations\": {\n    \"is_data_deletion\": {\n      \"type\": \"noul\",\n      \"instructions\": \"Destructive deletion of user account data or purge of database records\"\n    },\n    \"urgency\": {\n      \"type\": \"score\",\n      \"levels\": [\n        \"low\",\n        \"medium\",\n        \"high\",\n        \"critical\"\n      ],\n      \"instructions\": \"Urgency and customer impact\"\n    },\n    \"department\": {\n      \"type\": \"choice\",\n      \"choices\": [\n        {\n          \"id\": \"privacy\",\n          \"label\": \"Privacy & Compliance\"\n        },\n        {\n          \"id\": \"billing\",\n          \"label\": \"Billing & Payments\"\n        },\n        {\n          \"id\": \"support\",\n          \"label\": \"Customer Support\"\n        }\n      ]\n    }\n  },\n  \"engine\": \"bip-instant\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/evaluate",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "evaluate"
              ]
            },
            "description": "Evaluates multiple typed dimensions (choice, noul, score) simultaneously over a shared state."
          }
        },
        {
          "name": "Single-Question Decision",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"state\": \"Can you refund my subscription? I was billed twice.\",\n  \"choices\": [\n    {\n      \"id\": \"billing\",\n      \"label\": \"Billing & Subscriptions\"\n    },\n    {\n      \"id\": \"tech_support\",\n      \"label\": \"Technical Support\"\n    },\n    {\n      \"id\": \"general\",\n      \"label\": \"General Inquiry\"\n    }\n  ],\n  \"engine\": \"bip-cascade\",\n  \"top_k\": 3\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/decide",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "decide"
              ]
            },
            "description": "Direct categorical classification returning calibrated probabilities, margin, and Shannon entropy."
          }
        },
        {
          "name": "Submit Outcome Feedback",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"request_id\": \"eval_01K8FA1234567890ABCDEFGH\",\n  \"verified_decision\": \"billing\",\n  \"was_accurate\": true,\n  \"operator_notes\": \"Verified by support operations team\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/feedback",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "feedback"
              ]
            },
            "description": "Submits ground-truth outcome verification for a prior evaluation request."
          }
        }
      ]
    },
    {
      "name": "Engine Catalog",
      "item": [
        {
          "name": "List Decision Engine Tiers",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/engines",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "engines"
              ]
            },
            "description": "Lists available Bipkit decision engine capability tiers."
          }
        }
      ]
    },
    {
      "name": "API Keys",
      "item": [
        {
          "name": "List API Keys",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/api-keys",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "api-keys"
              ]
            },
            "description": "Lists API keys (redacted prefix only) belonging to your organization."
          }
        },
        {
          "name": "Create API Key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Production Agent Key\",\n  \"environment\": \"live\",\n  \"scopes\": [\n    \"evaluate:run\"\n  ]\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/api-keys",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "api-keys"
              ]
            },
            "description": "Provisions a new organization API key. The raw key secret is returned only once."
          }
        },
        {
          "name": "Rotate API Key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/api-keys/:key_id/rotate",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "api-keys",
                ":key_id",
                "rotate"
              ],
              "variable": [
                {
                  "key": "key_id",
                  "value": "key_01..."
                }
              ]
            },
            "description": "Rotates an existing API key and issues a replacement secret."
          }
        },
        {
          "name": "Revoke API Key",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/api-keys/:key_id",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "api-keys",
                ":key_id"
              ],
              "variable": [
                {
                  "key": "key_id",
                  "value": "key_01..."
                }
              ]
            },
            "description": "Deactivates and revokes an organization API key."
          }
        }
      ]
    },
    {
      "name": "Usage & Quotas",
      "item": [
        {
          "name": "Get Usage Summary",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/usage/summary",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "usage",
                "summary"
              ]
            },
            "description": "Returns current-month decision quota, token usage, latency, and engine breakdown."
          }
        },
        {
          "name": "Get Usage Timeseries",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/usage/timeseries?days=7",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "usage",
                "timeseries"
              ],
              "query": [
                {
                  "key": "days",
                  "value": "7"
                }
              ]
            },
            "description": "Returns daily API request volume and average latency."
          }
        }
      ]
    },
    {
      "name": "Decision Provenance Ledger",
      "item": [
        {
          "name": "Get Active Manifest (Public Auditor)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/v1/provenance/manifest",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "provenance",
                "manifest"
              ]
            },
            "description": "Returns the active verified manifest/1 specification (ETag-cached)."
          }
        },
        {
          "name": "Get Public Key Registry (Public Auditor)",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/v1/provenance/keys",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "provenance",
                "keys"
              ]
            },
            "description": "Returns the active Ed25519 public key registry for offline bundle verification."
          }
        },
        {
          "name": "List Provenance Records",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}",
                "type": "text"
              }
            ],
            "url": {
              "raw": "{{base_url}}/api/v1/provenance/records?limit=20",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "provenance",
                "records"
              ],
              "query": [
                {
                  "key": "limit",
                  "value": "20"
                }
              ]
            },
            "description": "Lists signed Decision Provenance Ledger records for your organization."
          }
        },
        {
          "name": "Export Provenance Bundle",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"request_id\": \"eval_01K8FA1234567890ABCDEFGH\",\n  \"output_name\": \"department\"\n}"
            },
            "url": {
              "raw": "{{base_url}}/api/v1/provenance/export",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "provenance",
                "export"
              ]
            },
            "description": "Exports a self-contained selective-disclosure dpl-bundle/1 artifact."
          }
        }
      ]
    },
    {
      "name": "Health",
      "item": [
        {
          "name": "Service Health Check",
          "request": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "{{base_url}}/api/v1/health",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "api",
                "v1",
                "health"
              ]
            },
            "description": "Checks API service availability."
          }
        }
      ]
    }
  ]
}