{"protocol":"AICP","version":"1.0","provider":"Pugmod Live Map & AI Commerce Platform","capability_semantics":"Platform capabilities describe available protocol primitives. Agents must call store_capabilities before assuming a feature is enabled for a specific business.","capabilities":{"discovery":true,"search_semantic":true,"store_capability_discovery":true,"catalog":true,"dynamic_contracts":true,"contract_template_discovery":true,"contract_lifecycle_management":true,"multi_intent_transactions":true,"availability_discovery":true,"atomic_reservations":true,"agent_registration":true,"cart":true,"ordering":true,"booking":true,"delivery_quotes":true,"tracking":true,"cancellation":true,"payment_intents":true,"payment_collection":false,"payment":false,"webhooks":false,"request_signatures":true},"endpoints":{"discovery":"https://pugmod.com/api/v1/locations/nearby","search_semantic":"https://pugmod.com/api/v1/search/semantic","trending":"https://pugmod.com/api/v1/search/trending","contract_templates":"https://pugmod.com/api/v1/commerce/templates{?business_model,intent,template_key}","owner_contracts":"https://pugmod.com/api/v1/commerce/store/{storeId}/contracts{?status}","owner_contract_from_template":"https://pugmod.com/api/v1/commerce/store/{storeId}/contracts/from-template","owner_contract_edit":"https://pugmod.com/api/v1/commerce/store/{storeId}/contracts/{schemaId}","owner_contract_activate":"https://pugmod.com/api/v1/commerce/store/{storeId}/contracts/{schemaId}/activate","owner_contract_restore":"https://pugmod.com/api/v1/commerce/store/{storeId}/contracts/{schemaId}/restore","store_capabilities":"https://pugmod.com/api/v1/commerce/store/{storeId}/capabilities","store_contract":"https://pugmod.com/api/v1/commerce/store/{storeId}/order-schema{?intent}","store_availability":"https://pugmod.com/api/v1/commerce/store/{storeId}/availability{?from,to,offering_id,limit}","store_catalog":"https://pugmod.com/api/v1/commerce/store/{storeId}/menu","agent_register":"https://pugmod.com/api/v1/commerce/store/{storeId}/agents/register","agent_identity":"https://pugmod.com/api/v1/commerce/store/{storeId}/agents/me","agent_settings":"https://pugmod.com/api/v1/commerce/store/{storeId}/agents/me/settings","store_cart":"https://pugmod.com/api/v1/store/{storeId}/cart","store_transaction":"https://pugmod.com/api/v1/commerce/store/{storeId}/orders","external_delivery_prepare":"https://pugmod.com/api/v1/commerce/store/{storeId}/orders/prepare","store_tracking":"https://pugmod.com/api/v1/commerce/store/{storeId}/track/{orderId}","store_cancel":"https://pugmod.com/api/v1/commerce/store/{storeId}/orders/{orderId}/cancel","payment_intent":"https://pugmod.com/api/v1/commerce/store/{storeId}/orders/{orderId}/payment","delivery_quote":"https://pugmod.com/api/v1/store/{storeId}/cart/{cartId}/quote"},"transaction_contract":{"delivery_flow":"External AI prepares a signed quote (status requires_escalation), then the logged-in buyer opens continue_url (absolute HTTPS; approval_url is the same link) to review and confirm. The server binds buyer identity from the session and creates the order once. Direct unconfirmed delivery and caller-supplied user_id are not accepted.","authentication":"Bearer API key issued per store and agent, plus an RFC 9421 signature when a signing key is bound (see message_signatures)","idempotency":"Idempotency-Key header is required for transaction creation","content_type":"application/json","supported_intents_are_store_specific":true,"discovery_order":["store_capabilities","store_contract","store_availability","agent_register","store_transaction","payment_intent","store_tracking"],"payment_note":"Payment intent creation is available only when enabled by the store. Provider collection and paid-status confirmation are not yet exposed through the public protocol.","tracking_authentication":"Use the returned expiring signed tracking_url, or authenticate as the order buyer, store owner, or creating agent with order:read. Order UUIDs alone do not grant access.","payment_attempts":"One live payment attempt per order. Retries with the same Idempotency-Key replay the original intent; settled or terminal intents do not issue another payment link."},"message_signatures":{"standard":"RFC 9421 HTTP Message Signatures + RFC 9530 Content-Digest","algorithms":["ES256","Ed25519"],"signed_writes_required_from":null,"key_format":"Public JWK (EC P-256 or OKP Ed25519); keyid = RFC 7638 thumbprint","binding":"Send signing_jwk to agent_register or agent_settings. The binding request must itself be signed by that key (proof of possession); rotation needs signatures by both the current and the new key.","required_components":["@method","@authority","@path","@query (when a query exists)","content-digest and content-type (when a body exists)","idempotency-key (when sent)"],"content_digest":"RFC 9530 dictionary; a sha-256 member is required, sha-512 is checked when present.","settings_replay":"With a bound key, agent_settings changes are accepted only if the signature \"created\" is newer than the last accepted change.","parameters":{"created":"required, within 300 seconds of server time","keyid":"required","expires":"optional, at most 3600 seconds after created"},"enforcement":"Optional per key; once a key is bound, every request with that API key must be signed and the binding cannot be removed."},"webhooks":{"enabled":false,"registration":"Send webhook_url (public https://, port 443) to agent_register or agent_settings. Pugmod first POSTs a signed {\"type\":\"webhook.verification\",\"data\":{\"challenge\":\"...\"}}; answer 2xx echoing the challenge (plain text or {\"challenge\":\"...\"}) or the URL is rejected.","events":["order.created","order.updated"],"api_version":"2026-10-21","scope":"Orders created by the registering API key only. Payloads carry no buyer name, phone or address.","signature":"RFC 9421, ES256, components \"@method\" \"@authority\" \"@path\" \"content-digest\" \"content-type\" \"webhook-id\"; verify against keys[] by keyid.","delivery":"At least once, possibly out of order. Deduplicate on the Webhook-Id header. Respond 2xx within 5 seconds; no redirects are followed. Retries back off exponentially up to 8 attempts.","ordering":"data.status is the status at the event, data.occurred_at its time and data.order_version its order version; ignore an event whose order_version is lower than one already applied. data.current_status is the live status when sent."},"keys":[],"contract_template_registry":{"endpoint":"contract_templates","public_read":true,"activation_requires_store_owner_review":true,"supported_business_models":["product","food_order","service","appointment","rental","reservation","class","ticket","subscription","quote","custom"],"note":"Templates are reusable starting points. Agents must use the active store contract, not a registry template, when creating transactions."},"contract_lifecycle":{"authentication":"Authenticated Supabase store-owner session","states":["draft","active","archived"],"create_from_template_state":"draft","activation_is_atomic":true,"one_active_contract_per_store_intent":true,"edit_scope":"draft_only","discard_mode":"recoverable_archive","public_agents_can_discover":["active"],"owner_workflow":["contract_templates","owner_contract_from_template","owner_contracts","owner_contract_edit","owner_contract_activate"]},"location_bounds":{"default_city":"Lopburi","country":"TH","center":{"lat":14.7995,"lng":100.6534}}}