Welcome to the Pocketsflow API
The Pocketsflow API enables you to programmatically manage your entire Pocketsflow account. Whether you’re building integrations, automating workflows, or creating custom applications, our API provides full access to all platform features.Base URL
Authentication
All API endpoints require authentication using your API key. You can find your API keys in your Pocketsflow Dashboard.API Key Format
- Live keys:
pk_live_...- Use in production - Test keys:
pk_test_...- Use for development and testing
How to Authenticate
Include your API key in theAuthorization header as a Bearer token:
Rate Limits
To ensure service stability, API requests are rate-limited:- Standard: 100 requests per minute
- Burst: 200 requests per minute for short periods
429 Too Many Requests response.
API Coverage
The Pocketsflow API provides comprehensive access to:🛍️ Products
Create, update, and manage your digital products and subscriptions.👥 Customers
Access customer information and purchase history.📦 Orders
View and manage orders across your account.⭐ Reviews
Access product reviews and ratings.🎟️ Discounts
Create and manage discount codes and promotions.💰 Upsells
Configure upsell offers for your products.🔄 Subscriptions
Manage recurring subscriptions and billing.🪝 Webhooks
Set up webhooks to receive real-time event notifications.🔗 Link in Bio
Programmatically manage your creator page.📝 Posts & Subscribers
Create newsletter content and manage subscribers.🖼 Images
Upload and manage media assets.💸 Refunds
Process customer refunds.🛒 Checkout
Create custom checkout sessions.Response Format
All API responses are returned in JSON format: Pocketsflow operates in two modes: Test Mode (pk_test_*):
- Use test API keys
- No real transactions
- Sandbox payment gateway/PayPal credentials
- Perfect for development and testing
pk_live_*):
- Production API keys
- Real transactions and payments
- Live payment gateway/PayPal integration
- Use only when ready to go live
pk_test_* or pk_live_*) - all data is automatically scoped to the correct mode.
Pagination
List endpoints support pagination using query parameters: Parameters:page- Page number (default: 1)pageSize- Items per page (default: 20, max: 100)
Filtering and Sorting
Many list endpoints support filtering and sorting: Common Filters:productId- Filter by productstartDate/endDate- Date rangestatus- Resource statustestMode- true/false
sortBy- Field to sort bysortOrder-ascordesc
Idempotency
To safely retry requests without duplicating operations, use idempotency keys: Header:Idempotency-Key: unique-key-here
Webhooks
For real-time event notifications, use webhooks instead of polling the API:API Resources
The Pocketsflow API provides access to:Products
Create and manage digital products
Orders
View and export order data
Customers
Manage customer information
Webhooks
Configure webhook endpoints
Subscriptions
Handle recurring billing
Discounts
Create and manage discount codes
Reviews
Collect product reviews
Analytics
Access sales and visitor data
Getting Help
- Documentation: You’re reading it!
- Support: Email support@pocketsflow.com
- Status: Check status.pocketsflow.com
- Community: Join our Discord