ONE ads:resume
← Receivers

ads:resume

ads family

chatmcp

Turn a pushed campaign's ads on, so they start spending. Refused over_ceiling (approve: fingerprint) when the campaign's daily budget is over the group's ceiling. On success the campaign reads live (`running`). Every platform it could not switch on is named

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_integrations
The class of authority the caller must already hold, decided from the attested context with no round trip.
Authority action
manage_integrations
Also gated per node — the caller must be permitted this action over the workspace it names.
Cost
variable
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.
Version
1.0.0
Pin this to keep a contract stable; additive bumps never break callers.

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/ads:resume \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "workspace": "acme", "campaignId": "01a1edad703405d807b6b913" }}'

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 required Workspace (group slug) the campaign belongs to. The caller must manage its integrations
  • campaignId string required The campaign group's gid
  • platforms meta | google | linkedin | tiktok[] optional Only these platforms; omit for every platform it was pushed to

Response

What comes back from the call.

  • ok boolean
  • campaignId string
  • resumed boolean true when at least one platform switched on
  • status string
  • platforms any[]
  • unreached string[]
  • error string forbidden | unavailable | over_ceiling | invalid_budget | resume_failed | campaign not found in this workspace | no_db
  • reason string
  • approve string fingerprint: a person's Touch ID can approve what the ceiling refused
  • ceilingCents number
  • dailyBudgetCents number

Traffic

Every call to ads:resume, 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 ads:resume, 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/ads/AdsManager.tsx:168
API route 2
  • one.ie/web/src/lib/ads-board.ts:5
  • one.ie/web/src/lib/receiver-index.generated.ts:26
Agent runtime 1
  • channels/src/aitools.ts:1735
CLI 1
  • packages/cli/src/ads.ts:319
→

Answered by

ads:resume one.ie/web/src/lib/resolvers/ads.ts:229 Dispatched through POST /api/ask/ads:resume, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "description": "Workspace (group slug) the campaign belongs to. The caller must manage its integrations"
    },
    "campaignId": {
      "type": "string",
      "description": "The campaign group's gid"
    },
    "platforms": {
      "description": "Only these platforms; omit for every platform it was pushed to",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "meta",
          "google",
          "linkedin",
          "tiktok"
        ]
      }
    }
  },
  "required": [
    "workspace",
    "campaignId"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "campaignId": {
      "type": "string"
    },
    "resumed": {
      "description": "true when at least one platform switched on",
      "type": "boolean"
    },
    "status": {
      "type": "string"
    },
    "platforms": {
      "type": "array",
      "items": {}
    },
    "unreached": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "description": "forbidden | unavailable | over_ceiling | invalid_budget | resume_failed | campaign not found in this workspace | no_db",
      "type": "string"
    },
    "reason": {
      "type": "string"
    },
    "approve": {
      "description": "fingerprint: a person's Touch ID can approve what the ceiling refused",
      "type": "string"
    },
    "ceilingCents": {
      "type": "number"
    },
    "dailyBudgetCents": {
      "type": "number"
    }
  },
  "required": [
    "ok"
  ],
  "additionalProperties": {}
}