Features
- Single Payments – Send USDC payments directly to recipients via platform-specific endpoints.
- Batch Payments – Send USDC to multiple recipients in one request via batch payment endpoints.
- Payment Validation – Validate payment status and details using
/payments/validate. - Reward Distribution – Create and confirm reward distribution orders based on content engagement.
- Supports Multiple Identities – Payments can be made to recipients identified via:
- Farcaster (
/payments/farcaster/pay) - X/Twitter (
/payments/x/pay) - Email (
/payments/email/pay) - Domain names (
/payments/web/pay)
- Farcaster (
- X402-Compliant – Payment-required responses include full X-PAYMENT header details for compliance.
Authentication
Some endpoints require theX-PAYMENT header for processing.The header contains payment details that comply with the X402 payment protocol.
Error Handling
The API returns standardized error responses:- 400 – Validation errors
- 402 – Payment required
- 500 – Internal server errors
Main Endpoints
Payment Endpoints
POST /payments/farcaster/pay- Pay to Farcaster userPOST /payments/x/pay- Pay to X userPOST /payments/email/pay- Pay to user via emailPOST /payments/web/pay- Pay to user via domain name/URLPOST /payments/farcaster/batch-pay- Batch pay to Farcaster usersPOST /payments/x/batch-pay- Batch pay to X usersPOST /payments/email/batch-pay- Batch pay to users via emailGET /payments/validate- Validate payment
Reward Distribution Endpoints
POST /rewards/farcaster/create-distribution- Create reward distribution for Farcaster contentPOST /rewards/farcaster/confirm-distribution- Confirm reward distribution for Farcaster content
Example Use Cases
- Reward social media users for likes, comments, or reposts.
- Facilitate tipping between content creators and followers.
- Automate campaign-based payouts.
- Batch transfer funds to multiple recipients with one API call.