← Receivers

content:schedule

content family

Spread a post's approved variants across the calendar: one per network per day starting tomorrow 09:00, writing social_post_variants.scheduled_at + status 'scheduled'. Facebook is the only network with a live connection; every other network and every ad is scheduled as a draft and says so in its note (Instagram and the ad pushers answered 404 on 2026-10-12; Meta Ads is not connected).

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
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/content:schedule \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "workspace": <string>, "postId": <string>, "variantId": <string>, "at": <number> }}'

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; refused when not yours.
  • postId string optional The master social_posts row whose variants to schedule. Required unless `variantId` is given.
  • variantId string optional Move exactly ONE variant of this workspace to `at` instead of re-slotting a post. Only a 'scheduled' or 'approved' row moves; a published, failed or skipped one is refused. A bare world key is refused (moving a slot to now arms a real publish).
  • at number optional Unix seconds (an integer) for `variantId`. Required with `variantId`; ignored without it.
  • all boolean optional true when a person approved the whole run (a workflow's human step): schedules 'draft' variants as well as 'approved' ones.
  • timezone string optional IANA zone for the 09:00 slot. Default UTC — a workspace carries no timezone setting today.

Response

What comes back from the call.

  • ok boolean
  • error string Named: forbidden · bad_request · post_not_found · no_db.
  • postId string
  • campaignId string | null
  • scheduled object[]
  • skipped object[] Variants held back because the brand guardian's verdict (meta.verdict, written by content:verdicts) is 'revise'; each names the reason. No verdict behaves as before.
  • failed object[]
  • ads number Ad creatives under this post noted as drafts (no live connection).
  • counts object
  • timezone string
  • summary string One line per network for the board.
  • variantId string Set when `variantId` was given: the variant that moved.
  • platform string
  • format string
  • at number The slot the variant now holds (unix seconds).
  • live boolean Single-variant answer: true when the network has a live connection.
  • note string

Traffic

Every call to content:schedule, 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:schedule, 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/campaigns/EverywhereBoard.tsx:197
API route 2
  • one.ie/web/src/lib/receiver-index.generated.ts:103
  • one.ie/web/src/lib/resolvers/content.ts:573
→

Answered by

content:schedule one.ie/web/src/lib/resolvers/content.ts:755 Dispatched through POST /api/ask/content:schedule, 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; refused when not yours.",
      "type": "string"
    },
    "postId": {
      "description": "The master social_posts row whose variants to schedule. Required unless `variantId` is given.",
      "type": "string"
    },
    "variantId": {
      "description": "Move exactly ONE variant of this workspace to `at` instead of re-slotting a post. Only a 'scheduled' or 'approved' row moves; a published, failed or skipped one is refused. A bare world key is refused (moving a slot to now arms a real publish).",
      "type": "string"
    },
    "at": {
      "description": "Unix seconds (an integer) for `variantId`. Required with `variantId`; ignored without it.",
      "type": "number"
    },
    "all": {
      "description": "true when a person approved the whole run (a workflow's human step): schedules 'draft' variants as well as 'approved' ones.",
      "type": "boolean"
    },
    "timezone": {
      "description": "IANA zone for the 09:00 slot. Default UTC — a workspace carries no timezone setting today.",
      "type": "string"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "error": {
      "description": "Named: forbidden · bad_request · post_not_found · no_db.",
      "type": "string"
    },
    "postId": {
      "type": "string"
    },
    "campaignId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "scheduled": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "at": {
            "type": "number"
          },
          "live": {
            "type": "boolean"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "platform",
          "format",
          "at",
          "live"
        ]
      }
    },
    "skipped": {
      "description": "Variants held back because the brand guardian's verdict (meta.verdict, written by content:verdicts) is 'revise'; each names the reason. No verdict behaves as before.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "platform",
          "format",
          "reason"
        ]
      }
    },
    "failed": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "platform": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "platform",
          "format",
          "error"
        ]
      }
    },
    "ads": {
      "description": "Ad creatives under this post noted as drafts (no live connection).",
      "type": "number"
    },
    "counts": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "number"
      }
    },
    "timezone": {
      "type": "string"
    },
    "summary": {
      "description": "One line per network for the board.",
      "type": "string"
    },
    "variantId": {
      "description": "Set when `variantId` was given: the variant that moved.",
      "type": "string"
    },
    "platform": {
      "type": "string"
    },
    "format": {
      "type": "string"
    },
    "at": {
      "description": "The slot the variant now holds (unix seconds).",
      "type": "number"
    },
    "live": {
      "description": "Single-variant answer: true when the network has a live connection.",
      "type": "boolean"
    },
    "note": {
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}