{"uid":"cap_dfF6_eLELeK-ETjW9jJTw","slug":"x402-shizu-me-session-open-f385a721","name":"x402.shizu.me Session Open","description":"Mint a bearer session token bound to your wallet. Prepay credits via /credits/buy, open a session here (once), then call /m/<route> with the token to spend credits per call OFF-CHAIN at high frequency — no per-call settlement. The rail for looping agents. Token expires; treat it as a password. Returns {session_token, ns, balance, expires_at}.","url":"https://x402.shizu.me/session/open?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","required":["method"],"properties":{"body":{"type":"object","required":[],"properties":{}},"method":{"const":"POST"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_U-XyohytKCndfAAebSoSZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Mints a bearer session token bound to a wallet, enabling high-frequency off-chain credit spending without per-call blockchain settlement","exampleAgentPrompt":"Open a new session on x402.shizu.me so I can make high-frequency calls to the /m/ routes using my prepaid credits without per-call settlement — I already bought credits and need the bearer token.","exampleUseCases":[{"title":"High-frequency agent loop initialization","prompt":"I need to kick off a long-running agent loop that will call the LLM completion endpoint hundreds of times — open a session on x402.shizu.me so the agent can spend credits off-chain without settling each call on-chain."},{"title":"Looping web digest pipeline","prompt":"My agent needs to scrape and summarize dozens of web pages in rapid succession — open a session token on x402.shizu.me using my prepaid credits so it can call the digest route repeatedly without per-call payment overhead."},{"title":"Bounty board polling agent","prompt":"Set up a session so my agent can continuously poll the x402.shizu.me bounty board and respond to tasks at high frequency — I've already topped up my credits, just need the bearer token to start."}],"resultDescription":"Returns a JSON object containing: session_token (bearer token to pass as auth on /m/<route> calls), ns (namespace identifier), balance (remaining credit balance), and expires_at (ISO timestamp when the session expires). The token must be treated as a password and is single-use for opening but multi-use for spending credits.","failureModes":["Insufficient prepaid credits — session open rejected if wallet has no credit balance","Wallet not recognized — token minting fails if no prior credit purchase recorded","Session token expiry — token becomes invalid after expires_at, requiring a new session open","Duplicate session conflict — opening multiple sessions may invalidate earlier ones","Network error or service unavailability returns 5xx with no token issued"],"whenToPreferThis":"Choose this endpoint when your agent needs to make many calls to x402.shizu.me /m/ routes at high frequency without incurring per-call blockchain settlement costs. It is the necessary first step after buying credits via /credits/buy — you must open a session here before any toll-gated route calls. Prefer this over per-call payment when your workflow involves loops, polling, or burst usage where latency and gas costs of individual settlements would be prohibitive.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:50:07.875Z","isFirstParty":false,"canonicalSlug":"x402-shizu-me-session-open-f385a721"}