{"uid":"cap_2m6P7yf07rABrc3X5nq_m","slug":"www-codenut-ai-83ed5fcb","name":"CodeNut Credit Drop (x402)","description":"Accept a USDC payment on Base to issue CodeNut credits (e.g., $0.01 for 100x credits) and receive the credited amount as JSON.","url":"https://www.codenut.ai/api/x402/credit-drop/xs","method":"GET","headers":{},"bodySchema":{"type":"object","required":["amount","network","currency","credits_requested"],"properties":{"amount":{"type":"string"},"network":{"type":"string"},"currency":{"type":"string"},"credits_requested":{"type":"number"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_th5yJGO8zT5SdZieLgsZa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Accepts a $0.01 USDC payment on Base via x402 protocol and issues 100x CodeNut platform credits, returning the credited amount as JSON.","exampleAgentPrompt":"Top up my CodeNut account by purchasing the 100x credit bundle — pay $0.01 in USDC on Base using the x402 credit-drop offer.","exampleUseCases":null,"resultDescription":"A JSON object containing the credited amount of CodeNut credits issued to the account after the $0.01 USDC payment is processed on Base.","failureModes":["Insufficient USDC balance — payment rejected, no credits issued","Invalid or missing x402 payment header — 402 Payment Required response","Payment on wrong network (not Base) — transaction fails","Double-spend or replay attempt — transaction rejected","Service unavailable — 500 error, credits not issued"],"whenToPreferThis":"Use this endpoint when an AI agent needs to programmatically top up a CodeNut account with platform credits using a micro-payment of $0.01 USDC on the Base blockchain via the x402 payment protocol, especially when the agent needs to maintain a CodeNut credit balance for ongoing AI tool usage.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:56:04.880Z","isFirstParty":false}