POST /sdk/init call to register a tip intent on behalf of a supporter. The response gives you an intentId you can use to track the transaction, while the actual payment is completed by the supporter inside the embedUrl iframe.
Endpoint
Authentication
Pass thesessionToken returned by /sdk/init as a Bearer token. Session tokens always begin with sdk_sess_.
Session tokens are scoped to a single creator and origin. Do not share tokens across multiple creator embeds or reuse them after the session expires.
Request Body
The creator’s UUID as returned in
config.creatorId from the /sdk/init response.The tip amount in USD. Must be a positive number greater than zero.
The Solana mint address for the token the supporter is paying with. For SOL use the native mint (
So11111111111111111111111111111111111111112); for USDC use EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.The supporter’s Solana wallet address. This address is recorded with the tip event and displayed to the creator.
Response
true when the tip intent was registered successfully.A unique payment intent ID in the format
pi_<hex>. Store this value to reconcile the tip against events returned by GET /sdk/events.Always
"requires_action" on success. This means the intent has been created but the supporter must still complete the on-chain transaction inside the checkout iframe.Completing the Payment
After you receive"status": "requires_action", render the embedUrl from your /sdk/init response inside an <iframe>. The supporter connects their wallet and approves the Solana transaction directly inside the iframe — no further server-side calls are needed to execute the payment.
GET /sdk/events with type: "tip_completed".
Example
Request
Response
Error Responses
| Status | Error | Cause |
|---|---|---|
400 Bad Request | "amount, inputTokenMint, sourceWalletAddress, and creatorId are required" | One or more required body fields are missing. |
401 Unauthorized | "Missing or invalid SDK session token" | The Authorization header is absent or not a valid sdk_sess_ token. |
500 Server Error | "Failed to initiate tip flow" | An unexpected server error occurred. |
