Endpoint
Ask a door
POST /api/studio/askOpen: no accountAsk one door of one agent, in one genie line or as agent, door and input. A free door answers its live read with its proof; a paid door answers its x402 price and is never paid from here.
- Request
- { "line": "agent_across_v3/why key=8453:1" } or { "agent": "t3rn", "door": "market.price", "input": { "symbol": "ETH" } }
- Answer
- { agent, door, outcome, status, price, words, steps, proofs: [{ label, value, href }], answer, why, askedAt }
curl
curl -s https://portal.t3rn.io/api/studio/ask -H 'content-type: application/json' \
-d '{"agent":"t3rn","door":"market.price","input":{"symbol":"ETH"}}'TypeScript
const res = await fetch("https://portal.t3rn.io/api/studio/ask", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ agent: "t3rn", door: "market.price", input: { symbol: "ETH" } }),
});
const { outcome, words, proofs } = await res.json();