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.

4.6 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "cron_expression": {
            "anyOf": [
                {
                    "maxLength": 100,
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "description": "For a recurring reminder: a 5-field cron expression (e.g. '0 9 * * 1' = Mondays 9am). May fire at most 4 times per day. Mutually exclusive with recurrence_interval."
        },
        "deleted": {
            "type": "boolean"
        },
        "end_date": {
            "anyOf": [
                {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Optional: recurring reminders stop (status=completed) after this time."
        },
        "message": {
            "description": "Optional longer body for the notification.",
            "type": "string"
        },
        "organization": {
            "description": "Organization ID. If omitted, uses the active organization.",
            "type": "string"
        },
        "recurrence_interval": {
            "anyOf": [
                {
                    "description": "* `daily` - Daily\n* `weekly` - Weekly\n* `monthly` - Monthly\n* `yearly` - Yearly",
                    "enum": ["daily", "weekly", "monthly", "yearly"],
                    "type": "string"
                },
                {
                    "enum": [""],
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "description": "For a recurring reminder: daily, weekly, monthly, or yearly.\n\n* `daily` - Daily\n* `weekly` - Weekly\n* `monthly` - Monthly\n* `yearly` - Yearly"
        },
        "resource_id": {
            "anyOf": [
                {
                    "maxLength": 200,
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "description": "ID of the referenced resource; must exist in the chosen project."
        },
        "resource_type": {
            "anyOf": [
                {
                    "maxLength": 50,
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Optional PostHog resource this reminder is about. One of: dashboard, insight, experiment, feature_flag, survey, notebook, replay, error_tracking. Resources are project-scoped, so a team must be set when this is provided."
        },
        "scheduled_at": {
            "anyOf": [
                {
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
                    "type": "string"
                },
                {
                    "type": "null"
                }
            ],
            "description": "For a one-off reminder: when it should fire (ISO 8601, future)."
        },
        "team": {
            "anyOf": [
                {
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Optional ID of the project this reminder is scoped to. Required when targeting a specific resource. Must belong to the chosen organization."
        },
        "timezone": {
            "description": "IANA timezone the schedule resolves in (e.g. 'America/New_York'). Defaults to the project timezone when a team is set, otherwise UTC.",
            "maxLength": 64,
            "type": "string"
        },
        "title": {
            "description": "Short text shown as the notification title when the reminder fires.",
            "maxLength": 255,
            "type": "string"
        }
    },
    "required": ["title"],
    "type": "object"
}