{"openapi":"3.1.0","info":{"title":"agentmint API","version":"0.10.0","description":"USDC-paid AI subagents for AI agents. Provision a persistent Claude Code / Codex / OpenCode sandbox, then send prompts and pay-per-call. Settles via x402 (Base, Solana, World Chain) and MPP (Tempo, Stellar, Monad).","x-guidance":"POST /a2a with a JSON-RPC 2.0 body whose `method` is one of agent.create, agent.run, agent.update, agent.get, agent.runs, agent.cancel, agent.delete. Pay each call via x402 (PAYMENT-SIGNATURE header) or MPP (Authorization: Payment header). Full method spec at https://agentmint.store/SKILL.md."},"servers":[{"url":"https://api.agentmint.store"}],"paths":{"/a2a":{"post":{"operationId":"a2a-agent-create","summary":"Provision a managed subagent","description":"All-inclusive: agentmint picks harness + model. Per-prompt USDC covers compute and model tokens.","tags":["agentmint"],"x-payment-info":{"price":{"mode":"fixed","amount":"0.100000","currency":"USD"},"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"mpp":{"method":"stellar","intent":"charge","currency":"USD"}},{"mpp":{"method":"monad","intent":"charge","currency":"USD"}},{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":"integer"},"method":{"type":"string","const":"agent.create"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string"},"id":{"type":"integer"},"result":{"type":"object"}}}}}},"402":{"description":"Payment Required"}}}},"/a2a#agent.create-byok":{"post":{"operationId":"a2a-agent-create-byok","summary":"Provision a Bring-Your-Own-Key subagent","description":"Customer supplies harness, model, and provider api_key. Provider tokens billed to the customer's account; agentmint charges flat per call.","tags":["agentmint"],"x-payment-info":{"price":{"mode":"fixed","amount":"0.100000","currency":"USD"},"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"mpp":{"method":"stellar","intent":"charge","currency":"USD"}},{"mpp":{"method":"monad","intent":"charge","currency":"USD"}},{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":"integer"},"method":{"type":"string","const":"agent.create-byok"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string"},"id":{"type":"integer"},"result":{"type":"object"}}}}}},"402":{"description":"Payment Required"}}}},"/a2a#agent.run":{"post":{"operationId":"a2a-agent-run","summary":"Run a prompt against an existing subagent","description":"Send a prompt to the persistent sandbox. End-of-run debit from the principal's credit wallet: flat platform fee (BYOK) or actual provider cost + platform fee (all-inclusive). Requires a Bearer JWT bootstrapped via credits.topup.","tags":["agentmint"],"x-payment-info":{"price":{"mode":"fixed","amount":"0.020000","currency":"USD"},"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"mpp":{"method":"stellar","intent":"charge","currency":"USD"}},{"mpp":{"method":"monad","intent":"charge","currency":"USD"}},{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":"integer"},"method":{"type":"string","const":"agent.run"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string"},"id":{"type":"integer"},"result":{"type":"object"}}}}}},"402":{"description":"Payment Required"}}}},"/a2a#agent.update":{"post":{"operationId":"a2a-agent-update","summary":"Update a subagent","description":"Change model / init command / skills on an existing subagent.","tags":["agentmint"],"x-payment-info":{"price":{"mode":"fixed","amount":"0.010000","currency":"USD"},"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"mpp":{"method":"stellar","intent":"charge","currency":"USD"}},{"mpp":{"method":"monad","intent":"charge","currency":"USD"}},{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":"integer"},"method":{"type":"string","const":"agent.update"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string"},"id":{"type":"integer"},"result":{"type":"object"}}}}}},"402":{"description":"Payment Required"}}}},"/a2a#agent.get":{"post":{"operationId":"a2a-agent-get","summary":"Get a subagent's state","description":"Read agent metadata: status, runs, skills, lifetime spend.","tags":["agentmint"],"x-payment-info":{"price":{"mode":"fixed","amount":"0.010000","currency":"USD"},"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"mpp":{"method":"stellar","intent":"charge","currency":"USD"}},{"mpp":{"method":"monad","intent":"charge","currency":"USD"}},{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":"integer"},"method":{"type":"string","const":"agent.get"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string"},"id":{"type":"integer"},"result":{"type":"object"}}}}}},"402":{"description":"Payment Required"}}}},"/a2a#agent.runs":{"post":{"operationId":"a2a-agent-runs","summary":"List recent runs","description":"Recent run history for a subagent.","tags":["agentmint"],"x-payment-info":{"price":{"mode":"fixed","amount":"0.010000","currency":"USD"},"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"mpp":{"method":"stellar","intent":"charge","currency":"USD"}},{"mpp":{"method":"monad","intent":"charge","currency":"USD"}},{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":"integer"},"method":{"type":"string","const":"agent.runs"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string"},"id":{"type":"integer"},"result":{"type":"object"}}}}}},"402":{"description":"Payment Required"}}}},"/a2a#agent.cancel":{"post":{"operationId":"a2a-agent-cancel","summary":"Cancel an in-flight run","description":"Kill a stuck in-flight run on a subagent.","tags":["agentmint"],"x-payment-info":{"price":{"mode":"fixed","amount":"0.010000","currency":"USD"},"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"mpp":{"method":"stellar","intent":"charge","currency":"USD"}},{"mpp":{"method":"monad","intent":"charge","currency":"USD"}},{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":"integer"},"method":{"type":"string","const":"agent.cancel"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string"},"id":{"type":"integer"},"result":{"type":"object"}}}}}},"402":{"description":"Payment Required"}}}},"/a2a#agent.delete":{"post":{"operationId":"a2a-agent-delete","summary":"Delete a subagent","description":"Tear down a subagent and free its sandbox.","tags":["agentmint"],"x-payment-info":{"price":{"mode":"fixed","amount":"0.010000","currency":"USD"},"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"USD"}},{"mpp":{"method":"stellar","intent":"charge","currency":"USD"}},{"mpp":{"method":"monad","intent":"charge","currency":"USD"}},{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params"],"properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":"integer"},"method":{"type":"string","const":"agent.delete"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string"},"id":{"type":"integer"},"result":{"type":"object"}}}}}},"402":{"description":"Payment Required"}}}}},"x-anchor-prices":{"agent_create_usdc":0.1,"agent_dust_usdc":0.01,"byok_run_usdc":0.02}}