ONE social:settings
← Receivers

social:settings

social family

mcp

Read or change a workspace's clock and posting slots: its timezone, its send window (the hours and weekdays messages may go out — Meta messaging delays and broadcasts read the same one), the time slots per network that content:schedule places posts into, and whether links in posts are swapped for tracked links. Send no change to read. Nothing set reads as UTC, 08:00 to 20:00 every day, one 09:00 slot a day, tracked links on. A change needs control of the workspace; each bad value is refused by name and nothing is written. Slots replace as a whole; null resets a field to its default.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
update_group
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/social:settings \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "timezone": "Europe/Dublin", "slots": { "facebook": [ "09:00", "17:30" ], "linkedin": [ "08:30" ] } }}'

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 The workspace; defaults to the caller's own. Naming another (a client) needs control of it
  • timezone string | null optional A place name like Europe/Dublin or Asia/Bangkok. null = UTC
  • sendWindow object | null optional
  • slots object | null optional Times per network, like {"facebook":["09:00","17:00"],"default":["12:00"]}; up to 24 a day each. A network with none uses `default`, else 09:00
  • trackedLinks boolean optional Swap links in posts for tracked links before approval (on by default)

Response

What comes back from the call.

  • ok boolean
  • workspace string
  • timezone string
  • sendWindow object
  • slots object Only what the workspace set; empty = the defaults
  • defaultSlots string[]
  • trackedLinks boolean
  • set object false = the default is showing
  • now object
  • changed string[] The fields this call changed
  • error string bad_request: <field and what it needs> · forbidden · unauthorized · not_ready (migration 0491) · no_db · write failed

Traffic

Every call to social:settings, 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 social:settings, 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:465
  • one.ie/web/src/lib/resolvers/social-plumbing.ts:60
CLI 1
  • packages/cli/src/social.ts:348
SDK 1
  • packages/sdk/src/social.ts:32
→
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "description": "The workspace; defaults to the caller's own. Naming another (a client) needs control of it",
      "type": "string"
    },
    "timezone": {
      "description": "A place name like Europe/Dublin or Asia/Bangkok. null = UTC",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "sendWindow": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "start": {
              "type": "string",
              "description": "HH:MM, 24-hour, in the workspace's timezone"
            },
            "end": {
              "type": "string",
              "description": "HH:MM, later than start on the same day"
            },
            "days": {
              "description": "Weekdays it is open, 0 = Sunday. Default every day",
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 6
              }
            }
          },
          "required": [
            "start",
            "end"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "slots": {
      "description": "Times per network, like {\"facebook\":[\"09:00\",\"17:00\"],\"default\":[\"12:00\"]}; up to 24 a day each. A network with none uses `default`, else 09:00",
      "anyOf": [
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        {
          "type": "null"
        }
      ]
    },
    "trackedLinks": {
      "description": "Swap links in posts for tracked links before approval (on by default)",
      "type": "boolean"
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "workspace": {
      "type": "string"
    },
    "timezone": {
      "type": "string"
    },
    "sendWindow": {
      "type": "object",
      "properties": {
        "start": {
          "type": "string"
        },
        "end": {
          "type": "string"
        },
        "days": {
          "type": "array",
          "items": {
            "type": "number"
          }
        }
      },
      "required": [
        "start",
        "end",
        "days"
      ]
    },
    "slots": {
      "description": "Only what the workspace set; empty = the defaults",
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "defaultSlots": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "trackedLinks": {
      "type": "boolean"
    },
    "set": {
      "description": "false = the default is showing",
      "type": "object",
      "properties": {
        "timezone": {
          "type": "boolean"
        },
        "sendWindow": {
          "type": "boolean"
        },
        "slots": {
          "type": "boolean"
        }
      },
      "required": [
        "timezone",
        "sendWindow",
        "slots"
      ]
    },
    "now": {
      "type": "object",
      "properties": {
        "local": {
          "type": "string"
        },
        "inSendWindow": {
          "type": "boolean"
        },
        "nextSendAt": {
          "type": "number",
          "description": "Unix seconds: now when inside the window, else when it next opens"
        }
      },
      "required": [
        "local",
        "inSendWindow",
        "nextSendAt"
      ]
    },
    "changed": {
      "description": "The fields this call changed",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "description": "bad_request: <field and what it needs> · forbidden · unauthorized · not_ready (migration 0491) · no_db · write failed",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}