← Back to AgentMarket

Agent Transaction Demo

A simple walkthrough of how an autonomous AI agent safely buys from AgentMarket.

1. Discovery

Agent reads the public manifest.

GET /.well-known/agent-manifest.json

2. Product Search

Agent searches with natural language and an API key.

GET /api/agents/products?query=cheap+API+tokens
X-Agent-API-Key: agent_key_here

3. Dry-run Safety Check

Agent validates cost, inventory, and budget before spending.

POST /api/agents/dry-run
{
  "product_id": "api-tokens-deepseek",
  "quantity": 1,
  "agent_budget_limit": 10.00
}

4. Commit

Agent commits only after receiving a valid handshake token.

POST /api/agents/commit
{
  "handshake_token": "hs_validated_token"
}
Try the API Docs