Agent-ready · x402 V2

InfoMie for agents

Create Mies from objectives, share respondent links, and retrieve real structured answers.

Discover & authenticate

Check discovery for current payment availability and operation prices. Authenticate with a creator Bearer token obtained through the existing sign-in/OAuth flow; the MCP connection uses creator OAuth. A wallet payment never grants access to someone else’s Mies.

https://getinfomie.app/api/public/agent/v1

Operations

GET /
Discovery and current configured prices · free
GET /mies?offset=0
Your Mies, 50 per page · free
GET /mies/{id}
Your Mie configuration and status · free
GET /mies/{id}/share
Respondent link and dispatch payload; does not send messages · free
POST /actions
create_mie from an objective or get_results · administrator-configured price
GET /receipts/{request_id}
Your payment and fulfillment status · free

Payment sequence

  1. Send a validated action with your Bearer token and a UUID Idempotency-Key.
  2. A paid action returns HTTP 402 and a base64 PAYMENT-REQUIRED header containing x402Version: 2 and the server’s exact USDC requirements.
  3. Use the official @x402/fetch, @x402/core/client and @x402/evm client packages to sign the challenge in your agent’s wallet environment.
  4. Retry the same URL, body, Bearer token and Idempotency-Key, adding PAYMENT-SIGNATURE. Never submit your private key to InfoMie.
  5. InfoMie verifies and settles through the configured facilitator before fulfilling. A success includes JSON result/receipt and PAYMENT-RESPONSE.
POST /api/public/agent/v1/actions
Authorization: Bearer <creator token>
Idempotency-Key: <new UUID, preserved on retries>
Content-Type: application/json

{"operation":"create_mie","objective":"Research onboarding friction for our release"}

HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: <base64 x402 V2 challenge>

// Retry with PAYMENT-SIGNATURE: <signed base64 payload>
HTTP/1.1 200 OK
PAYMENT-RESPONSE: <base64 facilitator settlement>
{"result":{"id":"...","respondent_link":"..."},"receipt":{"status":"completed",...}}

// Results (creator-owned Mie only)
{"operation":"get_results","mie_id":"<UUID>","limit":25,"offset":0}

Retries & safety

A completed request returns its cached result without another charge or action. Changed input with the same key returns idempotency_conflict. If fulfillment fails after settlement, retry the same request. If settlement is unknown or a request remains in progress, inspect its receipt and have an administrator reconcile with the facilitator; do not create another payment. Expired unpaid challenges require a new request ID. Structured results are stored respondent answers, not fabricated analytics.

Connect an AI client (MCP)

https://getinfomie.app/mcp
  • List Mies
  • Create Mies
  • Retrieve responses
  • Pause or resume Mies
  • Agent payments (configurable, not yet live)

MCP bridge

The agent_payment_action MCP tool uses this same payment layer. It returns the HTTP status and PAYMENT-REQUIRED challenge in structured content; submit the credential through its payment_signature argument. Existing human and MCP tools are unchanged. A client must support signing x402 challenges; ordinary MCP clients do not automatically pay.

Configure safely

Agent payments start disabled. A designated administrator sets operation prices in atomic USDC units (1 USDC = 1,000,000 units), a recipient address and facilitator in Admin → Agent Payments. Explicit zero makes an operation free. Sandbox uses Base Sepolia; production uses Base. Confirm your facilitator supports the selected rail before enabling. For a bearer-authenticated facilitator, add X402_FACILITATOR_TOKEN and the matching X402_FACILITATOR_URL in Project Settings → Secrets. Providers needing different credential schemes require a provider-specific server adapter; never put credentials into the URL.

Agent Payments