Skip to main content
Returns the A2A-compliant Agent Card for your Key0 seller agent. This is the entry point for any client agent that wants to discover your agent’s capabilities, skills, and payment requirements. No authentication is required.

Response

string
required
The agent name, from SellerConfig.agentName.
string
required
The agent description, from SellerConfig.agentDescription.
string
required
The primary endpoint URL. Points to /x402/access by default.
string
required
Agent version. Defaults to "1.0.0".
string
required
A2A protocol version. Currently "0.3.0".
object
required
Declares supported capabilities and extensions.
AgentSkill[]
required
Array of skills the agent exposes. Key0 registers two skills by default.
object
Organization and URL of the agent provider.

Example Response

Skills

Key0 automatically generates two A2A-compliant skills:

discover-plans

A free discovery skill. Clients call this (or GET to /discover) to browse the plan catalog. Returns plan IDs, prices, wallet address, and chain ID.

request-access

The payment-gated skill. Clients call this to initiate a purchase flow:
  1. POST with planId to receive a 402 challenge with payment requirements.
  2. Sign an EIP-3009 authorization off-chain.
  3. Retry the same request with a PAYMENT-SIGNATURE header.
  4. Receive a 200 response with an AccessGrant containing the bearer token.
This skill includes machine-readable metadata for automated clients:
  • endpoint — the direct POST /x402/access URL and method, so clients don’t need to parse the description.
  • inputSchema — a JSON Schema for the request body (planId, requestId, resourceId).
  • workflow — a step-by-step array of instructions for completing the payment flow programmatically.

x402 Extension

The Agent Card declares the x402 extension as required: true in capabilities.extensions:
This signals to client agents that they must support the x402 payment protocol to interact with this agent. The uri follows the A2A x402 extension spec v0.2.

TypeScript Types

SellerConfig

The configuration object that drives agent card generation.

How It Works

Overview of the Key0 payment flow and agent discovery.

API Reference Overview

Index of all Key0 API endpoints and protocols.