Stripe captures the full financial lifecycle of your customers — subscriptions, invoices, disputes, and payment methods. Pipe this data into Mavera to build revenue-grounded personas, generate retention messaging for at-risk accounts, and produce case studies from real growth trajectories.Documentation Index
Fetch the complete documentation index at: https://docs.mavera.io/llms.txt
Use this file to discover all available pages before exploring further.
Stripe API
- Base URL:
https://api.stripe.com/v1/ - Auth: Bearer token (
Authorization: Bearer sk_live_...) - Encoding: Form-encoded request bodies (not JSON)
- Rate limit: 25 requests/second per endpoint
- Docs: stripe.com/docs/api
- Base URL:
https://app.mavera.io/api/v1 - Auth: Bearer token (
Authorization: Bearer MAVERA_API_KEY)
Prerequisites
Get your Stripe API key
From Stripe Dashboard → API keys, copy your Secret key (
sk_live_ or sk_test_). Use a restricted key with read-only access to Customers, Charges, Invoices, Subscriptions, Disputes, and Payment Methods.Get your Mavera API key
From Mavera → API Keys, generate a key with
personas:write, generations:write, and brand-voices:write scopes.Jobs
| # | Job | Stripe Data | Mavera Surface | Output |
|---|---|---|---|---|
| 1 | Revenue Segment → Persona Tiering | Customers, Subscriptions | /personas | Tiered personas by MRR |
| 2 | Churn Prediction → Retention Content | Subscriptions (past_due, canceled) | /generations | Retention messaging |
| 3 | Payment Method Geography → Market Personas | Charges, Payment Methods | /personas | Regional market personas |
| 4 | Invoice Data → Case Study Generation | Invoices, Customers | /mave/chat | Case study drafts |
| 5 | Dispute Analysis → Messaging Fix | Disputes | /responses | Rewritten product copy |
Rate Limits & Production Notes
| Concern | Stripe | Mavera |
|---|---|---|
| Rate limit | 25 req/sec per endpoint | Varies by plan (see dashboard) |
| Pagination | has_more + starting_after cursor | Offset-based |
| Idempotency | Idempotency-Key header on writes | Built-in deduplication on persona names |
| Webhooks | Available for real-time events | Webhook support for generation callbacks |
| Test mode | sk_test_ keys hit sandbox | Use X-Mavera-Sandbox: true header |
- Use Stripe restricted keys with read-only access
- Implement exponential backoff for both APIs
- Store Mavera persona IDs mapped to Stripe segments for updates
- Test with
sk_test_+ Mavera sandbox before production - Set up Stripe webhooks instead of polling
- Log responses (without sensitive fields) for debugging
Next Steps
Stripe Webhooks
Trigger Mavera jobs from events like
invoice.payment_failed.HubSpot Integration
Combine Stripe revenue with HubSpot CRM for full-funnel personas.
Persona Management
Version, merge, and archive personas as segments evolve.
API Reference
Full reference for all Mavera endpoints used in this guide.