{"status":"success","traceId":"26a809b7-c3f7-448e-b9ce-616d29d534bb","data":{"openapi":"3.1.0","info":{"title":"Nexus Service API","version":"1.0.0","description":"Runtime-discoverable OpenAPI schema for nexus-service endpoints"},"servers":[{"url":"https://cliffjumper-1.moojo.id"}],"security":[],"paths":{"/marketplace/{callerLabel}":{"get":{"operationId":"marketplace","summary":"Run a marketplace negotiation","parameters":[{"name":"callerLabel","in":"path","required":true,"schema":{"type":"string"},"description":"Identifies the exact marketplace for the caller, as issued in the readme document (GET /readme)."},{"name":"turnType","in":"query","required":true,"schema":{"type":"string","enum":["start","continue"]},"description":"Negotiation turn type: 'start' begins a new session, 'continue' resumes an existing one"},{"name":"turnMessage","in":"query","required":true,"schema":{"type":"string"},"description":"Buyer message for this turn of the negotiation. Required"},{"name":"vendorSlug","in":"query","required":false,"schema":{"type":"string"},"description":"Target vendor slug identifying the marketplace for this negotiation. Required when turnType is \"start\""},{"name":"sessionId","in":"query","required":false,"schema":{"type":"string"},"description":"Existing session identifier returned by a previous response. Required when turnType is \"continue\""},{"name":"selfAttestedIcpId","in":"query","required":false,"schema":{"type":"string"},"description":"Optional self-attested ICP identifier (from a prior response) to put forward on a continue turn."}],"responses":{"200":{"description":"Marketplace negotiation response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MarketplaceResponse"}}}}}}},"/vendors":{"get":{"operationId":"vendors","summary":"List all vendors available on the marketplace","responses":{"200":{"description":"List of available vendors with their slugs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorsResponse"}}}}}}},"/meta":{"get":{"operationId":"meta","summary":"Get the OpenAPI document for this service","responses":{"200":{"description":"OpenAPI document for nexus-service","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetaResponse"}}}}}}},"/strategy":{"get":{"operationId":"strategy","summary":"Get negotiation best practices and strategy guidelines","responses":{"200":{"description":"Negotiation strategy and best practices","content":{"text/markdown":{"schema":{"$ref":"#/components/schemas/StrategyResponse"}}}}}}}},"components":{"schemas":{"MarketplaceResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sessionId":{"type":"string","description":"Session identifier to send on subsequent continue turns"},"icps":{"description":"Available ideal customer profiles the buyer can claim","type":"array","items":{"type":"object","properties":{"icpId":{"type":"string","description":"Stable identifier for this ideal customer profile"},"description":{"type":"string","description":"Human-readable description of who qualifies for this ICP"}},"required":["icpId","description"],"additionalProperties":false,"description":"An ideal customer profile that the buyer can claim to unlock discounted pricing"}},"vendorMessage":{"type":"string","description":"Vendor response message generated for this turn"},"quote":{"description":"Absent until the negotiation is fully closed. If this field is missing, the deal is not done yet — continue negotiating","type":"object","properties":{"discountPercent":{"type":"number","minimum":0,"maximum":100},"checkoutUrl":{"type":"string","description":"URL to finalize the deal — follow it to complete the purchase. Depending on the vendor this is a hosted checkout link (e.g. Stripe) or a link that applies a discount coupon at checkout (e.g. Shopify)."}},"required":["discountPercent","checkoutUrl"],"additionalProperties":false}},"required":["sessionId","vendorMessage"],"additionalProperties":false,"description":"Marketplace negotiation response payload"},"StrategyResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"VendorsResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"vendors":{"type":"array","items":{"type":"object","properties":{"vendorSlug":{"type":"string","description":"Identifies the vendor to pass in a marketplace start request"},"vendorName":{"type":"string","description":"Human-readable vendor name"},"description":{"description":"Brief description of what the vendor offers","type":"string"},"category":{"description":"A free-form category describing the vendor's business domain (e.g., \"energy\", \"dev-saas\", etc.). The value set is open-ended and not restricted to a predefined list.","type":"string"}},"required":["vendorSlug","vendorName"],"additionalProperties":false,"description":"A vendor available on the marketplace"},"description":"List of vendors currently available on the marketplace"}},"required":["vendors"],"additionalProperties":false,"description":"List of available vendors"},"MetaResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"openapi":{"type":"string","const":"3.1.0","description":"OpenAPI specification version"},"info":{"type":"object","properties":{"title":{"type":"string","description":"API title"},"version":{"type":"string","description":"API version"},"description":{"description":"Optional API description","type":"string"}},"required":["title","version"],"additionalProperties":false,"description":"OpenAPI info object"},"servers":{"description":"OpenAPI server list","type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"description":{"type":"string"}},"required":["url"],"additionalProperties":false}},"security":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"}}},"description":"OpenAPI security requirements"},"paths":{"description":"OpenAPI paths object"},"components":{"type":"object","properties":{"schemas":{"description":"OpenAPI component schemas"}},"required":["schemas"],"additionalProperties":false,"description":"OpenAPI reusable components"}},"required":["openapi","info","security","paths","components"],"additionalProperties":false,"description":"Runtime metadata for auto-discovering service endpoints via OpenAPI"}}}}}