---
title: "MatchMyPolicy — compare bounded policy tokens"
method: POST
path: "/v1/policies/match"
---

# MatchMyPolicy — compare bounded policy tokens

`POST /v1/policies/match`

## Request

- Base URL: `https://api.scrubmytext.com`
- URL: `https://api.scrubmytext.com/v1/policies/match`
- Auth: HTTP bearer

Checks required-token inclusion and forbidden-token exclusion without interpreting or storing policy prose.

## Request body

- object
  - `provider_capabilities` string[], required
  - `consumer_required` string[], required
  - `consumer_forbidden` string[], required

## Response `200`

Deterministic match and mismatch lists

## Other responses

- `401`: Paid API key required
- `422`: Invalid bounded policy input

---

[API](https://skmtc.dev/scrubmytext/apis/scrubmytext-agent-infrastructure-api.md) · [All operations](https://skmtc.dev/scrubmytext/apis/scrubmytext-agent-infrastructure-api/llms.txt) · [OpenAPI document](https://skmtc.dev/scrubmytext/apis/scrubmytext-agent-infrastructure-api/revisions/54ace36baccf?raw)
