# BB-402

Gate any API behind on-chain token ownership using the standard HTTP 402 status code. Built for AI agents, bots, and any programmatic client that needs to authenticate and pay for services.

## Pages

| Page                                                                                     | Description                                                                     |
| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| [Overview](https://docs.bitbadges.io/token-standard/bb-402/overview)                     | How it works, why it matters, quickstart code                                   |
| [Full Specification](https://docs.bitbadges.io/token-standard/bb-402/spec)               | Complete protocol spec, security considerations, x402 comparison                |
| [Code Snippets](https://docs.bitbadges.io/token-standard/bb-402/middleware-recipes)      | Server-side verification snippets: signatures, ownership checks, nonces         |
| [Collection Recipes](https://docs.bitbadges.io/token-standard/bb-402/collection-recipes) | How to configure collections for auth patterns: soulbound, revocable, 2FA, bans |
