# Delx Commerce — Cohort Retention Analysis

> Delx Commerce — Cohort Retention Analysis is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Computes cohort-based user retention metrics, returning retention percentages and weighted retention across cohorts.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/cohort-retention?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-cohort-retention-analysis-47527807
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_txw-EjYLOgcEim6NRK-bC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-cohort-retention-analysis-47527807 -d '<json body>'
```

Example prompt: Can you calculate the cohort retention for my July 2026 cohort that started with 100 users and retained 42 of them?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call cohort retention computation without signing up for a full analytics platform. Ideal for agents that process user cohort data programmatically and need precise retention metrics on demand. Best when you have structured cohort data (start size + retained count) and want weighted retention aggregated across multiple cohorts in a single API call.

## Known failure modes

- Missing or malformed 'cohorts' array returns a validation error
- Cohort objects missing required fields (start, retained, cohort identifier) may return partial or error results
- Retained count exceeding start count may produce invalid retention percentages
- Payment failure via x402 (insufficient USDC balance) blocks the call
- Network timeout on Base or Solana payment verification

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with the schema 'delx/util-cohort-retention/v1', containing an array of cohort objects each with their start size, cohort identifier, retained count, and retention_percent, plus an overall cohort_count and weighted_retention_percent across all input cohorts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cohorts": {
   "type": "array",
   "description": "Input field: cohorts."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-cohort-retention-analysis-47527807/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
