{"partialResults":false,"resources":[{"accepts":[{"amount":"2000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"asset":"USDC","assetTransferMethod":"eip3009","decimals":6,"eip712Domain":{"chainId":8453,"name":"USD Coin","verifyingContract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","version":"2"},"name":"USD Coin","network_name":"Base Mainnet","version":"2"},"maxTimeoutSeconds":300,"network":"eip155:8453","payTo":"0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E","scheme":"exact"}],"description":"Builds the cohort table from the events you pass: users grouped by the period of their first event, counted again in each following period. Returns the table per cohort, a retention curve across all cohorts, and, where events carry a value, cumulative value and value per user. The curve counts only cohorts old enough for a given period, so a young cohort is not scored as churn. Day, week and month are real calendar periods. Nothing is fetched, nothing is stored.","extensions":{"bazaar":{"info":{"input":{"body":{"events":[{"time_unix_s":1785110400,"type":"order","user_id":"u1","value":19.9},{"time_unix_s":1785715200,"type":"order","user_id":"u1","value":24.5},{"time_unix_s":1785110400,"type":"order","user_id":"u2","value":12},{"time_unix_s":1785715200,"type":"order","user_id":"u3","value":30}],"period":"week","periods":3},"bodyType":"json","method":"POST","type":"http"},"output":{"example":{"activation_type":null,"cohort_count":2,"cohorts":[{"cohort":"2026-07-27T00:00:00.000Z","cohort_start_unix_s":1785110400,"periods":[{"active_users":2,"cumulative_value":31.9,"cumulative_value_per_user":15.95,"period_index":0,"period_value":31.9,"retention_rate":1},{"active_users":1,"cumulative_value":56.4,"cumulative_value_per_user":28.2,"period_index":1,"period_value":24.5,"retention_rate":0.5},{"active_users":0,"cumulative_value":56.4,"cumulative_value_per_user":28.2,"period_index":2,"period_value":0,"retention_rate":0}],"users":2}],"curve":[{"active_users":3,"cohorts_observed":2,"period_index":0,"retention_rate":1,"users_at_risk":3},{"active_users":1,"cohorts_observed":1,"period_index":1,"retention_rate":0.5,"users_at_risk":2}],"event_count":4,"period":"week","periods":3,"retention_types":null,"stateless":true,"summary":{"first_event_unix_s":1785110400,"last_event_unix_s":1785715200,"median_lifetime_periods":1,"total_value":86.4,"value_per_user":28.8},"timezone_offset_s":0,"user_count":3,"week_start":"monday"},"type":"json"}},"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"activation_type":{"description":"If set, only events of this type put a user into a cohort. Without it the first event of any type counts.","maxLength":120,"type":"string"},"events":{"description":"Each event needs user_id and a timestamp (time_unix_s in seconds since 1970, or time as ISO 8601). Optional: type and value. Any other field name is rejected rather than guessed. The service caps the whole request body at 256 KB, so long records reach that limit before maxItems.","maxItems":4000,"minItems":1,"type":"array"},"period":{"default":"week","enum":["day","week","month"],"type":"string"},"periods":{"default":12,"description":"How many periods the table runs, period 0 being the entry period.","maximum":52,"minimum":1,"type":"integer"},"retention_types":{"description":"If set, only events of these types count as being active. Without it every event counts.","items":{"type":"string"},"maxItems":50,"type":"array"},"timezone_offset_s":{"default":0,"description":"Offset from UTC in seconds used to place period boundaries.","maximum":50400,"minimum":-50400,"type":"integer"},"week_start":{"default":"monday","enum":["monday","sunday"],"type":"string"}},"required":["events"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"}}},"lastUpdated":"2026-11-23T10:33:46.797Z","quality":{"l30DaysTotalCalls":1,"l30DaysUniquePayers":1,"lastCalledAt":"2026-11-23T10:33:46.4Z"},"resource":"https://tools.halowerk.com/v1/cohort/retention","serviceName":"HALOWERK Agent Tools","tags":["cohort-analysis","retention","customer-analytics","churn","event-data"],"type":"http","x402Version":2}],"searchMethod":"text","x402Version":2,"meta":{"searchToken":"4hhez6wesucmoaa"}}
