{"openapi":"3.1.0","info":{"title":"Program Participant Reach","version":"1.0.0","description":"Measure unique program reach and repeat participation while keeping single-program and multi-program counts distinct.","contact":{"email":"jeremy@jeremycarter.ca"}},"servers":[{"url":"https://gptenv-x402-catalog.defcronyke.workers.dev"}],"paths":{"/program-participant-reach/v1/check":{"post":{"operationId":"program_participant_reach","summary":"Measure unique program reach and repeat participation while keeping single-program and multi-program counts distinct.","x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.04"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"events":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":80},"program":{"type":"string","minLength":1,"maxLength":80}},"required":["id","program"],"additionalProperties":false}},"attendance":{"maxItems":700,"type":"array","items":{"type":"object","properties":{"event":{"type":"string","minLength":1,"maxLength":80},"participant":{"type":"string","minLength":1,"maxLength":80}},"required":["event","participant"],"additionalProperties":false}}},"required":["events","attendance"],"additionalProperties":false},"example":{"events":[{"id":"E1","program":"art"},{"id":"E2","program":"art"},{"id":"E3","program":"music"}],"attendance":[{"event":"E1","participant":"A"},{"event":"E1","participant":"A"},{"event":"E2","participant":"A"},{"event":"E3","participant":"A"},{"event":"E3","participant":"B"}]}}}},"responses":{"200":{"description":"Service result","content":{"application/json":{"schema":{"type":"object"},"example":{"unique_participants":2,"multi_program_participants":1,"unique_visits":4,"duplicate_records":1,"unknown_records":[],"programs":[{"id":"art","unique_participants":1,"repeat_participants":1,"visits":2},{"id":"music","unique_participants":2,"repeat_participants":0,"visits":2}]}}}},"400":{"description":"Invalid request"},"402":{"description":"x402 exact payment required on Base"},"503":{"description":"Payment unavailable"}}}}}}