{"uid":"cap_-AggVCMhBeAD3S_7hsGB2","slug":"pokedexter-battle-state-733b10b9","name":"Pokedexter Battle State","description":"Get current Pokedexter battle state","url":"https://x402.dexter.cash/api/pokedexter/battles/:battleId/state","method":"GET","headers":{},"bodySchema":null,"responseSchema":{"ok":{"type":"boolean"},"state":{"type":"object","description":"Full battle state with your Pokemon, opponent Pokemon, field, and available actions."},"status":{"type":"string","description":"Battle status."},"battleId":{"type":"string","description":"Battle room ID."}},"example":{"request":{"battleId":"test_battle_001"},"response":{"ok":true,"turn":0,"phase":"waiting","prompt":"=== POKEMON BATTLE (Turn 0) ===\n\nWaiting for opponent...","battleId":"test_battle_001","connected":false,"playerSlot":"p1","actualRoomId":"test_battle_001","availableActions":{"moves":[],"canMove":false,"message":"No pending request from server. Waiting for turn...","switches":[],"canSwitch":false}}},"exampleRequest":{"battleId":"test_battle_001"},"tags":["x402"],"displayCostAmount":"0.01","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.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_b8UlydiLekYLgaJJkffJS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves the current full battle state for an active Pokedexter wagered Pokémon battle, including both sides' Pokémon, field conditions, and available actions.","exampleAgentPrompt":"What's the current state of my Pokedexter battle with ID abc123 — show me both Pokémon, the field, and what moves I can make.","exampleUseCases":[{"title":"Monitor active battle before making move","prompt":"Check my current Pokedexter battle — I need to see my Pokémon's HP, what moves are available, and what I'm up against before I decide on my next action."},{"title":"Track wager outcome in real time","prompt":"Pull up the latest state of my wagered battle to see if it's still going or if I've already won or lost."},{"title":"Assess field conditions mid-battle","prompt":"What's the field situation looking like right now in my Pokedexter match? Show me both Pokémon and any weather or terrain effects that might affect my strategy."}],"resultDescription":"Returns a JSON object with ok (boolean), battleId (string), status (string describing if the battle is ongoing/finished), and state (object containing full battle snapshot including your Pokémon, opponent's Pokémon, field conditions, and available actions you can take).","failureModes":["Invalid or nonexistent battleId returns an error or ok:false","Battle has already ended and state is no longer active","x402 payment of $0.01 USDC not provided or rejected, resulting in 402 Payment Required","Network timeout or service unavailability"],"whenToPreferThis":"Use this endpoint when you need a real-time snapshot of an in-progress Pokedexter battle on the Dexter platform, specifically to see current HP, field state, and available moves before deciding on a next action. Prefer this over creating a new battle (which is a separate endpoint) or checking your active wager (which returns wager metadata, not full battle state).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:39:29.345Z","isFirstParty":false}