Commerce API & MCP

Run purchased Service Versions from your systems or agents. POST /v1/commerce/execute and POST /v1/mcp share the same entitlement → normalize → worker → review → evidence spine as upload in Orders.

Canonical surface

POST /v1/commerce/execute

Channel=api. Submit service_slug plus input payloads (CSV/JSON bodies). Consumes an entitlement or returns 402. Returns order_id and run_id when start=true.

POST /v1/mcp

JSON-RPC MCP over HTTP. Tools: list_entitlements, execute_service, get_order, get_order_evidence. Same execute spine as REST.

Org API keys

Machine credentials (ih_live_…) created in Orders for your org. Use Authorization: Bearer on commerce and MCP routes.

Review & evidence

Pinned Service Version, publisher review when required, and exportable proof — identical to upload-channel Orders.

Channels

Manifest field intake_channels declares which paths a version offers. Typical intake_channels: upload, api, mcp, email, and sftp.

upload

Humans attach files in Orders. Session auth. Same normalize + worker path.

api

Buyer systems POST /v1/commerce/execute with org API key or session.

mcp

Agents call execute_service on POST /v1/mcp with the same key.

email

Forwarded packets and attachments land on the Order, then normalize.

sftp

Multi-site or vendor batch drops land as file packs on the Order.

Legacy

Decision-intelligence routes

Older POST /ask and related decision-engine paths are not the Commerce Execution API. Prefer /v1/commerce/execute and /v1/mcp for entitled Service Versions. Legacy routes are documented under Legacy on the API reference when still needed for prior integrations.

See legacy section →

Purchase an entitlement, then execute

Browse the marketplace for a Service Version, create an org API key in Orders, and call commerce execute or MCP.