{"uid":"cap_h5y7Ral3D4-kPcPcnEaPi","slug":"pyfile-x402-pass-purchase-api-f34ce34d","name":"Pyfile x402 Pass Purchase API","description":"Buy a time-window pass with quota. Body: {scope: web-24h|secret-7d|ideas-30d}. Returns a token to send as header X-Pass on covered routes, skipping per-call payment until the pass expires or the quota is used.","url":"https://pyfile-agent.taile3ff35.ts.net:10000/pass/buy?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"queryParams":{"type":"object","properties":{}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json","description":"Output payload format."},"example":{"type":"object","required":["ok","token","scope"],"properties":{"ok":{"type":"boolean"},"note":{"type":"string"},"quota":{"type":"integer","description":"Number of covered calls included."},"scope":{"type":"string","description":"Pass scope: web-24h, secret-7d, or ideas-30d."},"token":{"type":"string","description":"Pass token; send as X-Pass header on covered routes."},"routes":{"type":"array","items":{"type":"string"},"description":"Routes this pass covers."},"valid_until":{"type":"string","description":"ISO-8601 expiry timestamp."}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4M71LAvwXp0eS6cdhz2KG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchase a time-window + quota pass for a specific scope, returning a reusable token to skip per-call payments on covered routes until expiry or quota exhaustion.","exampleAgentPrompt":"Buy me a 7-day secret scope pass on the Pyfile toolkit so I can make multiple API calls without paying each time — use the secret-7d scope.","exampleUseCases":[{"title":"Bulk web scraping session pass","prompt":"I need to call the pyfile web routes a bunch of times today — can you buy me a web-24h pass so I don't get charged per call? Use the web-24h scope."},{"title":"Week-long secret data access","prompt":"Get me a secret-7d pass for the Pyfile API so I can access the secret routes all week without individual payments."},{"title":"Month-long ideas route access","prompt":"Purchase an ideas-30d pass on the Pyfile toolkit so my agent can hit the ideas routes freely for the next 30 days without per-call billing."}],"resultDescription":"Returns a JSON object with ok (boolean), a pass token string to send as X-Pass header on covered routes, the scope, an ISO-8601 valid_until expiry timestamp, integer quota of covered calls, and an array of route paths covered by the pass.","failureModes":["Invalid or unrecognized scope value returns an error — must be exactly web-24h, secret-7d, or ideas-30d","Payment failure (insufficient USDC balance or x402 protocol error) prevents pass issuance","Pass already expired or quota already exhausted after purchase — token becomes invalid on covered routes","Network timeout or server error on the Tailscale-hosted endpoint"],"whenToPreferThis":"Choose this endpoint when you plan to make multiple calls to Pyfile toolkit routes within a fixed time window and want to avoid per-call x402 micro-payments. It is especially cost-effective for high-frequency or batch usage patterns. Prefer the matching scope (web-24h for short bursts, secret-7d for a week of secret-route access, ideas-30d for sustained month-long usage).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T06:50:18.353Z","isFirstParty":false,"canonicalSlug":"pyfile-x402-pass-purchase-api-f34ce34d"}