{"uid":"cap_NTJVZvDYI0tgoGonVGSJm","slug":"delx-cohort-retention-6919ef49","name":"Delx Cohort Retention","description":"Calculate per-cohort and weighted retention from bounded cohorts. Use it as a bounded preflight or analysis step inside an enterprise agent workflow before data, policy, integration, security, or commercial decisions reach production. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, memory-only, and has no paid upstream or input retention. Results are advisory; the caller remains responsible for authorization and prod…","url":"https://api.delx.ai/api/v1/x402/cohort-retention","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cohorts":{"type":"array","description":"Input field: cohorts."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-cohort-retention/v1","cohorts":[{"start":100,"cohort":"2026-07","retained":42,"retention_percent":42}],"cohort_count":1,"weighted_retention_percent":42}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uGsebcfoEO1j6BX5JISr1","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates per-cohort and weighted aggregate retention rates from a bounded list of cohort data","exampleAgentPrompt":"Calculate the per-cohort and weighted retention for these cohorts: cohort A has 1000 users with 720 retained, cohort B has 800 users with 560 retained, and cohort C has 500 users with 300 retained.","exampleUseCases":[{"title":"Pre-launch retention preflight check","prompt":"Before we push the new onboarding flow to production, run a cohort retention analysis on these three cohorts from our A/B test — cohort control has 2000 users with 1400 retained, cohort variant-A has 1800 users with 1350 retained, and cohort variant-B has 1600 users with 1200 retained."},{"title":"Monthly SaaS cohort health report","prompt":"I have four monthly user cohorts from our SaaS product — Jan cohort 500 users 410 retained, Feb cohort 620 users 480 retained, Mar cohort 700 users 511 retained, Apr cohort 430 users 290 retained — can you compute per-cohort and weighted retention for the report?"},{"title":"Mobile app retention benchmark comparison","prompt":"Compute weighted retention across our last five mobile app cohorts: cohort 1 is 300 users 210 retained, cohort 2 is 450 users 290 retained, cohort 3 is 380 users 220 retained, cohort 4 is 520 users 370 retained, cohort 5 is 410 users 300 retained — I need the numbers before the quarterly review."}],"resultDescription":"Returns a deterministic machine-readable JSON object containing per-cohort retention rates for each input cohort and a weighted aggregate retention metric across all cohorts, computed locally without any external calls or data retention.","failureModes":["Empty or missing cohorts array returns validation error","Cohort entries with zero users may cause division-by-zero handling","Malformed cohort objects with missing required fields return schema errors","Negative user counts or retained counts exceeding totals may return computation errors","Request without valid x402 USDC payment on Base results in 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, stateless cohort retention calculation as a preflight or analysis step in an enterprise agent workflow — especially when data privacy matters since it is local-only with no upstream data retention. Prefer it over general analytics platforms when you need machine-readable JSON output at low cost ($0.003 USDC) without spinning up a full analytics pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:42.121Z","isFirstParty":false}