← Receivers

content:everywhere

content family

chat

Put one piece of content everywhere: one video or image + one campaign → a native draft for every social format and every ad format it fits, written from the campaign's playbook stage, filed under the campaign as content things, with every misfit derived or named impossible. Counts what was made, failed, derived and skipped; nothing publishes — the reply links to the campaign page where a person approves each draft.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
manage_things
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
variable
What one call costs, so you can budget before acting.
Reversible
no
This cannot be undone. Dry-run it first where the contract allows.
Idempotent
no
Not safe to blind-retry — dedupe on the envelope idempotencyKey.

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/content:everywhere \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "campaignId": "01a04decf44a2caf7353139c", "mediaUrl": "https://one.ie/api/product-image/one/media/clip.mp4", "mediaType": "video", "text": "One video becomes every post.", "stageKey": "1" }}'

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 Group slug. Omit for the attested workspace. A scope REQUEST — refused (forbidden) when the authority walk says no, never swapped for your own.
  • campaignId string required The campaign's gid (world_groups.gid tagged `campaign`) in this workspace — the campaign the drafts are filed under.
  • mediaUrl string required The source video or image url — an attachment in the conversation, or an item from media:list.
  • mediaType image | video required What the source is.
  • text string required The message every format is written from — the person's words.
  • stageKey string optional The ELEVATE stage (0–10, or the campaign's own section key) that briefs every draft. Change the stage, the words change.
  • width number optional Source width in px, when known — decides which aspect formats fit as-is.
  • height number optional Source height in px, when known.
  • durationS number optional Source duration in seconds, for a video.
  • origin string optional Absolute origin to resolve a relative mediaUrl for the render service (the route passes url.origin).

Response

What comes back from the call.

  • ok boolean
  • error string Named: forbidden · bad_request · campaign_not_found · no_db.
  • postId string The master social_posts row the variants hang off.
  • sourceTid string The source content thing (world_things type 'content', kind:source).
  • campaign object
  • campaignId string
  • stage string | null
  • source object
  • formats object Every catalog format is in exactly one of social, ads, derived, impossible or skipped; `unaccounted` is empty or the answer is wrong.
  • counts object drafted · failed · ads · adsFailed · derived · derivedMade · derivedFailed · impossible · skipped.
  • variants object[]
  • errors string[]
  • ads object
  • derived object
  • impossible object[]
  • skipped object[]
  • published number Always 0 — this door never publishes.
  • link string The campaign page: /u/<slug>/marketing/campaigns/<campaign slug or gid>.
  • reply string One sentence for the conversation, carrying the link.

Traffic

Every call to content:everywhere, 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 content:everywhere, 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:101
  • one.ie/web/src/lib/resolvers/content.ts:163
CLI 1
  • packages/cli/src/media.ts:357
Docs 1
  • one.ie/web/src/pages/api/content/everywhere.ts:1
→

Answered by

content:everywhere one.ie/web/src/lib/resolvers/content.ts:753 Dispatched through POST /api/ask/content:everywhere, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "description": "Group slug. Omit for the attested workspace. A scope REQUEST — refused (forbidden) when the authority walk says no, never swapped for your own.",
      "type": "string"
    },
    "campaignId": {
      "type": "string",
      "description": "The campaign's gid (world_groups.gid tagged `campaign`) in this workspace — the campaign the drafts are filed under."
    },
    "mediaUrl": {
      "type": "string",
      "description": "The source video or image url — an attachment in the conversation, or an item from media:list."
    },
    "mediaType": {
      "type": "string",
      "enum": [
        "image",
        "video"
      ],
      "description": "What the source is."
    },
    "text": {
      "type": "string",
      "minLength": 1,
      "description": "The message every format is written from — the person's words."
    },
    "stageKey": {
      "description": "The ELEVATE stage (0–10, or the campaign's own section key) that briefs every draft. Change the stage, the words change.",
      "type": "string"
    },
    "width": {
      "description": "Source width in px, when known — decides which aspect formats fit as-is.",
      "type": "number"
    },
    "height": {
      "description": "Source height in px, when known.",
      "type": "number"
    },
    "durationS": {
      "description": "Source duration in seconds, for a video.",
      "type": "number"
    },
    "origin": {
      "description": "Absolute origin to resolve a relative mediaUrl for the render service (the route passes url.origin).",
      "type": "string"
    }
  },
  "required": [
    "campaignId",
    "mediaUrl",
    "mediaType",
    "text"
  ]
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "error": {
      "description": "Named: forbidden · bad_request · campaign_not_found · no_db.",
      "type": "string"
    },
    "postId": {
      "description": "The master social_posts row the variants hang off.",
      "type": "string"
    },
    "sourceTid": {
      "description": "The source content thing (world_things type 'content', kind:source).",
      "type": "string"
    },
    "campaign": {
      "type": "object",
      "properties": {
        "gid": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "gid",
        "name",
        "url"
      ]
    },
    "campaignId": {
      "type": "string"
    },
    "stage": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "source": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string"
        },
        "aspect": {
          "type": "string"
        },
        "durationS": {
          "type": "number"
        }
      },
      "required": [
        "kind",
        "aspect"
      ]
    },
    "formats": {
      "description": "Every catalog format is in exactly one of social, ads, derived, impossible or skipped; `unaccounted` is empty or the answer is wrong.",
      "type": "object",
      "properties": {
        "total": {
          "type": "number"
        },
        "accounted": {
          "type": "number"
        },
        "unaccounted": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "total",
        "accounted",
        "unaccounted"
      ]
    },
    "counts": {
      "description": "drafted · failed · ads · adsFailed · derived · derivedMade · derivedFailed · impossible · skipped.",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "number"
      }
    },
    "variants": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "ads": {
      "type": "object",
      "properties": {
        "drafts": {
          "type": "array",
          "items": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "drafts",
        "error"
      ]
    },
    "derived": {
      "type": "object",
      "properties": {
        "made": {
          "type": "array",
          "items": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        },
        "failed": {
          "type": "array",
          "items": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          }
        }
      },
      "required": [
        "made",
        "failed"
      ]
    },
    "impossible": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "skipped": {
      "type": "array",
      "items": {
        "type": "object",
        "propertyNames": {
          "type": "string"
        },
        "additionalProperties": {}
      }
    },
    "published": {
      "description": "Always 0 — this door never publishes.",
      "type": "number"
    },
    "link": {
      "description": "The campaign page: /u/<slug>/marketing/campaigns/<campaign slug or gid>.",
      "type": "string"
    },
    "reply": {
      "description": "One sentence for the conversation, carrying the link.",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}