{"version":1,"resources":["https://stablegift.dev/api/collections","https://stablegift.dev/api/gift-link"],"mppResources":["https://stablegift.dev/api/gift-link"],"description":"Pay with x402 or MPP to create Loop & Tie gift redemption links capped at $150.","instructions":"# StableGift API\n\nStableGift creates Loop & Tie gift redemption links paid with x402 or MPP. A buyer pays upfront and receives a redeem URL. The recipient opens the URL, chooses one item from the selected collection, and enters their own shipping address.\n\nSupported payment paths: x402 on Base, x402 on Solana, and MPP on Tempo.\n\n## Flow\n\n1. GET /api/collections — list supported gift collections capped at $150.\n2. POST /api/gift-link — pay via x402 and create a gift redemption link.\n3. GET /api/gifts/{giftId} — check gift status and events.\n\n## Collections\n\nCollections are curated from Loop & Tie and capped at $150. Impact-only collections such as \"$10 - Happy Planet\", \"$15 - Give Back\", and Social Impact collections are hidden by default so agents get shippable gift collections unless they explicitly build a different flow later.\n\nUse collectionId from /api/collections when creating a gift link. Prices are exact collection prices in USDC.\n\n## Gift Links\n\nPOST /api/gift-link\nBody:\n{\n  \"collectionId\": \"4438\",\n  \"recipientName\": \"Sam\",\n  \"message\": \"Happy birthday!\",\n  \"from\": \"Merit Systems\"\n}\n\nThe route validates the collection before returning a 402 price. The buyer pays the collection price, then StableGift creates the Loop & Tie gift with delivery_method \"link\" and returns giftId, redeemUrl, stage, expiresOn, and collection.\n\nThe recipient does not need a wallet and does not pay. They redeem the gift at redeemUrl."}