{"openapi":"3.1.0","info":{"title":"Sayward Agent API","version":"1.0.0","description":"Generate a complete, deterministic difficult-conversation plan after an inline MPP payment.","x-guidance":"Send one valid conversation brief to POST /api/v1/plan. The first response is an MPP payment challenge; retry the same request with payment authorization to receive the complete plan."},"servers":[{"url":"https://sayward.bmparent.chatgpt.site"}],"paths":{"/api/v1/plan":{"post":{"operationId":"createConversationPlan","summary":"Create one complete conversation plan","description":"Valid input is checked before payment. A paid retry returns the plan and a Payment-Receipt header.","requestBody":{"required":true,"content":{"application/json":{"example":{"scenario":"dispute","tone":"warm","person":"a teammate","happened":"The milestone was missed without an update.","need":"Agree on a new deadline and earlier risk communication."},"schema":{"type":"object","additionalProperties":false,"required":["scenario","tone","person","happened","need"],"properties":{"scenario":{"type":"string","enum":["boundary","raise","apology","resignation","dispute","other"]},"tone":{"type":"string","enum":["warm","direct","firm"]},"person":{"type":"string","minLength":1,"maxLength":120},"happened":{"type":"string","minLength":1,"maxLength":500},"need":{"type":"string","minLength":1,"maxLength":500}}}}}},"responses":{"200":{"description":"Paid conversation plan with a Payment-Receipt header.","content":{"application/json":{"schema":{"type":"object","required":["version","generated_at","input","plan","limits"],"properties":{"version":{"type":"string"},"generated_at":{"type":"string","format":"date-time"},"input":{"type":"object"},"plan":{"type":"object","required":["opening","pushback","exit","checklist"],"properties":{"opening":{"type":"string"},"pushback":{"type":"string"},"exit":{"type":"string"},"checklist":{"type":"array","items":{"type":"string"}}}},"limits":{"type":"string"}}}}}},"400":{"description":"Invalid input; no payment is attempted."},"402":{"description":"Payment Required"},"503":{"description":"Payment configuration is unavailable."}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.50"},"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}}],"offers":[{"amount":"500000","currency":"0x20C000000000000000000000b9537d11c60E8b50","intent":"charge","method":"tempo","scope":"POST /api/v1/plan"}],"supported_methods":["tempo","stripe"]}}}},"x-service-info":{"name":"Sayward","homepage":"https://sayward.bmparent.chatgpt.site","documentation":"https://sayward.bmparent.chatgpt.site/agents","privacy":"https://sayward.bmparent.chatgpt.site/privacy","terms":"https://sayward.bmparent.chatgpt.site/terms"}}