ONE social:overview
← Receivers

social:overview

social family

mcp

The social analytics page's one read, for one workspace over a date range: posts published, organic reach and engagement (from the networks' own numbers; null when never read, never 0), tracked clicks, leads, booked jobs, sales and revenue per currency — in total, per network and per campaign — posts per day, the top posts by sales and by engagement, and the paid side per campaign kept apart. Test money and ONE's own money are left out. `truncated` names any read that stopped short.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
read_corpus
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/social:overview \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "workspace": <string>, "from": <number>, "to": <number>, "network": <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 Defaults to the caller's own. Another workspace needs its owner, an admin or the agency above.
  • from number optional Epoch ms. Default 30 days before `to`.
  • to number optional Epoch ms. Default now.
  • network string optional
  • campaign string optional

Response

What comes back from the call.

  • ok boolean
  • error string
  • workspace string
  • range object
  • totals object posts, reach, engagement (null = unread), clicks, leads, booked, sales, revenue [{currency, cents}].
  • byNetwork object[]
  • byCampaign object[]
  • trend object[]
  • topByRevenue object[] Ranked by number of sales: money in different currencies is never added up to rank.
  • topByEngagement object[]
  • paid object
  • reads object
  • truncated string[]
  • notes string[]

Traffic

Every call to social: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 social: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:462
  • one.ie/web/src/lib/resolvers/social-analytics.ts:86
CLI 3
  • packages/cli/src/lib/receivers-index.generated.ts:486
  • packages/cli/src/lib/receivers.generated.ts:486
  • packages/cli/src/social.ts:496
SDK 1
  • packages/sdk/src/social.ts:57
→
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Defaults to the caller's own. Another workspace needs its owner, an admin or the agency above.",
      "type": "string"
    },
    "from": {
      "description": "Epoch ms. Default 30 days before `to`.",
      "type": "number"
    },
    "to": {
      "description": "Epoch ms. Default now.",
      "type": "number"
    },
    "network": {
      "type": "string"
    },
    "campaign": {
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "error": {
      "type": "string"
    },
    "workspace": {
      "type": "string"
    },
    "range": {
      "type": "object",
      "properties": {
        "from": {
          "type": "number"
        },
        "to": {
          "type": "number"
        }
      },
      "required": [
        "from",
        "to"
      ]
    },
    "totals": {
      "description": "posts, reach, engagement (null = unread), clicks, leads, booked, sales, revenue [{currency, cents}].",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "byNetwork": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "byCampaign": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "trend": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "day": {
            "type": "string"
          },
          "posts": {
            "type": "number"
          }
        },
        "required": [
          "day",
          "posts"
        ]
      }
    },
    "topByRevenue": {
      "description": "Ranked by number of sales: money in different currencies is never added up to rank.",
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "topByEngagement": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "paid": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "reads": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "truncated": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "ok"
  ]
}