Skip to main content

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 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.
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
Mavera API
  • Base URL: https://app.mavera.io/api/v1
  • Auth: Bearer token (Authorization: Bearer MAVERA_API_KEY)

Prerequisites

1

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.
2

Get your Mavera API key

From Mavera → API Keys, generate a key with personas:write, generations:write, and brand-voices:write scopes.
3

Set environment variables

export STRIPE_API_KEY="sk_live_..."
export MAVERA_API_KEY="mav_..."

Jobs

#JobStripe DataMavera SurfaceOutput
1Revenue Segment → Persona TieringCustomers, Subscriptions/personasTiered personas by MRR
2Churn Prediction → Retention ContentSubscriptions (past_due, canceled)/generationsRetention messaging
3Payment Method Geography → Market PersonasCharges, Payment Methods/personasRegional market personas
4Invoice Data → Case Study GenerationInvoices, Customers/mave/chatCase study drafts
5Dispute Analysis → Messaging FixDisputes/responsesRewritten product copy


Rate Limits & Production Notes

ConcernStripeMavera
Rate limit25 req/sec per endpointVaries by plan (see dashboard)
Paginationhas_more + starting_after cursorOffset-based
IdempotencyIdempotency-Key header on writesBuilt-in deduplication on persona names
WebhooksAvailable for real-time eventsWebhook support for generation callbacks
Test modesk_test_ keys hit sandboxUse X-Mavera-Sandbox: true header
Never log or commit Stripe secret keys. Use environment variables or a secrets manager. Keys starting with sk_live_ have full account access — a leaked key can move money. Rotate immediately if exposed.
Production checklist:
  • 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.