> ## Documentation Index
> Fetch the complete documentation index at: https://docs.proofable.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Gate anything

> Require proof before a page, checkout, API call, or agent action. Visitors reuse proof they already hold and verify only what is missing.

Decide what must already be true, then enforce it where the action happens. For a single check, [verify once and read the proof](https://docs.proofable.me/verification.md). Publish a listing when you need a saved `gateId`, a price, or a schedule.

## Choose what to protect

| Protect | Use |
| - | - |
| A page, feature, or download | `VerifyGate` in your app and `gateCheck` on your server |
| Paid access or a digital product | A paid listing with hosted checkout |
| An API | [Pay per call](https://docs.proofable.me/gates/pay-per-call.md) with a proof check |
| An agent action | The agent's permission check. [Control agent actions](https://docs.proofable.me/use-cases/control-agent-actions.md) |

## Define a gate

**1. Write the policy in your app**

```js theme={"system"}
import { defineGate } from '@proofable/sdk';

const gate = defineGate([{ verifierId: 'proof-of-human' }]);
```

This works before you publish anything.

**2. Add it to your app**

```jsx theme={"system"}
import { VerifyGate } from '@proofable/sdk/widgets';

<VerifyGate gate={gate} onVerified={grantAccess}>
  <ProtectedContent />
</VerifyGate>;
```

Not using React? Send people to Hosted Verify with `getHostedCheckoutUrl`, then confirm on your server.

**3. Confirm on your server**

```js theme={"system"}
const result = await client.gateCheck({
  gate,
  subject: { accountId: user.accountAddress },
});

if (result.satisfied !== true) {
  // Send the visitor back to verify
}
```

## Who pays

Your app can sponsor usage, visitors can pay at checkout, or callers can pay per call. [Pricing](https://docs.proofable.me/pricing.md)

## What people receive

After they pass, and pay when the gate has a price, Proofable delivers what you attached, whether access, a redirect, a download, or a revealed value. The value stays hidden until then. Their proofs stay with them for the next gate.

## Next

> [card] [Sell access with one gate](https://docs.proofable.me/gates/sell-access.md)
>
> Publish, embed, and confirm in three steps.

> [card] [Gate checkout](https://docs.proofable.me/gates/checkout.md)
>
> The full checkout contract behind a gate.

> [card] [NFT and token gating](https://docs.proofable.me/gates/nft-gating.md)
>
> Require a holder or a minimum balance.

> [card] [Gates](https://docs.proofable.me/gates.md)
>
> Everything a gate can hold and enforce.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.