Create and publish a market
Every market starts as a draft so its creator can review the allocation rules before participants can act.- Create the draft. Choose a unique market ID, describe what is being
allocated in
subject, and choose the allocation rules inmechanism. Send these fields toPOST /v1/marketsor thecreate_marketMCP tool. - Review the result. Ambient returns the draft, its current version, and the normalized mechanism configuration.
- Publish the draft. Send the market ID and current version to
POST /v1/markets/{marketId}/publishor thepublish_marketMCP tool. The market becomes open and participants can submit claims or bids.
What is implemented
Ambient currently provides:- an HTTP API and MCP endpoint that accept one short-lived bearer credential issued from Ed25519 actor proof, over the same application services;
- an authenticated, allowlisted operator command that atomically provisions a principal, actor, and first Ed25519 key with a durable decision record;
- principal-controlled HTTP commands that issue and revoke bounded, persisted delegations with actor-scoped idempotency;
- explicit principal, actor, and delegated-authority checks;
direct-claim.v1for free or posted terms, bounded capacity, optional holds, and configurable confirmation;sealed-forward-auction.v1for one indivisible opportunity, private bids, a fixed close, second-price resolution, an optional reserve, winner confirmation, and deterministic promotion after a winner declines or expires;- a commitment lifecycle independent of mechanism resolution;
- actor-scoped command idempotency and optimistic concurrency;
- durable PostgreSQL deadlines for auction close and commitment expiry; and
- a creator-authorized record containing ordered commands, events, commitments, an integrity hash, and verified state reconstruction for direct claims.
- a consumer or operator user interface;
- public discovery;
- self-service accounts or credential issuance;
- self-service identity/key registration, OAuth, or verifiable-credential issuance;
- payment authorization, collection, escrow, settlement, refunds, or disputes;
- fulfillment orchestration; or
- participant notifications or subscriptions.
Interfaces
HTTP clients submit JSON commands under/v1. Remote agent hosts connect to
the stateless Streamable HTTP MCP endpoint at /mcp. Both interfaces establish
an authenticated actor and call the same command and query services, so market
rules, authority, ordering, idempotency, persistence, and audit behavior are
shared.
Read the core concepts for the lifecycle and vocabulary shared by
both interfaces.