# SpendGuard ## Docs - [Create Check](https://spendguard.mintlify.app/api-reference/create-check.md): POST /v1/checks — Run a real-time authorization check against a policy. Returns allow, block, or escalate. - [Create API Key](https://spendguard.mintlify.app/api-reference/create-key.md): POST /v1/keys — Create a new API key. Returns the raw key exactly once. - [Create Policy](https://spendguard.mintlify.app/api-reference/create-policy.md): POST /v1/policies — Create a new financial authorization policy or a new version of an existing one. - [Get Check](https://spendguard.mintlify.app/api-reference/get-check.md): GET /v1/checks/{id} — Retrieve a past authorization check and its decision. - [Get Policy](https://spendguard.mintlify.app/api-reference/get-policy.md): GET /v1/policies/{id} — Retrieve a policy by ID. Returns the latest version by default. - [Health Check](https://spendguard.mintlify.app/api-reference/health.md): GET /health — Check if the SpendGuard API is running. - [List Violations](https://spendguard.mintlify.app/api-reference/list-violations.md): GET /v1/violations — View the audit log of blocked and escalated financial actions. - [API Overview](https://spendguard.mintlify.app/api-reference/overview.md): Base URL, authentication, error format, and conventions for the SpendGuard API. - [Simulate](https://spendguard.mintlify.app/api-reference/simulate.md): POST /v1/simulate — Run authorization checks with zero side effects. Nothing is written to any table. - [Authentication](https://spendguard.mintlify.app/guides/authentication.md): How to authenticate with the SpendGuard API using API keys, and what to do when things go wrong. - [Core Concepts](https://spendguard.mintlify.app/guides/concepts.md): Understand how SpendGuard works: policies, checks, violations, and the three-decision model. - [MCP Integration](https://spendguard.mintlify.app/guides/mcp-integration.md): Connect SpendGuard to Claude and other AI agents using the Model Context Protocol. - [Policy Templates](https://spendguard.mintlify.app/guides/policy-templates.md): Four pre-built policy templates you can use immediately or customize for your use case. - [Quickstart](https://spendguard.mintlify.app/guides/quickstart.md): Go from zero to your first authorization check in under 5 minutes. - [Rule Types](https://spendguard.mintlify.app/guides/rule-types.md): All 10 rule types available in SpendGuard, with parameters and triggering examples. - [Simulation](https://spendguard.mintlify.app/guides/simulation.md): Test your policies without creating real audit records. Completely side-effect free. - [Use Case: AI Discount Agent](https://spendguard.mintlify.app/guides/use-case-discount-agent.md): How an AI pricing agent uses SpendGuard to control discounts and pricing adjustments. - [Use Case: AI Procurement Agent](https://spendguard.mintlify.app/guides/use-case-procurement-agent.md): How an AI procurement agent uses SpendGuard to control vendor payments and spending. - [Use Case: AI Refund Agent](https://spendguard.mintlify.app/guides/use-case-refund-agent.md): End-to-end walkthrough of an AI customer support agent handling refunds with SpendGuard. ## OpenAPI Specs - [openapi](https://spendguard.mintlify.app/api-reference/openapi.json)