Supported auth modes
SendyKit supports three auth patterns:| Mode | Header | When to use |
|---|---|---|
| API key | X-API-Key | Standard integrations, operators, automation |
| JWT | Authorization: Bearer ... | User/session-scoped browser or admin flows |
| Machine payment | X-Stripe-Machine-Payment | Premium actions for agent workflows |
API key
This is the primary auth surface for integrations.JWT
Use JWTs for session-style flows.Machine payments
For premium actions, SendyKit can require Stripe-native machine-payment proof.Current implementation target is Stripe-native machine payments. Raw/direct x402 should be treated as historical exploration, not the live customer path.
Related source of truth
docs/AUTH-BILLING-MATRIX.mddocs/openapi/sendykit-v2.yamlinternal/http/middleware_billing.go