ONE whatsapp:marketing-get
← Receivers

whatsapp:marketing-get

whatsapp family

Whether your group can market on WhatsApp, and what is missing: enabled (OFF by default), the WhatsApp Business Account id, the number the signup form offers for JOIN, whose number sends (own or platform; marketing needs the group's own), and how many synced templates are APPROVED MARKETING. missing names each gap: enabled · group_sender · waba_id · marketing_template · display_number

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.
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/whatsapp:marketing-get \
  -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 control is refused forbidden

Response

What comes back from the call.

  • ok boolean
  • workspace string
  • enabled boolean
  • wabaId string | null
  • number string | null
  • sender object | null Whose number sends: own (the group's, needed for marketing) or platform; null when none
  • templates object
  • missing string[] enabled · group_sender · waba_id · marketing_template · display_number
  • error string forbidden · no_db

Traffic

Every call to whatsapp:marketing-get, 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 whatsapp:marketing-get, 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:631
  • one.ie/web/src/lib/resolvers/whatsapp-marketing.ts:63
CLI 3
  • packages/cli/src/lib/receivers-index.generated.ts:657
  • packages/cli/src/lib/receivers.generated.ts:657
  • packages/cli/src/whatsapp.ts:132
→

Answered by

whatsapp:marketing-get one.ie/web/src/lib/resolvers/whatsapp-marketing.ts:62 Dispatched through POST /api/ask/whatsapp:marketing-get, 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 control is refused forbidden",
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "workspace": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "wabaId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "number": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "sender": {
      "description": "Whose number sends: own (the group's, needed for marketing) or platform; null when none",
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "own",
                "platform"
              ]
            },
            "phoneNumberId": {
              "type": "string"
            }
          },
          "required": [
            "kind"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "templates": {
      "type": "object",
      "properties": {
        "total": {
          "type": "number"
        },
        "approvedMarketing": {
          "type": "number"
        }
      },
      "required": [
        "total",
        "approvedMarketing"
      ]
    },
    "missing": {
      "description": "enabled · group_sender · waba_id · marketing_template · display_number",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "description": "forbidden · no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}