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
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
Jobs
Rate Limits & Production Notes
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.