ONE email:overview
← Receivers

email:overview

email family

Everything the Email home shows, in one read of your group: subscribers (subscribed, pending, unsubscribed), the sending domain and whether it is verified, how many pages carry a signup form, broadcasts by state, per-campaign numbers (bc:<id> and seq:<workflow>:<step>, sends, deliveries, opens, clicks, unsubscribes, bounces, rates) from the warm event store, sequences with each email step's numbers, workflows, and email revenue (live orders whose buyer clicked an email within 5 days; 30-day totals and per campaign). Every block carries its own ok; a capped revenue read says truncated. Deterministic SQL, no model

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:overview \
  -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 Your group; naming one you do not run is refused forbidden

Response

What comes back from the call.

  • ok boolean
  • workspace string
  • subscribers object
  • domain object
  • signupForm object
  • broadcasts object
  • campaigns object
  • sequences object
  • workflows object
  • revenue object
  • error string forbidden · no_db

Traffic

Every call to email:overview, 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:overview, 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

API route 2
  • one.ie/web/src/lib/receiver-index.generated.ts:188
  • one.ie/web/src/lib/resolvers/email-home.ts:27
CLI 2
  • packages/cli/src/lib/receivers-index.generated.ts:190
  • packages/cli/src/lib/receivers.generated.ts:190
Docs 1
  • one.ie/web/src/components/CLAUDE.md:22
→

Answered by

email:overview one.ie/web/src/lib/resolvers/email-home.ts:208 Dispatched through POST /api/ask/email:overview, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Your group; naming one you do not run is refused forbidden",
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "workspace": {
      "type": "string"
    },
    "subscribers": {
      "type": "object",
      "properties": {
        "ok": {
          "type": "boolean"
        },
        "subscribed": {
          "type": "number"
        },
        "pending": {
          "type": "number"
        },
        "unsubscribed": {
          "type": "number"
        }
      },
      "required": [
        "ok",
        "subscribed",
        "pending",
        "unsubscribed"
      ]
    },
    "domain": {
      "type": "object",
      "properties": {
        "ok": {
          "type": "boolean"
        },
        "host": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "verified": {
          "type": "boolean"
        },
        "sender": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "ok",
        "host",
        "verified",
        "sender"
      ]
    },
    "signupForm": {
      "type": "object",
      "properties": {
        "ok": {
          "type": "boolean"
        },
        "pages": {
          "type": "number"
        }
      },
      "required": [
        "ok",
        "pages"
      ]
    },
    "broadcasts": {
      "type": "object",
      "properties": {
        "ok": {
          "type": "boolean"
        },
        "total": {
          "type": "number"
        },
        "sent": {
          "type": "number"
        },
        "drafts": {
          "type": "number"
        },
        "scheduled": {
          "type": "number"
        }
      },
      "required": [
        "ok",
        "total",
        "sent",
        "drafts",
        "scheduled"
      ]
    },
    "campaigns": {
      "type": "object",
      "properties": {
        "ok": {
          "type": "boolean"
        },
        "byCampaign": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "description": "Per campaign key: sent, delivered, opens, clicks, uniqueOpens, uniqueClicks, unsubs, bounces, openRate, clickRate (null = nothing went out)"
        },
        "since": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "ok",
        "byCampaign",
        "since"
      ]
    },
    "sequences": {
      "type": "object",
      "properties": {
        "ok": {
          "type": "boolean"
        },
        "list": {
          "type": "array",
          "items": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "description": "id, name, description, status, steps[{id, name, campaign, stats}]"
        },
        "welcomeOn": {
          "type": "boolean"
        }
      },
      "required": [
        "ok",
        "list",
        "welcomeOn"
      ]
    },
    "workflows": {
      "type": "object",
      "properties": {
        "ok": {
          "type": "boolean"
        },
        "list": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "description": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "status"
            ]
          }
        }
      },
      "required": [
        "ok",
        "list"
      ]
    },
    "revenue": {
      "type": "object",
      "properties": {
        "ok": {
          "type": "boolean"
        },
        "last30": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "currency": {
                "type": "string"
              },
              "orders": {
                "type": "number"
              },
              "cents": {
                "type": "number"
              }
            },
            "required": [
              "currency",
              "orders",
              "cents"
            ]
          }
        },
        "byCampaign": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "object",
            "properties": {
              "orders": {
                "type": "number"
              },
              "cents": {
                "type": "number"
              },
              "currency": {
                "type": "string"
              },
              "mixed": {
                "type": "boolean"
              }
            },
            "required": [
              "orders",
              "cents",
              "currency",
              "mixed"
            ]
          }
        },
        "truncated": {
          "type": "boolean",
          "description": "More than 5000 clicks or orders: attribution read the newest 5000"
        }
      },
      "required": [
        "ok",
        "last30",
        "byCampaign",
        "truncated"
      ]
    },
    "error": {
      "description": "forbidden · no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}