Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.9 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "acknowledged_affected_count": {
            "description": "Batch triggers only: the affected-user count from workflows-blast-radius that you showed the user AND they explicitly confirmed before scheduling. Each firing re-broadcasts to the audience at that time; rejected if it no longer matches. Omit for a schedule trigger, which has no audience.",
            "maximum": 9007199254740991,
            "minimum": -9007199254740991,
            "type": "integer"
        },
        "confirm_token": {
            "description": "Batch triggers only: the confirm_token from the same workflows-blast-radius preview whose count the user confirmed. The API rejects a batch schedule without it, and it goes stale when the audience filters change or after 15 minutes - re-preview to refresh. Omit for a schedule trigger.",
            "type": "string"
        },
        "rrule": {
            "description": "iCalendar RRULE (e.g. 'FREQ=DAILY;INTERVAL=1'). Must produce occurrences at most once per hour.",
            "type": "string"
        },
        "starts_at": {
            "description": "ISO 8601 datetime the schedule starts from.",
            "type": "string"
        },
        "timezone": {
            "description": "IANA timezone for the RRULE (default 'UTC').",
            "type": "string"
        },
        "variables": {
            "additionalProperties": {},
            "description": "Optional {key: value} variable overrides merged with the workflow defaults on each run.",
            "propertyNames": {
                "type": "string"
            },
            "type": "object"
        },
        "workflow_id": {
            "description": "ID of the workflow to attach the recurring schedule to. Its trigger must be batch or schedule.",
            "type": "string"
        }
    },
    "required": ["workflow_id", "rrule", "starts_at"],
    "type": "object"
}