ONE ads:pause
← Receivers

ads:pause

ads family

chatmcp

Stop a campaign's ads: every platform id a push stored is sent its PAUSED status, and the campaign stops reading live. Runs even when ONE already reads draft, because a person may have switched it on in the platform's own Ads Manager. Every platform it could not reach is named in `unreached`

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
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.
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:pause \
  -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 all. The campaign stays live while any other platform still runs

Response

What comes back from the call.

  • ok boolean
  • campaignId string
  • paused boolean true when the campaign read live and no longer does
  • status string
  • platformPause boolean true only when every platform answered paused
  • platforms any[]
  • unreached string[]
  • warnings string[]
  • error string forbidden | unavailable | campaign not found in this workspace | no_db

Traffic

Every call to ads:pause, 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:pause, 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 1
  • one.ie/web/src/lib/receiver-index.generated.ts:24
CLI 1
  • packages/cli/src/ads.ts:312
→

Answered by

ads:pause one.ie/web/src/lib/resolvers/ads.ts:219 Dispatched through POST /api/ask/ads:pause, 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 all. The campaign stays live while any other platform still runs",
      "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"
    },
    "paused": {
      "description": "true when the campaign read live and no longer does",
      "type": "boolean"
    },
    "status": {
      "type": "string"
    },
    "platformPause": {
      "description": "true only when every platform answered paused",
      "type": "boolean"
    },
    "platforms": {
      "type": "array",
      "items": {}
    },
    "unreached": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "description": "forbidden | unavailable | campaign not found in this workspace | no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ],
  "additionalProperties": {}
}