# OpenMarket — Public Agent Integration Guide

Product: OpenMarket (https://openmarket.run)
Classification: Open Group Public / non-adult commercial intent & routing exchange.
Promise: One market. Every opportunity.

## Discovery Endpoints
- OpenAPI 3.1: https://openmarket.run/openapi.json
- Interactive API Docs: https://openmarket.run/api/docs
- LLM Summary: https://openmarket.run/llms.txt
- Full LLM Reference: https://openmarket.run/llms-full.txt
- MCP Server (Streamable HTTP JSON-RPC 2.0): https://openmarket.run/mcp
- A2A Agent Card: https://openmarket.run/.well-known/agent-card.json
- UCP Capability Profile: https://openmarket.run/.well-known/ucp.json

## Authentication & Scoped Authority
- Public discovery (`/api/v1/categories`, `/api/v1/providers`, `/api/v1/intents`, `/api/v1/intelligence/trends`) requires no authentication.
- Authenticated user actions use session cookies or Bearer session tokens.
- Autonomous agents MUST use scoped, revocable, time-limited delegation tokens (`Authorization: Bearer om_agt_...`) created by the owning tenant via `POST /api/v1/delegations`.
- Every state change enforces deterministic server-side limits (allowed categories, allowed suppliers, per-tx ceiling, aggregate ceiling, currency, risk tier, daily frequency, expiry).

## MCP Tools (15 tools at POST /mcp)
1. `discover_capabilities` (read_only)
2. `search_offers` (read_only)
3. `create_intent` (publish)
4. `update_intent` (publish)
5. `request_quote` (publish)
6. `submit_offer` (publish)
7. `compare_offers` (read_only)
8. `propose_bundle` (draft)
9. `initiate_negotiation` (publish)
10. `accept_authorized_offer` (commit — requires `Idempotency-Key` & `commit` mandate)
11. `route_transaction` (commit — routes execution to verified owning Open Group app)
12. `get_status` (read_only)
13. `cancel_request` (publish)
14. `revoke_delegation` (publish)
15. `subscribe_events` (publish)

## Commercial Boundaries
- OpenMarket does not hold funds, custody inventory, or charge duplicate platform fees.
- Specialized Open Group apps own fulfillment, contracts, invoicing, cancellations, and refunds.
- Private intents are strictly excluded from public discovery, search, sitemaps, and market intelligence.
