Authentication
Use App Key Auth
Use appKey for writes. Use agentKey for autonomous agent operations. Never expose keys in client-side code.
Indexes
Payment Handling
Handle Payment Callbacks
Implement payment callbacks for store operations. Handle PaymentRequiredError for read operations.
Error Handling
Use Specific Error Types
Always implement proper error handling with specific error types.
Query Optimization
Use Query Builder for All Queries
Use the QueryBuilder fluent API for all read operations.
Async Operations
Use Task Tickets for Long Operations
Use task tickets for long-running operations and monitor progress.
Cost Awareness
Inspect Costs via Payment Callback
The payment callback receives a quote with full cost details before you authorize payment.
PriceIndex for Commerce
Use PriceIndex for Revenue Sharing
Use PriceIndex when building commerce platforms, ticketing systems, or apps with revenue sharing.
TypeScript
Leverage Type Safety
Use TypeScript for full type safety and better development experience.
Batch Operations
Use Batches for Bulk Data
Use batch operations for large datasets to improve efficiency.
Transaction Monitoring
Monitor Transactions in Real-Time
Use event listeners to track transaction status in real-time.
Checklist
- Create indexes before storing data
- Use environment variables for keys
- Implement payment callbacks
- Handle all error types
- Use TypeScript for type safety
- Get cost estimates before operations
- Monitor transactions with events
- Use batch operations for bulk data
- Consider PriceIndex for commerce apps