ONE email:benchmarks
← Receivers

email:benchmarks

email family

chatmcp

The group's open, click and unsubscribe rates beside the medians of every group with 3+ sent email campaigns in 90 days, shown only when 10+ such groups can be measured (enough:false and no median otherwise). Rates read over the last 14 days of events (rates_window_days). No group is named

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
owner
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/email:benchmarks \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "workspace": <string> }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • workspace string optional

Response

What comes back from the call.

  • ok boolean
  • workspace string
  • window_days 90
  • rates_window_days 14
  • min_campaigns 3
  • needed 10
  • qualifying number
  • groups_capped boolean More than 200 groups qualified; the 200 busiest were measured
  • you object
  • enough boolean
  • reason not_enough_groups | not_enough_measured
  • measured number
  • median object | null
  • refused no_db | forbidden | read_failed

Traffic

Every call to email:benchmarks, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names email:benchmarks, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

UI 1
  • one.ie/web/src/components/newsletter/EmailBenchmarks.tsx:33
API route 2
  • one.ie/web/src/lib/receiver-index.generated.ts:186
  • one.ie/web/src/lib/resolvers/email-ideas.ts:198
CLI 3
  • packages/cli/src/email.ts:18
  • packages/cli/src/lib/receivers-index.generated.ts:188
  • packages/cli/src/lib/receivers.generated.ts:188
→

Answered by

email:benchmarks one.ie/web/src/lib/resolvers/email-ideas.ts:197 Dispatched through POST /api/ask/email:benchmarks, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "workspace": {
      "type": "string"
    },
    "window_days": {
      "type": "number",
      "const": 90
    },
    "rates_window_days": {
      "type": "number",
      "const": 14
    },
    "min_campaigns": {
      "type": "number",
      "const": 3
    },
    "needed": {
      "type": "number",
      "const": 10
    },
    "qualifying": {
      "type": "number"
    },
    "groups_capped": {
      "description": "More than 200 groups qualified; the 200 busiest were measured",
      "type": "boolean"
    },
    "you": {
      "type": "object",
      "properties": {
        "campaigns_90d": {
          "type": "number"
        },
        "base": {
          "type": "number"
        },
        "open_rate": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "click_rate": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "unsub_rate": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "campaigns_90d",
        "base",
        "open_rate",
        "click_rate",
        "unsub_rate"
      ]
    },
    "enough": {
      "type": "boolean"
    },
    "reason": {
      "type": "string",
      "enum": [
        "not_enough_groups",
        "not_enough_measured"
      ]
    },
    "measured": {
      "type": "number"
    },
    "median": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "open_rate": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ]
            },
            "click_rate": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ]
            },
            "unsub_rate": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "open_rate",
            "click_rate",
            "unsub_rate"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "refused": {
      "type": "string",
      "enum": [
        "no_db",
        "forbidden",
        "read_failed"
      ]
    }
  },
  "required": [
    "ok"
  ]
}