components: schemas: Activity: additionalProperties: false properties: channel_id: description: "Broadcast push channel ID (iOS 18+). Server-managed: set when activity transitions to ONGOING." examples: - kWWZ5wJRKkx6ZwLKBjYqow readOnly: true type: string content: description: Live Activity content payload. The shape depends on `template` - pick a tab below to see only the fields for that template. discriminator: mapping: alert: "#/components/schemas/ContentAlert" approval: "#/components/schemas/ContentApproval" board: "#/components/schemas/ContentBoard" checklist: "#/components/schemas/ContentChecklist" countdown: "#/components/schemas/ContentCountdown" gauge: "#/components/schemas/ContentGauge" generic: "#/components/schemas/ContentGeneric" log: "#/components/schemas/ContentLog" media: "#/components/schemas/ContentMedia" steps: "#/components/schemas/ContentSteps" timeline: "#/components/schemas/ContentTimeline" timer: "#/components/schemas/ContentCountdown" propertyName: template oneOf: - $ref: "#/components/schemas/ContentGeneric" title: Generic - $ref: "#/components/schemas/ContentCountdown" title: Countdown - $ref: "#/components/schemas/ContentSteps" title: Steps - $ref: "#/components/schemas/ContentAlert" title: Alert - $ref: "#/components/schemas/ContentGauge" title: Gauge - $ref: "#/components/schemas/ContentTimeline" title: Timeline - $ref: "#/components/schemas/ContentBoard" title: Board - $ref: "#/components/schemas/ContentLog" title: Log - $ref: "#/components/schemas/ContentMedia" title: Media - $ref: "#/components/schemas/ContentApproval" title: Approval - $ref: "#/components/schemas/ContentChecklist" title: Checklist created_at: description: Timestamp when the activity was created. format: date-time readOnly: true type: string delete_at: description: Scheduled deletion time (set automatically from ended_ttl) format: date-time readOnly: true type: string devices_started: description: "How many of devices_targeted have started this run of the Live Activity, as reported back by the device. One that has not may still be starting it, may have the app force-quit, or may have dropped the start: iOS drops a push-to-start silently, with no error to the server, when a phone is over its push-to-start limit. Present only while the activity is ONGOING, on activities the caller owns (not on an organization's)." format: int64 readOnly: true type: integer devices_targeted: description: "The owner's Apple devices this run of the Live Activity is meant to reach: those subscribed to it that hold a push-to-start token. Devices of users it is shared with, Android devices, and the owner's devices while the owner has muted the activity, are not counted. Present only while the activity is ONGOING, on activities the caller owns (not on an organization's)." format: int64 readOnly: true type: integer dismissal_ttl: description: Seconds after ENDED before the Live Activity is removed from the iOS Lock Screen. 0 removes it immediately, up to 14400 (4h, the iOS maximum). When unset, removal follows ended_ttl (capped at 4h). Applies to client ends and server auto-ends (stale_ttl, countdown expiry); evicted (preempted) activities always keep the default lingering window. examples: - 0 format: int64 maximum: 14400 minimum: 0 type: integer ended_at: description: Set once when state first transitions to ENDED; preserved on later transitions. format: date-time readOnly: true type: string ended_ttl: description: Seconds after ENDED before auto-delete (1s to 30 days). Also drives the iOS lock-screen dismissal window unless dismissal_ttl is set (iOS caps lock-screen dismissal at 4h) examples: - 300 format: int64 maximum: 2592000 minimum: 1 type: integer id: description: Stable surrogate identifier - globally unique and immutable. Use this to address an activity unambiguously (e.g. the same slug owned by you and shared to you). The slug remains the owner's human-facing key. examples: - 550e8400-e29b-41d4-a716-446655440000 format: uuid readOnly: true type: string kind: description: "Discriminator: 'owned' for activities the caller owns, 'shared' for activities shared with the caller." enum: - owned - shared type: string name: examples: - Dishwasher maxLength: 256 type: string priority: examples: - 0 format: int64 maximum: 10 minimum: 0 type: integer slug: examples: - dishwasher maxLength: 128 minLength: 1 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$ type: string stale_ttl: description: Seconds of inactivity (ONGOING) before auto-end (1s to 30 days) examples: - 1800 format: int64 maximum: 2592000 minimum: 1 type: integer state: description: Current state. preempted is server-set only - appears when an activity was evicted to make room for a higher-priority one. Clients can only PATCH the state to ongoing or ended. enum: - ended - ongoing - preempted examples: - ongoing type: string updated_at: description: Timestamp of the most recent update. format: date-time readOnly: true type: string required: - kind - id - slug - name - state - priority - content - created_at - updated_at type: object BatteryDevice: additionalProperties: false properties: charging: description: Overlays a charging bolt on the ring. type: boolean color: description: Ring color; clients default to green, red at or below 20%. type: string icon: description: SF Symbol shown inside the ring. maxLength: 128 type: string level: description: Charge percentage. format: double maximum: 100 minimum: 0 type: - number - "null" name: examples: - Robot vacuum maxLength: 32 type: string required: - name - level type: object BoardTile: additionalProperties: false properties: color: type: string icon: maxLength: 128 type: string label: maxLength: 32 minLength: 1 type: string trend: type: string unit: maxLength: 8 type: string url_action: $ref: "#/components/schemas/TapAction" value: maxLength: 16 minLength: 1 type: string required: - label - value type: object CallerIntegrationKey: additionalProperties: false properties: activity_slugs: description: Activity slugs or patterns the key is restricted to. Omitted when unrestricted. items: type: string readOnly: true type: - array - "null" expires_at: description: When the key stops working. Omitted when it never expires. format: date-time readOnly: true type: string id: readOnly: true type: string is_default: description: Whether this is the account's default key, the only one that can manage the account's other keys readOnly: true type: boolean name: readOnly: true type: string permissions: $ref: "#/components/schemas/IntegrationKeyPermissions" readOnly: true widget_slugs: description: Widget slugs or patterns the key is restricted to. Omitted when unrestricted. items: type: string readOnly: true type: - array - "null" required: - id - name - is_default - permissions type: object CancelNotificationReceiptsByTagInputBody: additionalProperties: false properties: tag: description: Cancel every active receipt sent with this tag. maxLength: 64 minLength: 1 pattern: ^[!-~]+$ type: string required: - tag type: object CancelNotificationReceiptsByTagOutputBody: additionalProperties: false properties: canceled: description: How many active receipts were canceled. format: int64 type: integer required: - canceled type: object ContentAlert: additionalProperties: true description: One-shot alert with a severity level - critical, warning, or info. properties: accent_color: description: "Accent color: named color or hex (#RRGGBB / #RRGGBBAA)." type: string background_color: description: "Background color: named color or hex." type: string compact_label: description: Up to 4 characters shown in the Dynamic Island compact leading ear in place of that template's default (the icon, the steps ring, or the timeline high/low stack). Applies to every template. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string compact_trailing_icon: description: "Icon shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). SF Symbol (e.g. airplane.departure) or Material Design Icon with mdi: prefix (e.g. mdi:airplane-takeoff), written with letters, digits, '.', '-', '_' and ':' only. Applies to every template. In the Dynamic Island compact_trailing_label wins when both are set; the Mac notch, which fits one glyph, draws the icon either way. Leading and trailing whitespace is removed server-side, and the 128-character limit and the character rule apply to the trimmed value, so send it trimmed. The minimal presentation ignores it." maxLength: 128 pattern: ^[A-Za-z0-9._:-]*$ type: string compact_trailing_label: description: Up to 4 characters shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). Applies to every template. Takes precedence over compact_trailing_icon when both are set. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string fired_at: description: Unix timestamp when the alert fired. type: integer icon: description: "Icon name. SF Symbol (e.g. washer, flame) or Material Design Icon with mdi: prefix (e.g. mdi:thermometer)." maxLength: 128 type: string progress: description: Progress value [0.0 - 1.0] maximum: 1 minimum: 0 type: number remaining_time: description: Remaining time in seconds. minimum: 0 type: integer secondary_url: description: Secondary button URL (legacy). Use secondary_url_action for richer routing. maxLength: 2048 type: string secondary_url_action: description: Secondary button. See url_action for semantics. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object severity: description: Alert severity level. Required when template is alert. enum: - critical - warning - info type: string severity_label: description: Custom text shown in place of the Info/Warning/Critical badge (alert template). maxLength: 40 type: string snoozed_until: description: Server-set unix timestamp marking the new end_date after the most recent snooze. Non-nil and >= now means the activity is currently snoozed. readOnly: true type: integer state: description: Short status text (e.g. Washing, Build Container Image). maxLength: 256 type: string subtitle: description: Secondary descriptive text (e.g. Layer 150/200, repo / CI/CD). maxLength: 256 type: string tap_action: description: Widget-wide tap action. When set, overrides the default behavior (opening the PushWard app to the activity detail page). The whole Live Activity becomes tappable as a single target. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object template: description: Template type that determines the Live Activity layout. enum: - alert type: string text_color: description: "Text color: named color or hex." type: string url: description: Primary button URL (legacy). Use url_action for richer routing (silent webhook, custom HTTP method/headers/body). maxLength: 2048 type: string url_action: description: Primary button. Replaces the legacy url string when richer routing semantics (silent webhook, custom HTTP) are needed. When both url and url_action are set, url_action wins on iOS clients that understand it. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object required: - template title: Alert type: object ContentApproval: additionalProperties: true description: "A question card with 2-4 answer buttons. The question rides state; each option with a url fires your webhook directly, while an option without one gets a signed answer URL - the server records the tap in answer, pushes the resolved card to every device and ends the activity (dismissal_ttl controls how long the answered card lingers on the Lock Screen). Set end_date with on_expire for a deadline that applies a default answer. One card can also walk through several questions in place: send step and step_count (e.g. 1 of 3), wait for the answer, then PATCH the next question with step 2, its options and details. An answer on a step before the last keeps the card open for the next step instead of ending it; a card left there for 10 minutes with no next step, or past its end_date, is ended. Older app builds render the generic card with the first two options as working buttons." properties: accent_color: description: "Accent color: named color or hex (#RRGGBB / #RRGGBBAA)." type: string answer: description: "Server-recorded resolution. Read-only and server-owned: ignored on write, cleared when a patch starts a new round (a changed option set or a changed step). Set when an option without a url is tapped, or when the deadline passes." properties: at: description: Unix timestamp when the answer was recorded. type: integer by: description: user = someone tapped a server-recorded option; expired = the deadline sweep applied on_expire. enum: - user - expired type: string option: description: Chosen option id, or "none" when the deadline passed with no default. type: string readOnly: true type: object answer_round: description: Server-managed round counter, starting at 0 and advancing each time a changed option set or a changed step starts a new round. Signed answer URLs are only valid for the round they were minted in, so re-read them after every step change; ignored on write. readOnly: true type: integer background_color: description: "Background color: named color or hex." type: string compact_label: description: Up to 4 characters shown in the Dynamic Island compact leading ear in place of that template's default (the icon, the steps ring, or the timeline high/low stack). Applies to every template. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string compact_trailing_icon: description: "Icon shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). SF Symbol (e.g. airplane.departure) or Material Design Icon with mdi: prefix (e.g. mdi:airplane-takeoff), written with letters, digits, '.', '-', '_' and ':' only. Applies to every template. In the Dynamic Island compact_trailing_label wins when both are set; the Mac notch, which fits one glyph, draws the icon either way. Leading and trailing whitespace is removed server-side, and the 128-character limit and the character rule apply to the trimmed value, so send it trimmed. The minimal presentation ignores it." maxLength: 128 pattern: ^[A-Za-z0-9._:-]*$ type: string compact_trailing_label: description: Up to 4 characters shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). Applies to every template. Takes precedence over compact_trailing_icon when both are set. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string details: description: Up to two label/value context rows between the question and the buttons. With details present keep the activity name short and interrogative - the rows take the space the question text had. items: properties: label: description: Row label (e.g. To, Amount). maxLength: 24 type: string value: description: Row value (e.g. ops@example.com). maxLength: 64 type: string required: - label - value type: object maxItems: 2 type: array end_date: description: Unix timestamp deadline. Enables the countdown pill on the card, and with on_expire a default answer when nobody taps. type: integer icon: description: "Icon name. SF Symbol (e.g. washer, flame) or Material Design Icon with mdi: prefix (e.g. mdi:thermometer)." maxLength: 128 type: string on_expire: description: Option id the server records at end_date when nobody answered, or "none" to just expire. Requires end_date. The expired card is pushed to every device and the activity ends. type: string options: description: 2-4 answer buttons. Replaced wholesale on each update; re-sending a changed set (or moving to another step) starts a new round and clears the stored answer, while an identical re-send on the same step keeps it. Required when template is approval. items: description: One answer button (2-4 per card). properties: authentication_required: description: "Require device unlock before firing. Default false. The device enforces it, not the server: on Android, builds that predate this field fire the option with one tap; a locked iPhone asks for Face ID or the passcode before any button, with or without it. Changing it starts a new round like any other option change." type: boolean body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). Required when there are 3 or more options - compact surfaces render icon-first tiles. maxLength: 64 type: string id: description: Stable identifier recorded in answer.option when this option is chosen. Unique within options. maxLength: 64 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,63}$ type: string method: description: HTTP method for the webhook. Defaults to POST for approval options (unlike url_action, whose default is GET). Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string style: description: "Button weight: primary (filled accent), secondary (outlined), destructive (red). Default: the first option renders primary, the rest secondary." enum: - primary - secondary - destructive type: string title: description: Button label. Up to four buttons share one row, so keep it short. maxLength: 24 type: string url: description: "Webhook fired when this option is tapped. http(s) URLs are always silent webhooks (method defaults to POST; foreground is rejected); custom schemes open that app. Omit it for the server-recorded form: the server fills a signed answer URL, the tap lands in answer, is pushed to every device, and the activity ends." maxLength: 2048 type: string required: - id - title type: object maxItems: 4 minItems: 2 type: array progress: description: Progress value [0.0 - 1.0] maximum: 1 minimum: 0 type: number remaining_time: description: Remaining time in seconds. minimum: 0 type: integer snoozed_until: description: Server-set unix timestamp marking the new end_date after the most recent snooze. Non-nil and >= now means the activity is currently snoozed. readOnly: true type: integer source: description: Who is asking - rendered as a badge in the card header (e.g. Agent, GitHub, n8n). maxLength: 24 type: string state: description: Short status text (e.g. Washing, Build Container Image). maxLength: 256 type: string step: description: "Which question of a multi-step card this is, 1-based. Requires step_count and must not exceed it. The question rides state, and each step may change its own options, details, source and icon; the activity name cannot change in place on iOS, so keep it generic for the whole walk. A changed step starts a new round - the stored answer is cleared and the answer URLs are re-signed - even when the options are equal. Options with your own url are never re-signed, so make them differ between steps (for example carry the step in the url or body): older Android builds keep a tap's sent state while the option set is unchanged and would refuse the next step's taps. An answer on a step before the last is pushed and returned to a waiting GET ?wait= but the card stays open for the next step; if no next step arrives within 10 minutes the server ends the card. The answer on the final step ends it as usual. end_date and on_expire stay one deadline for the whole card: when it passes on an open question the default answer is recorded and the card ends, and when it passes while an answered step waits for its next question the card ends with that answer." maximum: 10 minimum: 1 type: integer step_count: description: Total number of questions the card walks through, 1-10. Requires step. Shown as a 2/3 style counter on the card; changing it alone does not start a new round. maximum: 10 minimum: 1 type: integer subtitle: description: Secondary descriptive text (e.g. Layer 150/200, repo / CI/CD). maxLength: 256 type: string tap_action: description: Widget-wide tap action. When set, overrides the default behavior (opening the PushWard app to the activity detail page). The whole Live Activity becomes tappable as a single target. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object template: description: Template type that determines the Live Activity layout. enum: - approval type: string text_color: description: "Text color: named color or hex." type: string required: - template title: Approval type: object ContentBoard: additionalProperties: true description: A grid of 1-4 labeled tiles, each with a value, optional unit, icon, color, and trend arrow (e.g. a room of sensors). Tiles are replaced wholesale on each update. properties: accent_color: description: "Accent color: named color or hex (#RRGGBB / #RRGGBBAA)." type: string background_color: description: "Background color: named color or hex." type: string compact_label: description: Up to 4 characters shown in the Dynamic Island compact leading ear in place of that template's default (the icon, the steps ring, or the timeline high/low stack). Applies to every template. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string compact_trailing_icon: description: "Icon shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). SF Symbol (e.g. airplane.departure) or Material Design Icon with mdi: prefix (e.g. mdi:airplane-takeoff), written with letters, digits, '.', '-', '_' and ':' only. Applies to every template. In the Dynamic Island compact_trailing_label wins when both are set; the Mac notch, which fits one glyph, draws the icon either way. Leading and trailing whitespace is removed server-side, and the 128-character limit and the character rule apply to the trimmed value, so send it trimmed. The minimal presentation ignores it." maxLength: 128 pattern: ^[A-Za-z0-9._:-]*$ type: string compact_trailing_label: description: Up to 4 characters shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). Applies to every template. Takes precedence over compact_trailing_icon when both are set. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string icon: description: "Icon name. SF Symbol (e.g. washer, flame) or Material Design Icon with mdi: prefix (e.g. mdi:thermometer)." maxLength: 128 type: string progress: description: Progress value [0.0 - 1.0] maximum: 1 minimum: 0 type: number remaining_time: description: Remaining time in seconds. minimum: 0 type: integer secondary_url: description: Secondary button URL (legacy). Use secondary_url_action for richer routing. maxLength: 2048 type: string secondary_url_action: description: Secondary button. See url_action for semantics. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object snoozed_until: description: Server-set unix timestamp marking the new end_date after the most recent snooze. Non-nil and >= now means the activity is currently snoozed. readOnly: true type: integer state: description: Short status text (e.g. Washing, Build Container Image). maxLength: 256 type: string subtitle: description: Secondary descriptive text (e.g. Layer 150/200, repo / CI/CD). maxLength: 256 type: string tap_action: description: Widget-wide tap action. When set, overrides the default behavior (opening the PushWard app to the activity detail page). The whole Live Activity becomes tappable as a single target. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object template: description: Template type that determines the Live Activity layout. enum: - board type: string text_color: description: "Text color: named color or hex." type: string tiles: description: 1-4 labeled tiles. Replaced wholesale on each update (no server accumulation). Required when template is board. items: $ref: "#/components/schemas/BoardTile" maxItems: 4 minItems: 1 type: array url: description: Primary button URL (legacy). Use url_action for richer routing (silent webhook, custom HTTP method/headers/body). maxLength: 2048 type: string url_action: description: Primary button. Replaces the legacy url string when richer routing semantics (silent webhook, custom HTTP) are needed. When both url and url_action are set, url_action wins on iOS clients that understand it. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object required: - template title: Board type: object ContentChecklist: additionalProperties: true description: "A short list of 1-8 items the user ticks from the Lock Screen, the Dynamic Island, the watch, the Mac or the Android notification. A tap goes to the server (tick_url), which records it in the item's checked, pushes the card to every device and, once every item is checked, ends the activity a few seconds later (unticking first keeps it open; with auto_end: false it stays open until you end it). Read ticks with GET /activities/{slug}; ?wait= returns as soon as an item changes or the activity ends. Your own PATCH can tick too: send checked on an item, or leave it out to keep what the user ticked. progress and state are filled by the server (checked/total and \"3 of 8\"), which is what older app builds show on the generic card." properties: accent_color: description: "Accent color: named color or hex (#RRGGBB / #RRGGBBAA)." type: string auto_end: description: Whether the server ends the activity a few seconds after every item is checked. Defaults to true when omitted. false keeps a complete list ongoing (the card reads "All done") until you end it, or stale_ttl or the usual limits do; switching back to true while every item is checked ends it after the same delay. On updates an omitted key keeps the stored value; null resets it to the default. type: boolean background_color: description: "Background color: named color or hex." type: string compact_label: description: Up to 4 characters shown in the Dynamic Island compact leading ear in place of that template's default (the icon, the steps ring, or the timeline high/low stack). Applies to every template. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string compact_trailing_icon: description: "Icon shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). SF Symbol (e.g. airplane.departure) or Material Design Icon with mdi: prefix (e.g. mdi:airplane-takeoff), written with letters, digits, '.', '-', '_' and ':' only. Applies to every template. In the Dynamic Island compact_trailing_label wins when both are set; the Mac notch, which fits one glyph, draws the icon either way. Leading and trailing whitespace is removed server-side, and the 128-character limit and the character rule apply to the trimmed value, so send it trimmed. The minimal presentation ignores it." maxLength: 128 pattern: ^[A-Za-z0-9._:-]*$ type: string compact_trailing_label: description: Up to 4 characters shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). Applies to every template. Takes precedence over compact_trailing_icon when both are set. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string icon: description: "Icon name. SF Symbol (e.g. washer, flame) or Material Design Icon with mdi: prefix (e.g. mdi:thermometer)." maxLength: 128 type: string items: description: 1-8 items, shown unchecked first. Replaced wholesale on each update (send the full list); checked follows the rule on the item. Required when template is checklist. items: properties: checked: description: "Whether the item is ticked. Optional on write: absent on a new item means false, and absent on an item whose id is already stored keeps the stored value (a user's tick is never undone by a PATCH that leaves it out), except on an update that restarts an ended activity, which starts a new run with every such item unchecked. true or false sets it. Always present in responses." type: boolean id: description: Stable identifier of the item, unique within items. A tick names it, and a PATCH that keeps an id keeps its checked value unless checked is sent. maxLength: 16 minLength: 1 pattern: ^[A-Za-z0-9_-]{1,16}$ type: string label: description: The item's one line of text. maxLength: 40 minLength: 1 type: string required: - id - label type: object maxItems: 8 minItems: 1 type: array progress: description: "Server-filled on this template: checked items over all items. A value you send is replaced." maximum: 1 minimum: 0 type: number remaining_time: description: Remaining time in seconds. minimum: 0 type: integer snoozed_until: description: Server-set unix timestamp marking the new end_date after the most recent snooze. Non-nil and >= now means the activity is currently snoozed. readOnly: true type: integer state: description: "Server-filled on this template: the checked count, e.g. 3 of 8. A value you send is replaced." maxLength: 256 type: string subtitle: description: Secondary descriptive text (e.g. Layer 150/200, repo / CI/CD). maxLength: 256 type: string tap_action: description: Widget-wide tap action. When set, overrides the default behavior (opening the PushWard app to the activity detail page). The whole Live Activity becomes tappable as a single target. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object template: description: Template type that determines the Live Activity layout. enum: - checklist type: string text_color: description: "Text color: named color or hex." type: string tick_url: description: "Server-set signed URL a device POSTs a tick to, appending &item=&checked=true|false. Read-only and server-owned: ignored on write. Valid while the activity is an ongoing checklist." readOnly: true type: string required: - template title: Checklist type: object ContentCountdown: additionalProperties: true description: "Timer: counts down to end_date (direction down, the default; start_date/end_date or duration), or up from start_date (direction up), e.g. how long someone has been asleep. Send \"template\": \"timer\" or its original name \"countdown\"; responses always report countdown. Counting down, the server sends a warning push at warning_threshold and an end push when end_date passes. Counting up there is no end of its own: an optional goal fills a ruler toward a target, after which the card turns orange and keeps counting as overtime; nothing needs to be pushed while it runs, the server keeps it alive past the iOS 8-hour limit (up to about 3 days, or the stale_ttl you set), and ending it freezes the card at the final duration. Both directions pause with paused: true / false. Counting up and pausing need the iOS app 1.19.0 or later; older builds do not show either, so always set state." properties: accent_color: description: "Accent color: named color or hex (#RRGGBB / #RRGGBBAA)." type: string alarm: description: "Opt-in: schedule an iOS AlarmKit alarm at end_date. Requires end_date. Once set, persists across partial updates until cleared with alarm:null or a transition to ENDED. iOS 26+ only. Not used when direction is up." type: boolean background_color: description: "Background color: named color or hex." type: string compact_label: description: Up to 4 characters shown in the Dynamic Island compact leading ear in place of that template's default (the icon, the steps ring, or the timeline high/low stack). Applies to every template. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string compact_trailing_icon: description: "Icon shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). SF Symbol (e.g. airplane.departure) or Material Design Icon with mdi: prefix (e.g. mdi:airplane-takeoff), written with letters, digits, '.', '-', '_' and ':' only. Applies to every template. In the Dynamic Island compact_trailing_label wins when both are set; the Mac notch, which fits one glyph, draws the icon either way. Leading and trailing whitespace is removed server-side, and the 128-character limit and the character rule apply to the trimmed value, so send it trimmed. The minimal presentation ignores it." maxLength: 128 pattern: ^[A-Za-z0-9._:-]*$ type: string compact_trailing_label: description: Up to 4 characters shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). Applies to every template. Takes precedence over compact_trailing_icon when both are set. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string completion_message: description: Text shown when the countdown expires (default Completed). Not used when direction is up. maxLength: 512 type: string direction: description: "down (the default when omitted) counts down to end_date; up counts up from start_date and takes no end_date, duration, warning_threshold, alarm, snooze_seconds or completion_message (a 422 when sent). Switching to up, or from another template, starts a new run: an unsent start_date is replaced by now and the down-only fields are dropped. Switching back to down drops goal and the pause state and needs end_date or duration again." enum: - down - up type: string duration: description: Integer seconds (60) or a duration string ("60s", "5m", "1h30m"). Sets start_date = now and end_date = now + duration. For mid-flight updates that should preserve the original timer, send end_date directly. If both duration and end_date are provided, end_date wins. Not used when direction is up. oneOf: - maximum: 157788000 minimum: 1 type: integer - pattern: ^(\d+|(\d+[hms])+)$ type: string end_date: description: "Unix timestamp for countdown end. Required when direction is down and duration is not set. Wins over duration when both are set: duration is ignored. Not used when direction is up." type: integer goal: description: "Direction up only: an optional target, integer seconds (7200) or a duration string (\"2h\", \"90m\"); stored and returned as integer seconds. The card fills a ruler toward it, then turns orange and keeps counting as overtime. Cleared with null." oneOf: - maximum: 157788000 minimum: 1 type: integer - pattern: ^(\d+|(\d+[hms])+)$ type: string icon: description: "Icon name. SF Symbol (e.g. washer, flame) or Material Design Icon with mdi: prefix (e.g. mdi:thermometer)." maxLength: 128 type: string paused: description: "true pauses a running clock, false resumes a paused one, in either direction. Re-sending the current state changes nothing, unless end_date or duration comes with it: counting down, those set a new window, which drops the earlier pause. Sent to an ended timer it changes nothing, and neither does a re-sent end_date there, so the final reading stays. Counting up, the time spent paused is left out of the clock; counting down, a resume moves end_date (and start_date) on by the paused time, so the time left is where it was. A countdown that ran out but has not ended yet cannot be paused (422). Never stored: read paused_at and paused_seconds instead." type: boolean writeOnly: true paused_at: description: "Server-set unix timestamp the clock was paused at; absent while it runs. Set by paused: true. Counting up, an ended clock stops here if it was paused when it ended, else at the activity's ended_at." readOnly: true type: integer paused_seconds: description: "Direction up only: server-kept total seconds spent paused so far, updated by paused: false. The clock shows (paused_at, else ended_at once ended, else now) minus start_date minus paused_seconds." minimum: 0 readOnly: true type: integer progress: description: Progress value [0.0 - 1.0] maximum: 1 minimum: 0 type: number remaining_time: description: Remaining time in seconds. minimum: 0 type: integer secondary_url: description: Secondary button URL (legacy). Use secondary_url_action for richer routing. maxLength: 2048 type: string secondary_url_action: description: Secondary button. See url_action for semantics. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object show_ruler: description: Whether the card draws its ruler. Defaults to true when omitted; the server only stores and forwards it. type: boolean snooze_seconds: description: How many seconds POST /activities/{slug}/snooze extends end_date, and the iOS AlarmKit postAlert (snooze) window. Defaults to 300 (5 min) when omitted. Only meaningful with alarm:true. Not used when direction is up. maximum: 3600 minimum: 60 type: integer snoozed_until: description: Server-set unix timestamp marking the new end_date after the most recent snooze. Non-nil and >= now means the activity is currently snoozed. readOnly: true type: integer start_date: description: "Counting down: unix timestamp when the countdown began; the server preserves the stored value on partial updates that send end_date without start_date or duration. Counting up: the instant the clock counts up from; may be in the past and at most 5 minutes ahead (clock drift), defaults to now when the run starts (and when an ended activity goes ongoing again without one), and sending a different start_date restarts the clock and clears the stored pause time." type: integer state: description: Short status text (e.g. Washing, Build Container Image). maxLength: 256 type: string subtitle: description: Secondary descriptive text (e.g. Layer 150/200, repo / CI/CD). maxLength: 256 type: string tap_action: description: Widget-wide tap action. When set, overrides the default behavior (opening the PushWard app to the activity detail page). The whole Live Activity becomes tappable as a single target. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object template: description: Template type that determines the Live Activity layout. "timer" is this template's name; "countdown", its original name, is still accepted and is what responses report. enum: - timer - countdown type: string text_color: description: "Text color: named color or hex." type: string url: description: Primary button URL (legacy). Use url_action for richer routing (silent webhook, custom HTTP method/headers/body). maxLength: 2048 type: string url_action: description: Primary button. Replaces the legacy url string when richer routing semantics (silent webhook, custom HTTP) are needed. When both url and url_action are set, url_action wins on iOS clients that understand it. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object warning_pushed: description: Server-set flag indicating a countdown warning push has been sent. readOnly: true type: boolean warning_threshold: description: Seconds before end_date when accent color turns orange and a warning push is sent. Once set, persists across updates until explicitly cleared with null. Not used when direction is up. minimum: 0 type: integer required: - template title: Countdown type: object ContentGauge: additionalProperties: true description: Single numeric value rendered against a min/max range. properties: accent_color: description: "Accent color: named color or hex (#RRGGBB / #RRGGBBAA)." type: string background_color: description: "Background color: named color or hex." type: string compact_label: description: Up to 4 characters shown in the Dynamic Island compact leading ear in place of that template's default (the icon, the steps ring, or the timeline high/low stack). Applies to every template. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string compact_trailing_icon: description: "Icon shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). SF Symbol (e.g. airplane.departure) or Material Design Icon with mdi: prefix (e.g. mdi:airplane-takeoff), written with letters, digits, '.', '-', '_' and ':' only. Applies to every template. In the Dynamic Island compact_trailing_label wins when both are set; the Mac notch, which fits one glyph, draws the icon either way. Leading and trailing whitespace is removed server-side, and the 128-character limit and the character rule apply to the trimmed value, so send it trimmed. The minimal presentation ignores it." maxLength: 128 pattern: ^[A-Za-z0-9._:-]*$ type: string compact_trailing_label: description: Up to 4 characters shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). Applies to every template. Takes precedence over compact_trailing_icon when both are set. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string decimals: description: "Decimal places for value display. Omitted: automatic formatting." maximum: 10 minimum: 0 type: integer icon: description: "Icon name. SF Symbol (e.g. washer, flame) or Material Design Icon with mdi: prefix (e.g. mdi:thermometer)." maxLength: 128 type: string max_value: description: Maximum value of the range. Required when template is gauge. type: number min_value: description: Minimum value of the range. Required when template is gauge. type: number progress: description: Progress value [0.0 - 1.0] maximum: 1 minimum: 0 type: number remaining_time: description: Remaining time in seconds. minimum: 0 type: integer secondary_url: description: Secondary button URL (legacy). Use secondary_url_action for richer routing. maxLength: 2048 type: string secondary_url_action: description: Secondary button. See url_action for semantics. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object snoozed_until: description: Server-set unix timestamp marking the new end_date after the most recent snooze. Non-nil and >= now means the activity is currently snoozed. readOnly: true type: integer state: description: Short status text (e.g. Washing, Build Container Image). maxLength: 256 type: string subtitle: description: Secondary descriptive text (e.g. Layer 150/200, repo / CI/CD). maxLength: 256 type: string tap_action: description: Widget-wide tap action. When set, overrides the default behavior (opening the PushWard app to the activity detail page). The whole Live Activity becomes tappable as a single target. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object template: description: Template type that determines the Live Activity layout. enum: - gauge type: string text_color: description: "Text color: named color or hex." type: string unit: description: Unit label displayed after the value (e.g. degC, %, rpm). maxLength: 32 type: string url: description: Primary button URL (legacy). Use url_action for richer routing (silent webhook, custom HTTP method/headers/body). maxLength: 2048 type: string url_action: description: Primary button. Replaces the legacy url string when richer routing semantics (silent webhook, custom HTTP) are needed. When both url and url_action are set, url_action wins on iOS clients that understand it. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object value: description: Numeric value to display. Required when template is gauge. type: number required: - template title: Gauge type: object ContentGeneric: additionalProperties: true description: Free-form Live Activity with progress, status text, icon, and colors. properties: accent_color: description: "Accent color: named color or hex (#RRGGBB / #RRGGBBAA)." type: string background_color: description: "Background color: named color or hex." type: string compact_label: description: Up to 4 characters shown in the Dynamic Island compact leading ear in place of that template's default (the icon, the steps ring, or the timeline high/low stack). Applies to every template. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string compact_trailing_icon: description: "Icon shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). SF Symbol (e.g. airplane.departure) or Material Design Icon with mdi: prefix (e.g. mdi:airplane-takeoff), written with letters, digits, '.', '-', '_' and ':' only. Applies to every template. In the Dynamic Island compact_trailing_label wins when both are set; the Mac notch, which fits one glyph, draws the icon either way. Leading and trailing whitespace is removed server-side, and the 128-character limit and the character rule apply to the trimmed value, so send it trimmed. The minimal presentation ignores it." maxLength: 128 pattern: ^[A-Za-z0-9._:-]*$ type: string compact_trailing_label: description: Up to 4 characters shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). Applies to every template. Takes precedence over compact_trailing_icon when both are set. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string duration: description: Integer seconds (60) or a duration string ("60s", "5m", "1h30m"). Sets start_date = now and end_date = now + duration - a shorthand for the live_progress ETA anchor. If both duration and end_date are provided, end_date wins. oneOf: - maximum: 157788000 minimum: 1 type: integer - pattern: ^(\d+|(\d+[hms])+)$ type: string end_date: description: Unix timestamp when the tracked work is expected to finish (the ETA anchor for live_progress). type: integer icon: description: "Icon name. SF Symbol (e.g. washer, flame) or Material Design Icon with mdi: prefix (e.g. mdi:thermometer)." maxLength: 128 type: string image_shape: description: "How the image is framed: poster (2:3 cover art), square, or circle. Defaults to square when omitted." enum: - poster - square - circle type: string image_thumbhash: description: ThumbHash of the image as padded standard-alphabet base64 (about 28 characters). Renders as a blurred stand-in until the download lands, and is the only tier that shows anything for an image the device cannot reach. maxLength: 64 type: string image_url: description: "https URL of an image shown beside the icon. The server never fetches it: the device downloads and caches it, so the host must be publicly reachable over https (a LAN or Tailscale address will not load). Send image_thumbhash alongside it as the fallback. On updates an omitted key keeps the stored URL; null clears it (\"\" also clears)." maxLength: 2048 type: string live_progress: description: "Opt-in client-side interpolation: iOS animates the progress bar and ETA natively from progress + end_date between pushes instead of rendering a static bar. Requires end_date. Cleared with null." type: boolean progress: description: Progress value [0.0 - 1.0] maximum: 1 minimum: 0 type: number remaining_time: description: Remaining time in seconds. minimum: 0 type: integer secondary_url: description: Secondary button URL (legacy). Use secondary_url_action for richer routing. maxLength: 2048 type: string secondary_url_action: description: Secondary button. See url_action for semantics. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object snoozed_until: description: Server-set unix timestamp marking the new end_date after the most recent snooze. Non-nil and >= now means the activity is currently snoozed. readOnly: true type: integer start_date: description: Unix timestamp when the tracked work began; must be before end_date. Sent automatically by duration. type: integer state: description: Short status text (e.g. Washing, Build Container Image). maxLength: 256 type: string subtitle: description: Secondary descriptive text (e.g. Layer 150/200, repo / CI/CD). maxLength: 256 type: string tap_action: description: Widget-wide tap action. When set, overrides the default behavior (opening the PushWard app to the activity detail page). The whole Live Activity becomes tappable as a single target. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object template: description: Template type that determines the Live Activity layout. enum: - generic type: string text_color: description: "Text color: named color or hex." type: string url: description: Primary button URL (legacy). Use url_action for richer routing (silent webhook, custom HTTP method/headers/body). maxLength: 2048 type: string url_action: description: Primary button. Replaces the legacy url string when richer routing semantics (silent webhook, custom HTTP) are needed. When both url and url_action are set, url_action wins on iOS clients that understand it. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object required: - template title: Generic type: object ContentLog: additionalProperties: true description: A scrolling log of 1-20 lines (newest first), each with optional timestamp and level (info/warn/error). Lines are replaced wholesale on each update; the server additionally accumulates a rolling backlog (up to 1000 lines) fetchable via ?include=log_backlog for in-app scroll-back. properties: accent_color: description: "Accent color: named color or hex (#RRGGBB / #RRGGBBAA)." type: string background_color: description: "Background color: named color or hex." type: string compact_label: description: Up to 4 characters shown in the Dynamic Island compact leading ear in place of that template's default (the icon, the steps ring, or the timeline high/low stack). Applies to every template. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string compact_trailing_icon: description: "Icon shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). SF Symbol (e.g. airplane.departure) or Material Design Icon with mdi: prefix (e.g. mdi:airplane-takeoff), written with letters, digits, '.', '-', '_' and ':' only. Applies to every template. In the Dynamic Island compact_trailing_label wins when both are set; the Mac notch, which fits one glyph, draws the icon either way. Leading and trailing whitespace is removed server-side, and the 128-character limit and the character rule apply to the trimmed value, so send it trimmed. The minimal presentation ignores it." maxLength: 128 pattern: ^[A-Za-z0-9._:-]*$ type: string compact_trailing_label: description: Up to 4 characters shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). Applies to every template. Takes precedence over compact_trailing_icon when both are set. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string icon: description: "Icon name. SF Symbol (e.g. washer, flame) or Material Design Icon with mdi: prefix (e.g. mdi:thermometer)." maxLength: 128 type: string lines: description: 1-20 log lines, newest first. Replaced wholesale on each update (no server accumulation). Required when template is log. items: $ref: "#/components/schemas/LogLine" maxItems: 20 minItems: 1 type: array log_backlog: description: "Server-accumulated rolling log history (newest first), up to 1000 lines / ~600 KiB. Read-only and server-owned: ignored on write. Returned only when the request includes ?include=log_backlog; omitted by default and never sent in the APNs payload." items: $ref: "#/components/schemas/LogLine" maxItems: 1000 readOnly: true type: array progress: description: Progress value [0.0 - 1.0] maximum: 1 minimum: 0 type: number remaining_time: description: Remaining time in seconds. minimum: 0 type: integer secondary_url: description: Secondary button URL (legacy). Use secondary_url_action for richer routing. maxLength: 2048 type: string secondary_url_action: description: Secondary button. See url_action for semantics. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object snoozed_until: description: Server-set unix timestamp marking the new end_date after the most recent snooze. Non-nil and >= now means the activity is currently snoozed. readOnly: true type: integer state: description: Short status text (e.g. Washing, Build Container Image). maxLength: 256 type: string subtitle: description: Secondary descriptive text (e.g. Layer 150/200, repo / CI/CD). maxLength: 256 type: string tap_action: description: Widget-wide tap action. When set, overrides the default behavior (opening the PushWard app to the activity detail page). The whole Live Activity becomes tappable as a single target. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object template: description: Template type that determines the Live Activity layout. enum: - log type: string text_color: description: "Text color: named color or hex." type: string url: description: Primary button URL (legacy). Use url_action for richer routing (silent webhook, custom HTTP method/headers/body). maxLength: 2048 type: string url_action: description: Primary button. Replaces the legacy url string when richer routing semantics (silent webhook, custom HTTP) are needed. When both url and url_action are set, url_action wins on iOS clients that understand it. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object required: - template title: Log type: object ContentMedia: additionalProperties: true description: "A remote media player card: cover art (image trio), media_title over subtitle (artist/show), a scrubber that ticks on device from position_seconds/position_at while playback_state is playing, and transport buttons (controls) that fire your own webhooks. The activity name is the source device (e.g. Living Room). Needs the iOS app 1.9.0 or later; older builds render it as the generic card with a static progress bar." properties: accent_color: description: "Accent color: named color or hex (#RRGGBB / #RRGGBBAA)." type: string background_color: description: "Background color: named color or hex." type: string compact_label: description: Up to 4 characters shown in the Dynamic Island compact leading ear in place of that template's default (the icon, the steps ring, or the timeline high/low stack). Applies to every template. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string compact_trailing_icon: description: "Icon shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). SF Symbol (e.g. airplane.departure) or Material Design Icon with mdi: prefix (e.g. mdi:airplane-takeoff), written with letters, digits, '.', '-', '_' and ':' only. Applies to every template. In the Dynamic Island compact_trailing_label wins when both are set; the Mac notch, which fits one glyph, draws the icon either way. Leading and trailing whitespace is removed server-side, and the 128-character limit and the character rule apply to the trimmed value, so send it trimmed. The minimal presentation ignores it." maxLength: 128 pattern: ^[A-Za-z0-9._:-]*$ type: string compact_trailing_label: description: Up to 4 characters shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). Applies to every template. Takes precedence over compact_trailing_icon when both are set. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string controls: description: "Transport buttons. Each slot is a tap action the device fires on tap; omit a slot to hide its button. play_pause is a single toggle endpoint; play and pause are the split alternative (the device picks by playback_state and falls back to play_pause). On PATCH the object deep-merges: {\"controls\":{\"stop\":null}} removes one slot; extra replaces wholesale." properties: extra: description: Up to 3 custom buttons rendered in a row under the transport controls. Replaced wholesale on each update. items: description: Custom button. icon (SF Symbol) is required; title is the accessibility label. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url - icon type: object maxItems: 3 type: array favorite: description: Webhook fired when this button is tapped. http(s) URLs are always silent webhooks (method defaults to POST; foreground is rejected); custom schemes open that app. title is ignored on the fixed slots - the glyph is the label. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object next: description: Webhook fired when this button is tapped. http(s) URLs are always silent webhooks (method defaults to POST; foreground is rejected); custom schemes open that app. title is ignored on the fixed slots - the glyph is the label. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object pause: description: Webhook fired when this button is tapped. http(s) URLs are always silent webhooks (method defaults to POST; foreground is rejected); custom schemes open that app. title is ignored on the fixed slots - the glyph is the label. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object play: description: Webhook fired when this button is tapped. http(s) URLs are always silent webhooks (method defaults to POST; foreground is rejected); custom schemes open that app. title is ignored on the fixed slots - the glyph is the label. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object play_pause: description: Webhook fired when this button is tapped. http(s) URLs are always silent webhooks (method defaults to POST; foreground is rejected); custom schemes open that app. title is ignored on the fixed slots - the glyph is the label. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object previous: description: Webhook fired when this button is tapped. http(s) URLs are always silent webhooks (method defaults to POST; foreground is rejected); custom schemes open that app. title is ignored on the fixed slots - the glyph is the label. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object stop: description: Webhook fired when this button is tapped. http(s) URLs are always silent webhooks (method defaults to POST; foreground is rejected); custom schemes open that app. title is ignored on the fixed slots - the glyph is the label. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object volume_down: description: Webhook fired when this button is tapped. http(s) URLs are always silent webhooks (method defaults to POST; foreground is rejected); custom schemes open that app. title is ignored on the fixed slots - the glyph is the label. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object volume_up: description: Webhook fired when this button is tapped. http(s) URLs are always silent webhooks (method defaults to POST; foreground is rejected); custom schemes open that app. title is ignored on the fixed slots - the glyph is the label. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object type: object duration_seconds: description: "Total length in seconds (up to 7 days). Omit for live streams and radio: the bar becomes indeterminate and the elapsed clock still runs." exclusiveMinimum: 0 maximum: 604800 type: number favorite: description: Whether the current item is favorited (filled heart). Omit to leave the heart hollow. type: boolean icon: description: "Icon name. SF Symbol (e.g. washer, flame) or Material Design Icon with mdi: prefix (e.g. mdi:thermometer)." maxLength: 128 type: string image_shape: description: "How the image is framed: poster (2:3 cover art), square, or circle. Defaults to square when omitted." enum: - poster - square - circle type: string image_thumbhash: description: ThumbHash of the image as padded standard-alphabet base64 (about 28 characters). Renders as a blurred stand-in until the download lands, and is the only tier that shows anything for an image the device cannot reach. maxLength: 64 type: string image_url: description: "https URL of an image shown beside the icon. The server never fetches it: the device downloads and caches it, so the host must be publicly reachable over https (a LAN or Tailscale address will not load). Send image_thumbhash alongside it as the fallback. On updates an omitted key keeps the stored URL; null clears it (\"\" also clears)." maxLength: 2048 type: string media_title: description: Track, episode or channel name - the big line of the player card. Use subtitle for the artist/show and the activity name for the source device (e.g. Living Room). maxLength: 128 type: string playback_state: description: Transport state. Only playing ticks the scrubber on device; paused, stopped and buffering freeze it at position_seconds. Omitted renders as paused. enum: - playing - paused - stopped - buffering type: string position_at: description: Unix timestamp (seconds) when position_seconds was sampled; at most 5 minutes in the future and at most 12 hours in the past. Defaults to the server's receive time whenever position_seconds is sent without it, so most producers never set it. type: integer position_seconds: description: Playhead position in seconds (up to 7 days, the duration_seconds ceiling) as sampled at position_at. Re-send it on a timer while playing to keep the device anchored; on its own it is a low-priority (coalescable) update. maximum: 604800 minimum: 0 type: number progress: description: Progress value [0.0 - 1.0] maximum: 1 minimum: 0 type: number remaining_time: description: Remaining time in seconds. minimum: 0 type: integer secondary_url: description: Secondary button URL (legacy). Use secondary_url_action for richer routing. maxLength: 2048 type: string secondary_url_action: description: Secondary button. See url_action for semantics. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object snoozed_until: description: Server-set unix timestamp marking the new end_date after the most recent snooze. Non-nil and >= now means the activity is currently snoozed. readOnly: true type: integer state: description: Short status text (e.g. Washing, Build Container Image). maxLength: 256 type: string subtitle: description: Secondary descriptive text (e.g. Layer 150/200, repo / CI/CD). maxLength: 256 type: string tap_action: description: Widget-wide tap action. When set, overrides the default behavior (opening the PushWard app to the activity detail page). The whole Live Activity becomes tappable as a single target. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object template: description: Template type that determines the Live Activity layout. enum: - media type: string text_color: description: "Text color: named color or hex." type: string url: description: Primary button URL (legacy). Use url_action for richer routing (silent webhook, custom HTTP method/headers/body). maxLength: 2048 type: string url_action: description: Primary button. Replaces the legacy url string when richer routing semantics (silent webhook, custom HTTP) are needed. When both url and url_action are set, url_action wins on iOS clients that understand it. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object volume: description: Volume level 0..1, drawn as a thin bar between the volume buttons. Omit to hide it. maximum: 1 minimum: 0 type: number required: - template title: Media type: object ContentSteps: additionalProperties: true description: Multi-step workflow showing the current step out of a total (e.g. CI pipeline jobs). properties: accent_color: description: "Accent color: named color or hex (#RRGGBB / #RRGGBBAA)." type: string background_color: description: "Background color: named color or hex." type: string compact_label: description: Up to 4 characters shown in the Dynamic Island compact leading ear in place of that template's default (the icon, the steps ring, or the timeline high/low stack). Applies to every template. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string compact_trailing_icon: description: "Icon shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). SF Symbol (e.g. airplane.departure) or Material Design Icon with mdi: prefix (e.g. mdi:airplane-takeoff), written with letters, digits, '.', '-', '_' and ':' only. Applies to every template. In the Dynamic Island compact_trailing_label wins when both are set; the Mac notch, which fits one glyph, draws the icon either way. Leading and trailing whitespace is removed server-side, and the 128-character limit and the character rule apply to the trimmed value, so send it trimmed. The minimal presentation ignores it." maxLength: 128 pattern: ^[A-Za-z0-9._:-]*$ type: string compact_trailing_label: description: Up to 4 characters shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). Applies to every template. Takes precedence over compact_trailing_icon when both are set. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string current_step: description: The step currently running, counting from 1 (0 = not started). Shown as current_step/total_steps. Required when template is steps. minimum: 0 type: integer duration: description: "How long the current step takes. Integer seconds (60) or a duration string (\"60s\", \"5m\", \"1h30m\"). Sets start_date = now and end_date = now + duration, so sending it alongside current_step re-anchors the live_progress animation to the new step. Send it only when current_step changes: restamping the window on every update makes each one a high-priority push that skips update coalescing, and snaps the bar back to empty. If both duration and end_date are provided, end_date wins." oneOf: - maximum: 157788000 minimum: 1 type: integer - pattern: ^(\d+|(\d+[hms])+)$ type: string end_date: description: Unix timestamp when the current step is expected to finish (the ETA anchor for live_progress) - not the end of the whole run. type: integer icon: description: "Icon name. SF Symbol (e.g. washer, flame) or Material Design Icon with mdi: prefix (e.g. mdi:thermometer)." maxLength: 128 type: string image_shape: description: "How the image is framed: poster (2:3 cover art), square, or circle. Defaults to square when omitted." enum: - poster - square - circle type: string image_thumbhash: description: ThumbHash of the image as padded standard-alphabet base64 (about 28 characters). Renders as a blurred stand-in until the download lands, and is the only tier that shows anything for an image the device cannot reach. maxLength: 64 type: string image_url: description: "https URL of an image shown beside the icon. The server never fetches it: the device downloads and caches it, so the host must be publicly reachable over https (a LAN or Tailscale address will not load). Send image_thumbhash alongside it as the fallback. On updates an omitted key keeps the stored URL; null clears it (\"\" also clears)." maxLength: 2048 type: string live_progress: description: "Opt-in client-side interpolation: iOS animates the current step's bar from start_date to end_date between pushes instead of rendering a static fill. Requires end_date. Re-send it (or duration) on each step change to re-anchor. Cleared with null." type: boolean progress: description: Progress value [0.0 - 1.0] maximum: 1 minimum: 0 type: number remaining_time: description: Remaining time in seconds. minimum: 0 type: integer secondary_url: description: Secondary button URL (legacy). Use secondary_url_action for richer routing. maxLength: 2048 type: string secondary_url_action: description: Secondary button. See url_action for semantics. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object snoozed_until: description: Server-set unix timestamp marking the new end_date after the most recent snooze. Non-nil and >= now means the activity is currently snoozed. readOnly: true type: integer start_date: description: Unix timestamp when the current step began; must be before end_date. Sent automatically by duration; the animation runs across start_date..end_date. Omit it and iOS falls back to deriving the fill from progress. type: integer state: description: Short status text (e.g. Washing, Build Container Image). maxLength: 256 type: string step_colors: description: "Per-step colors: named color or hex (#RRGGBB / #RRGGBBAA). Empty entries fall back to accent_color." items: type: string type: array step_labels: description: Per-step labels. The rendered slot is 1/total_steps of the bar width, so the cap is reachable only at low step counts - four steps show about 14 characters on the Lock Screen, sixty-four show about three. items: maxLength: 32 type: string type: array step_rows: description: Per-step row indices (1-10) for multi-row step layouts. items: type: integer type: array step_weights: description: Relative step widths (one positive number per step). On its own draws a single row of proportional segments; combined with step_rows it sizes each column's width while step_rows drives its fan-out. items: exclusiveMinimum: 0 type: number type: array subtitle: description: Secondary descriptive text (e.g. Layer 150/200, repo / CI/CD). maxLength: 256 type: string tap_action: description: Widget-wide tap action. When set, overrides the default behavior (opening the PushWard app to the activity detail page). The whole Live Activity becomes tappable as a single target. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object template: description: Template type that determines the Live Activity layout. enum: - steps type: string text_color: description: "Text color: named color or hex." type: string total_steps: description: Total number of jobs in the workflow (1-64). Required when template is steps. maximum: 64 minimum: 1 type: integer url: description: Primary button URL (legacy). Use url_action for richer routing (silent webhook, custom HTTP method/headers/body). maxLength: 2048 type: string url_action: description: Primary button. Replaces the legacy url string when richer routing semantics (silent webhook, custom HTTP) are needed. When both url and url_action are set, url_action wins on iOS clients that understand it. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object required: - template title: Steps type: object ContentTimeline: additionalProperties: true description: One or more named numeric series rendered as a sparkline. Server accumulates history automatically. properties: accent_color: description: "Accent color: named color or hex (#RRGGBB / #RRGGBBAA)." type: string background_color: description: "Background color: named color or hex." type: string compact_label: description: Up to 4 characters shown in the Dynamic Island compact leading ear in place of that template's default (the icon, the steps ring, or the timeline high/low stack). Applies to every template. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string compact_trailing_icon: description: "Icon shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). SF Symbol (e.g. airplane.departure) or Material Design Icon with mdi: prefix (e.g. mdi:airplane-takeoff), written with letters, digits, '.', '-', '_' and ':' only. Applies to every template. In the Dynamic Island compact_trailing_label wins when both are set; the Mac notch, which fits one glyph, draws the icon either way. Leading and trailing whitespace is removed server-side, and the 128-character limit and the character rule apply to the trimmed value, so send it trimmed. The minimal presentation ignores it." maxLength: 128 pattern: ^[A-Za-z0-9._:-]*$ type: string compact_trailing_label: description: Up to 4 characters shown in the Dynamic Island compact trailing ear in place of that template's default (for example the steps count, a live ETA or the countdown clock). Applies to every template. Takes precedence over compact_trailing_icon when both are set. Leading and trailing whitespace is removed server-side and the 4-character limit applies to the trimmed value, so send it trimmed. The minimal presentation ignores it. maxLength: 4 type: string decimals: description: Decimal places for value display. maximum: 10 minimum: 0 type: integer history: additionalProperties: items: $ref: "#/components/schemas/HistoryPoint" type: array description: Historical points per series. Server-managed after the first seed - subsequent updates accumulate automatically. type: object icon: description: "Icon name. SF Symbol (e.g. washer, flame) or Material Design Icon with mdi: prefix (e.g. mdi:thermometer)." maxLength: 128 type: string primary_series: description: Name of the series whose value drives the headline number and the compact high/low range. Falls back to the first series (alphabetical) when absent. maxLength: 32 type: string progress: description: Progress value [0.0 - 1.0] maximum: 1 minimum: 0 type: number remaining_time: description: Remaining time in seconds. minimum: 0 type: integer scale: description: "Y-axis scale mode. Default: linear." enum: - linear - logarithmic type: string secondary_url: description: Secondary button URL (legacy). Use secondary_url_action for richer routing. maxLength: 2048 type: string secondary_url_action: description: Secondary button. See url_action for semantics. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object smoothing: description: Curve interpolation between data points. type: boolean snoozed_until: description: Server-set unix timestamp marking the new end_date after the most recent snooze. Non-nil and >= now means the activity is currently snoozed. readOnly: true type: integer state: description: Short status text (e.g. Washing, Build Container Image). maxLength: 256 type: string subtitle: description: Secondary descriptive text (e.g. Layer 150/200, repo / CI/CD). maxLength: 256 type: string tap_action: description: Widget-wide tap action. When set, overrides the default behavior (opening the PushWard app to the activity detail page). The whole Live Activity becomes tappable as a single target. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object template: description: Template type that determines the Live Activity layout. enum: - timeline type: string text_color: description: "Text color: named color or hex." type: string thresholds: description: Horizontal reference lines on the sparkline. items: $ref: "#/components/schemas/Threshold" maxItems: 5 type: array unit: description: Unit label displayed after the value (e.g. degC, %, rpm). maxLength: 32 type: string units: additionalProperties: maxLength: 32 type: string description: Per-series unit labels keyed to value keys. type: object url: description: Primary button URL (legacy). Use url_action for richer routing (silent webhook, custom HTTP method/headers/body). maxLength: 2048 type: string url_action: description: Primary button. Replaces the legacy url string when richer routing semantics (silent webhook, custom HTTP) are needed. When both url and url_action are set, url_action wins on iOS clients that understand it. properties: body: description: HTTP request body for silent webhook. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string foreground: description: "For http(s) URLs only: true opens the URL in Safari / in-app browser; false fires the request silently without launching the app (silent webhook). Ignored for custom-scheme URLs." type: boolean headers: additionalProperties: type: string description: HTTP headers for silent webhook. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (e.g. checkmark.circle). maxLength: 64 type: string method: description: HTTP method for silent webhook (foreground=false). Defaults to GET. Ignored for custom-scheme URLs. enum: - GET - POST - PUT - PATCH - DELETE - HEAD type: string title: description: Button label shown to the user. maxLength: 64 type: string url: description: Target URL. Any scheme except javascript/data/file/vbscript. http(s) URLs require a host; custom schemes (e.g. youtube://, homeassistant://) open the matching app. maxLength: 2048 type: string required: - url type: object value: additionalProperties: type: number description: Labeled numeric values keyed by series name (e.g. {"cpu":42.0,"mem":68.1}). Required when template is timeline. type: object required: - template title: Timeline type: object CreateActivityRequest: additionalProperties: false properties: dismissal_ttl: description: "Seconds after ENDED before the Live Activity leaves the iOS Lock Screen (0 = immediately, max 14400 = 4h). Unset: removal follows ended_ttl capped at 4h. Ignored for evicted (preempted) activities." format: int64 maximum: 14400 minimum: 0 type: integer ended_ttl: description: Seconds after ENDED before auto-delete (1s to 30 days) format: int64 maximum: 2592000 minimum: 1 type: integer name: description: Human-readable activity name maxLength: 256 minLength: 1 type: string priority: description: Eviction priority (0=lowest, 10=highest, default 0) format: int64 maximum: 10 minimum: 0 type: integer slug: description: Unique activity identifier (alphanumeric, hyphens, underscores) maxLength: 128 minLength: 1 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$ type: string stale_ttl: description: Seconds of inactivity before auto-ending (1s to 30 days) format: int64 maximum: 2592000 minimum: 1 type: integer target: $ref: "#/components/schemas/OrgTargetRequest" description: "Organization keys only: who the Live Activity reaches, narrowing the organization's routing rules. Omit to reach everyone the rules allow (or, for a key limited to some groups and tags, all of those). Re-POSTing an existing slug without it keeps the stored target." required: - slug - name type: object CreateIntegrationKeyInputBody: additionalProperties: false properties: activity_slugs: description: Restrict key to specific activity slugs or patterns (trailing *) items: type: string type: - array - "null" emails: description: "Legacy: true gives permissions.emails send (default: false)" type: boolean expires_at: description: When the key stops working; must be in the future. Omit for a key that never expires. format: date-time type: string name: description: Human-readable name for the integration key maxLength: 256 minLength: 1 type: string notifications: description: "Legacy: true gives permissions.notifications schedule (default: false)" type: boolean permissions: $ref: "#/components/schemas/IntegrationKeyPermissionsInput" description: The key's level per resource; an omitted resource gets none. Cannot be combined with scope, notifications, widgets or emails. scope: description: "Legacy form of permissions.activities (default: activity:update)" enum: - activity:none - activity:read - activity:update - activity:manage type: string widget_slugs: description: Restrict key to specific widget slugs or patterns (trailing *) items: type: string type: - array - "null" widgets: description: "Legacy: true gives permissions.widgets write (default: false)" type: boolean required: - name type: object CreateMuteBody: additionalProperties: false properties: applies_to: enum: - notifications - activities - both type: string label: description: The name the app shows for the target. maxLength: 100 type: string mode: default: silent description: "For notifications, silent delivers without sound, banner or screen wake and off sends no push; the notification is kept in the list either way. For Live Activities both modes mean no new Live Activity starts and updates arrive without sound: silent and off differ only for notifications." enum: - silent - "off" type: string schedule: $ref: "#/components/schemas/MuteSchedule" description: Daily window; with until set too, a schedule that ends. target: description: A notification source or activity slug, or * for everything except critical alerts. maxLength: 128 minLength: 1 type: string until: description: "When the mute ends, in the future; absent: until removed." format: date-time type: string required: - target - applies_to type: object CreateNotificationRequest: additionalProperties: false properties: acknowledge: $ref: "#/components/schemas/NotificationAcknowledge" description: "Repeat the notification until someone acknowledges it: any tap on an action without a url that does not open the app (foreground false) counts, and when there is none the server adds an Acknowledge button (id pw_ack). Track it with GET /notifications/receipts/{id} (the response's receipt). Not with push false or level passive. At most 25 active per account." actions: description: Server-driven action buttons. Max 10 (Apple cap). items: $ref: "#/components/schemas/NotificationAction" maxItems: 10 type: - array - "null" activity_slug: type: string body: description: Notification body. Required unless encrypted is set; leave it out then (the server stores a placeholder). maxLength: 4096 type: string callback_url: description: https URL that receives a signed POST once the notification is acknowledged or expires (Standard Webhooks, signed with a secret derived from the sending integration key). Requires acknowledge and an integration key. maxLength: 2048 type: string collapse_id: description: "Collapse ID for replacing notifications: a later notification with the same collapse_id replaces this one on the devices. POST /notifications/retract with it removes them from the devices." maxLength: 64 type: string encrypted: description: "End-to-end encrypted title, subtitle, body and url: a pw1 envelope sealed with the user's encryption key (see the encryption docs). Leave title, subtitle, body and url out when it is set; the stored and pushed title and body become placeholders that devices holding the key replace with the decrypted text. Everything else (level, sound, source, media, actions, metadata) stays plaintext. Organization keys can send encrypted notifications too, sealed with the organization's key: every member's devices need that key, which members add in PushWard 1.18 or later. If PushWard switches encryption off for organizations, they get 422 notification.encryption_unavailable." maxLength: 3072 type: string icon_url: description: http or https URL for per-notification source avatar, shown as the Communication Notification avatar on iOS. Recommended <=256x256 and <=100 KB; responses larger than 512 KB are rejected by the iOS extension to protect the 24 MB memory budget. maxLength: 2048 type: string level: description: "Interruption level, by name or number: 0 passive, 1 active (default), 2 time-sensitive, 3 critical." oneOf: - enum: - passive - "0" - active - "1" - time-sensitive - "2" - critical - "3" type: string - enum: - 0 - 1 - 2 - 3 type: integer media: $ref: "#/components/schemas/MediaAttachment" description: Rich media attachment (image, video, or audio). HTTPS only. metadata: additionalProperties: type: string type: object open_url_on_tap: description: When true, a plain tap on the notification opens its url instead of the notification, if the device trusts that link (its host or scheme is on the user's trusted links, or link confirmation is off). Other links open the notification first, where the link asks before opening. Requires url, or encrypted with the url inside. Stays plaintext beside encrypted. App versions without support open the notification as before. type: boolean push: default: true description: Send as an APNs push to the user's devices. Defaults to true; set false to store in the inbox only. type: boolean snooze: description: "Offer snooze actions: 1 to 3 different durations in minutes (1-1440 each). The apps show one snooze action per duration; tapping one hides the notification and shows it again on that device after that many minutes. Snoozing happens on the device: the server records nothing, and a snooze tap is not an answer. Not with acknowledge, and actions plus snooze count at most 10. Stays plaintext beside encrypted, like actions. App versions without snooze support show the notification without the snooze actions." examples: - - 15 - 60 items: format: int64 maximum: 1440 minimum: 1 type: integer maxItems: 3 minItems: 1 type: - array - "null" uniqueItems: true source: description: Source identifier maxLength: 128 type: string source_display_name: description: Human-readable source name maxLength: 256 type: string subtitle: description: Notification subtitle maxLength: 256 type: string tags: description: "Labels for canceling acknowledged notifications as a group (POST /notifications/receipts/cancel): up to 10, each 1-64 printable ASCII characters without spaces. Requires acknowledge." items: type: string maxItems: 10 type: - array - "null" target: $ref: "#/components/schemas/OrgTargetRequest" description: "Organization keys only: who receives it, narrowing the organization's routing rules. Omit to reach everyone the rules allow (or, for a key limited to some groups and tags, all of those)." thread_id: description: Thread identifier for grouping maxLength: 128 type: string title: description: Notification title. Required unless encrypted is set; leave it out then (the server stores a placeholder). maxLength: 256 type: string url: description: Action URL maxLength: 2048 type: string volume: description: Volume for critical alerts (0.0-1.0) format: double maximum: 1 minimum: 0 type: number type: object CreateScheduledNotificationRequest: additionalProperties: false properties: acknowledge: $ref: "#/components/schemas/NotificationAcknowledge" description: "Repeat the notification until someone acknowledges it: any tap on an action without a url that does not open the app (foreground false) counts, and when there is none the server adds an Acknowledge button (id pw_ack). Track it with GET /notifications/receipts/{id} (the response's receipt). Not with push false or level passive. At most 25 active per account." actions: description: Server-driven action buttons. Max 10 (Apple cap). items: $ref: "#/components/schemas/NotificationAction" maxItems: 10 type: - array - "null" activity_slug: type: string body: description: Notification body. Required unless encrypted is set; leave it out then (the server stores a placeholder). maxLength: 4096 type: string callback_url: description: https URL that receives a signed POST once the notification is acknowledged or expires (Standard Webhooks, signed with a secret derived from the sending integration key). Requires acknowledge and an integration key. maxLength: 2048 type: string collapse_id: description: "Collapse ID for replacing notifications: a later notification with the same collapse_id replaces this one on the devices. POST /notifications/retract with it removes them from the devices." maxLength: 64 type: string encrypted: description: "End-to-end encrypted title, subtitle, body and url: a pw1 envelope sealed with the user's encryption key (see the encryption docs). Leave title, subtitle, body and url out when it is set; the stored and pushed title and body become placeholders that devices holding the key replace with the decrypted text. Everything else (level, sound, source, media, actions, metadata) stays plaintext. Organization keys can send encrypted notifications too, sealed with the organization's key: every member's devices need that key, which members add in PushWard 1.18 or later. If PushWard switches encryption off for organizations, they get 422 notification.encryption_unavailable." maxLength: 3072 type: string icon_url: description: http or https URL for per-notification source avatar, shown as the Communication Notification avatar on iOS. Recommended <=256x256 and <=100 KB; responses larger than 512 KB are rejected by the iOS extension to protect the 24 MB memory budget. maxLength: 2048 type: string level: description: "Interruption level, by name or number: 0 passive, 1 active (default), 2 time-sensitive, 3 critical." oneOf: - enum: - passive - "0" - active - "1" - time-sensitive - "2" - critical - "3" type: string - enum: - 0 - 1 - 2 - 3 type: integer media: $ref: "#/components/schemas/MediaAttachment" description: Rich media attachment (image, video, or audio). HTTPS only. metadata: additionalProperties: type: string type: object open_url_on_tap: description: When true, a plain tap on the notification opens its url instead of the notification, if the device trusts that link (its host or scheme is on the user's trusted links, or link confirmation is off). Other links open the notification first, where the link asks before opening. Requires url, or encrypted with the url inside. Stays plaintext beside encrypted. App versions without support open the notification as before. type: boolean push: default: true description: Send as an APNs push to the user's devices. Defaults to true; set false to store in the inbox only. type: boolean recurrence: $ref: "#/components/schemas/Recurrence" description: "Repeat the notification on a cron schedule: {cron, timezone, until, count}. cron is a 5-field expression (minute hour day-of-month month day-of-week, e.g. \"0 8 * * 1-5\" for weekdays at 08:00) or @daily/@weekly/@monthly, evaluated in timezone (IANA, required); sends must be at least 15 minutes apart. until (RFC 3339, inclusive) or count ends the series. The schedule keeps one id for the whole series and holds one pending slot; canceling it stops the series." send_at: description: "When to send the notification (RFC 3339). Must be in the future and at most 365 days ahead. Required unless recurrence is set; with recurrence, the first send is the first cron match at or after send_at (default: now)." examples: - "2026-10-01T18:00:00Z" format: date-time type: string snooze: description: "Offer snooze actions: 1 to 3 different durations in minutes (1-1440 each). The apps show one snooze action per duration; tapping one hides the notification and shows it again on that device after that many minutes. Snoozing happens on the device: the server records nothing, and a snooze tap is not an answer. Not with acknowledge, and actions plus snooze count at most 10. Stays plaintext beside encrypted, like actions. App versions without snooze support show the notification without the snooze actions." examples: - - 15 - 60 items: format: int64 maximum: 1440 minimum: 1 type: integer maxItems: 3 minItems: 1 type: - array - "null" uniqueItems: true source: description: Source identifier maxLength: 128 type: string source_display_name: description: Human-readable source name maxLength: 256 type: string subtitle: description: Notification subtitle maxLength: 256 type: string tags: description: "Labels for canceling acknowledged notifications as a group (POST /notifications/receipts/cancel): up to 10, each 1-64 printable ASCII characters without spaces. Requires acknowledge." items: type: string maxItems: 10 type: - array - "null" target: $ref: "#/components/schemas/OrgTargetRequest" description: "Organization keys only: who receives it, narrowing the organization's routing rules. Omit to reach everyone the rules allow (or, for a key limited to some groups and tags, all of those)." thread_id: description: Thread identifier for grouping maxLength: 128 type: string title: description: Notification title. Required unless encrypted is set; leave it out then (the server stores a placeholder). maxLength: 256 type: string url: description: Action URL maxLength: 2048 type: string volume: description: Volume for critical alerts (0.0-1.0) format: double maximum: 1 minimum: 0 type: number type: object CreateWidgetRequest: additionalProperties: false properties: content: $ref: "#/components/schemas/WidgetContent" name: description: Human-readable widget name shown in the iOS configuration picker. maxLength: 256 minLength: 1 type: string push_throttle: description: Per-widget minimum seconds between pushes. Ignored for an organization's widgets, which share one window of at least 60 seconds. format: int64 maximum: 3600 minimum: 1 type: integer slug: description: Unique widget identifier (alphanumeric, hyphens, underscores). Per-user namespace separate from activity slugs. maxLength: 128 minLength: 1 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$ type: string stale_after: description: Seconds after updated_at before clients render the widget as stale. format: int64 maximum: 604800 minimum: 60 type: integer target: $ref: "#/components/schemas/OrgTargetRequest" description: "Organization keys only: which members read the widget and have it reloaded, narrowing the organization's routing rules. Omit to reach everyone the rules allow (or, for a key limited to some groups and tags, all of those). Re-POSTing an existing slug without it keeps the stored target." required: - slug - name - content type: object DeviceSortKey: additionalProperties: false properties: direction: default: asc description: Ordering direction. Defaults to ascending, so a 'level' key puts the emptiest device first. enum: - asc - desc examples: - asc type: string field: description: "What to order by: 'level' is the charge percentage, 'name' the device label (compared case-insensitively)." enum: - level - name examples: - level type: string required: - field type: object EmailLog: additionalProperties: false properties: created_at: format: date-time readOnly: true type: string delivery: description: Send outcome. Set on POST /emails only. enum: - none - all readOnly: true type: string error: readOnly: true type: string id: description: Server-assigned email ID. examples: - 42 format: int64 readOnly: true type: integer provider_message_id: readOnly: true type: string reason: description: Failure mode when delivery is 'none'. Set on POST /emails only. enum: - suppressed - send_failed readOnly: true type: string status: enum: - sent - bounced - complained - failed - suppressed readOnly: true type: string subject: examples: - Deploy complete type: string to: examples: - alerts@example.com type: string required: - id - to - subject - status - created_at type: object ErrorDetail: additionalProperties: false properties: location: description: Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id' type: string message: description: Error message text type: string value: description: The value at the given location type: object FlowNode: additionalProperties: false properties: color: type: string icon: maxLength: 128 type: string level: description: Fill percentage (storage slot only). format: double maximum: 100 minimum: 0 type: number name: description: Display label override (e.g. rename an input to 'Wind'). maxLength: 32 type: string rate: description: Instantaneous rate (watts, litres/min, ...); sign per slot convention. format: double type: - number - "null" total: description: Cumulative total so far today (kWh, litres, ...). format: double minimum: 0 type: number required: - rate type: object Health: additionalProperties: false properties: status: description: Health status examples: - ok type: string required: - status type: object HistoryPoint: additionalProperties: false properties: timestamp: format: int64 type: integer value: format: double type: number required: - timestamp - value type: object IntegrationKey: additionalProperties: false properties: activity_slugs: description: Activity slugs or patterns the key is restricted to. Omitted when unrestricted. items: type: string type: - array - "null" created_at: format: date-time type: string emails: description: "Legacy: whether this key can send transactional emails (permissions.emails is send)" type: boolean expires_at: description: When the key stops working. Omitted when it never expires. format: date-time type: string id: type: string is_default: description: Whether this is the account's default key type: boolean last_used_at: description: Timestamp of the last API request made with this key format: date-time type: string name: examples: - ArgoCD Bridge type: string notifications: description: "Legacy: whether this key can create notifications (permissions.notifications is send or schedule)" type: boolean permissions: $ref: "#/components/schemas/IntegrationKeyPermissions" scope: description: Legacy form of permissions.activities enum: - activity:none - activity:read - activity:update - activity:manage examples: - activity:manage type: string target: $ref: "#/components/schemas/OrgTarget" description: "Organization keys only: the groups and device tags the key works within. Everything it sends must target inside them, and it lists, reads and changes only activities and widgets targeted inside them. Omitted when the key reaches the whole organization." widget_slugs: description: Widget slugs or patterns the key is restricted to. Omitted when unrestricted. items: type: string type: - array - "null" widgets: description: "Legacy: whether this key can manage widgets (permissions.widgets is write)" type: boolean required: - id - name - permissions - scope - is_default - notifications - widgets - emails - created_at type: object IntegrationKeyPermissions: additionalProperties: false properties: account: description: "none; read: list and get; manage: also create, change and delete" enum: - none - read - manage type: string activities: description: "none; read: list and get activities; update: also PATCH; manage: also create and delete" enum: - none - read - update - manage type: string devices: description: "none; read: list and get; manage: also create, change and delete" enum: - none - read - manage type: string emails: description: "none; send: POST /emails" enum: - none - send type: string notifications: description: "none; send: POST /notifications and read answers; schedule: also /notifications/scheduled" enum: - none - send - schedule type: string sharing: description: "none; read: list and get; manage: also create, change and delete" enum: - none - read - manage type: string widgets: description: "none; read: list and get widgets; write: also create, update and delete" enum: - none - read - write type: string required: - activities - notifications - widgets - emails type: object IntegrationKeyPermissionsInput: additionalProperties: false properties: account: description: "none; read: list and get; manage: also create, change and delete" enum: - none - read - manage type: string activities: description: "none; read: list and get activities; update: also PATCH; manage: also create and delete" enum: - none - read - update - manage type: string devices: description: "none; read: list and get; manage: also create, change and delete" enum: - none - read - manage type: string emails: description: "none; send: POST /emails" enum: - none - send type: string notifications: description: "none; send: POST /notifications and read answers; schedule: also /notifications/scheduled" enum: - none - send - schedule type: string sharing: description: "none; read: list and get; manage: also create, change and delete" enum: - none - read - manage type: string widgets: description: "none; read: list and get widgets; write: also create, update and delete" enum: - none - read - write type: string type: object IntegrationKeyResponse: additionalProperties: false properties: activity_slugs: description: Activity slugs or patterns the key is restricted to. Omitted when unrestricted. items: type: string type: - array - "null" created_at: format: date-time type: string emails: description: "Legacy: whether this key can send transactional emails (permissions.emails is send)" type: boolean expires_at: description: When the key stops working. Omitted when it never expires. format: date-time type: string id: type: string is_default: description: Whether this is the account's default key type: boolean key: description: The key's secret (hlk_...). Only returned when the key is created or rolled; it cannot be read again. type: string last_used_at: description: Timestamp of the last API request made with this key format: date-time type: string name: examples: - ArgoCD Bridge type: string notifications: description: "Legacy: whether this key can create notifications (permissions.notifications is send or schedule)" type: boolean permissions: $ref: "#/components/schemas/IntegrationKeyPermissions" scope: description: Legacy form of permissions.activities enum: - activity:none - activity:read - activity:update - activity:manage examples: - activity:manage type: string target: $ref: "#/components/schemas/OrgTarget" description: "Organization keys only: the groups and device tags the key works within. Everything it sends must target inside them, and it lists, reads and changes only activities and widgets targeted inside them. Omitted when the key reaches the whole organization." widget_slugs: description: Widget slugs or patterns the key is restricted to. Omitted when unrestricted. items: type: string type: - array - "null" widgets: description: "Legacy: whether this key can manage widgets (permissions.widgets is write)" type: boolean required: - id - name - permissions - scope - is_default - notifications - widgets - emails - created_at type: object ListActivitiesPage: additionalProperties: false properties: items: description: Activities in this page, sorted by slug. items: $ref: "#/components/schemas/Activity" type: - array - "null" next_cursor: description: Opaque cursor for the next page. Omitted on the last page. type: string required: - items type: object ListIntegrationKeysOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/IntegrationKey" type: - array - "null" required: - items type: object ListMutesOutputBody: additionalProperties: false properties: mutes: items: $ref: "#/components/schemas/Mute" type: - array - "null" required: - mutes type: object ListScheduledNotificationsOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/ScheduledNotification" type: - array - "null" next_cursor: description: Pass as cursor to fetch the next page. Absent on the last page. type: string required: - items type: object ListWidgetsOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/Widget" type: - array - "null" required: - items type: object LogLine: additionalProperties: false properties: at: format: int64 type: integer level: type: string text: examples: - build completed in 4m12s maxLength: 512 minLength: 1 type: string required: - text type: object MediaAttachment: additionalProperties: false properties: type: description: Media type enum: - image - video - audio type: string url: description: HTTPS URL of the media file maxLength: 2048 minLength: 1 type: string required: - url - type type: object Mute: additionalProperties: false properties: applies_to: enum: - notifications - activities - both type: string created_at: format: date-time type: string id: type: string label: description: The name the app showed for the target. type: string mode: description: "For notifications, silent delivers without sound, banner or screen wake and off sends no push; the notification is kept in the list either way. For Live Activities both modes mean no new Live Activity starts and updates arrive without sound: silent and off differ only for notifications." enum: - silent - "off" type: string schedule: $ref: "#/components/schemas/MuteSchedule" description: "Daily window the mute is active in; absent: all day." target: description: A notification source or activity slug, matched exactly, or * for everything except critical alerts. type: string until: description: "When the mute ends; absent: until removed." format: date-time type: string required: - id - target - applies_to - mode - created_at type: object MuteSchedule: additionalProperties: false properties: end_minute: description: End of the window (exclusive), minutes since local midnight; below start_minute the window wraps past midnight. Never equal to start_minute. format: int64 maximum: 1439 minimum: 0 type: integer start_minute: description: Start of the window, minutes since local midnight. format: int64 maximum: 1439 minimum: 0 type: integer time_zone: description: IANA time zone the window is in, e.g. Europe/Warsaw. maxLength: 64 minLength: 1 type: string required: - start_minute - end_minute - time_zone type: object Notification: additionalProperties: false properties: actions: items: $ref: "#/components/schemas/NotificationAction" type: - array - "null" activity_slug: examples: - deploy-prod type: string answer_cursor: description: "The answer stream's cursor (GET /notifications/answers) as of this send, when answerable: every answer to this notification comes after it. A reader that already holds a cursor keeps reading from it. A reader with no cursor yet takes the answer_cursor of its first answerable send as its cursor and keeps it; the answer_cursor of later sends adds nothing. Cursors are opaque and never compared; store it as it is. Set on POST /notifications only, not on scheduled sends." examples: - "57" readOnly: true type: string answerable: description: "The server records the answer to this notification: at least one action was sent without a url. Read it with GET /notifications/answers/{id}. Set on POST /notifications only." readOnly: true type: boolean body: examples: - Successfully deployed to production type: string collapse_id: description: The sender's collapse_id, when it sent one. POST /notifications/retract takes back the notifications sent under it. examples: - garage-door type: string created_at: description: Timestamp when the notification was created. format: date-time readOnly: true type: string delivery: description: APNs fan-out outcome across the user's devices. Set on POST /notifications only. enum: - none - partial - all readOnly: true type: string encrypted: description: End-to-end encrypted title, subtitle, body and url (a pw1 envelope). When set, title and body are placeholders that devices holding the key replace with the decrypted text. type: string icon_url: type: string id: description: Server-assigned notification ID. examples: - 42 format: int64 readOnly: true type: integer level: enum: - passive - active - time-sensitive - critical examples: - active type: string media_type: enum: - image - video - audio type: string media_url: type: string metadata: additionalProperties: type: string type: object open_url_on_tap: description: The sender asked that a plain tap open the url (or the url inside encrypted) instead of the notification, if the device trusts that link. type: boolean pushed: description: Whether the notification was pushed to at least one device. readOnly: true type: boolean reason: description: Failure mode when delivery is not 'all'. Set on POST /notifications only. enum: - no_apns_token - apns_rejected - push_disabled readOnly: true type: string receipt: $ref: "#/components/schemas/NotificationReceipt" description: The acknowledged-alert receipt, when the notification was sent with acknowledge. Read it again with GET /notifications/receipts/{id}. Set on POST /notifications only. readOnly: true snooze: description: Snooze durations in minutes the sender offered; the apps show one snooze action per duration. items: format: int64 type: integer type: - array - "null" source: examples: - github-actions type: string source_display_name: examples: - GitHub Actions type: string subtitle: examples: - pushward-server v2.4.0 type: string thread_id: examples: - ci-deploys type: string title: examples: - Deploy Complete type: string url: type: string required: - id - title - body - level - pushed - created_at type: object NotificationAcknowledge: additionalProperties: false properties: action_title: default: Acknowledge description: Label of the acknowledge button the server adds (id pw_ack) when no action without a url is present. Default Acknowledge. maxLength: 64 minLength: 1 type: string expire_seconds: default: 3600 description: Seconds after which the notification stops repeating and its receipt expires (60-10800, default 3600). format: int64 maximum: 10800 minimum: 60 type: integer repeat_seconds: default: 60 description: Seconds between repeats while nobody has acknowledged the notification (30-3600, default 60). At most 50 repeats are sent. format: int64 maximum: 3600 minimum: 30 type: integer type: object NotificationAction: additionalProperties: false properties: authentication_required: description: Require device unlock before firing type: boolean body: description: HTTP request body for http(s) action URLs. <=1KB. Ignored for custom-scheme URLs. maxLength: 1024 type: string destructive: description: Render the action label in red type: boolean foreground: description: Bring the app to the foreground when tapped type: boolean headers: additionalProperties: type: string description: HTTP headers for http(s) action URLs. Total <=1KB. Ignored for custom-scheme URLs. type: object icon: description: SF Symbol name (iOS 15+) examples: - checkmark.circle maxLength: 64 type: string id: description: Stable identifier returned when the user taps this action examples: - approve maxLength: 64 minLength: 1 type: string method: description: HTTP method for http(s) action URLs (case-insensitive; default GET when omitted). One of GET, POST, PUT, PATCH, DELETE, HEAD. Ignored for custom-scheme URLs. examples: - POST type: string text_input: description: "Show an inline text field when the action is tapped (reply-with-text). Requires a silent (non-foreground) action with an http(s) url or no url. With a url, the typed text replaces {{input}} in body; without the placeholder it is sent as {\"text\": ...} (merged into a JSON-object body, replacing other body shapes). Without a url, the server records the reply (GET /notifications/answers/{id})." type: boolean text_input_button_title: description: Label of the send button next to the reply field (defaults to the action title on-device). Requires text_input. maxLength: 64 type: string text_input_placeholder: description: Placeholder shown in the reply text field. Requires text_input. maxLength: 64 type: string title: description: Button label shown to the user examples: - Approve maxLength: 64 minLength: 1 type: string url: description: "URL opened/dispatched when the action is tapped. Any URL scheme is accepted except javascript:, data:, and file:. http(s) URLs require a host. Omit it on a silent (non-foreground) action to have the server record the tap, and any typed reply, instead: read it with GET /notifications/answers/{id}." examples: - https://example.com/approve/123 maxLength: 2048 type: string required: - id - title type: object NotificationAnswer: additionalProperties: false properties: action_id: description: ID of the action the user tapped. type: string answered_at: description: When the answer was recorded. format: date-time type: string collapse_id: description: The collapse_id the notification was sent with, if any. type: string notification_id: description: The notification this answer belongs to. format: int64 type: integer status: description: "pending: not answered yet. answered: action_id (and text for a reply) are set." enum: - pending - answered type: string text: description: Text the user typed, for a text_input action. type: string thread_id: description: The thread_id the notification was sent with, if any. type: string required: - notification_id - status type: object NotificationAnswerFeed: additionalProperties: false properties: cursor: description: Opaque. Pass it as after on the next call; it is unchanged when items is empty. type: string items: description: Answers recorded after the cursor, oldest first. Each has status answered. items: $ref: "#/components/schemas/NotificationAnswer" type: - array - "null" required: - items - cursor type: object NotificationReceipt: additionalProperties: false properties: acknowledged_at: description: When it was acknowledged. format: date-time type: string acknowledged_by: description: "User id of who acknowledged it: the account, or for an organization the member (when the app reported it)." type: string acknowledged_by_device: description: Name (else model) of the device it was acknowledged on, when the app reported it. Personal sends only. type: string action_id: description: ID of the action that acknowledged it (pw_ack for the button the server adds). type: string callback: $ref: "#/components/schemas/NotificationReceiptCallback" description: Delivery of the callback_url event, when the send had one. cancel_reason: description: "api: canceled by id. tag: canceled by tag. superseded: a newer acknowledged send from the same key with the same collapse_id replaced it. key_revoked: the sending key was revoked, expired or lost notifications access. org_disabled: organizations were switched off. retracted: POST /notifications/retract took back its collapse_id. A retract from a person, the app or an organization key without groups or tags cancels it whichever key sent it. A retract from an organization key scoped to groups or tags cancels it only when that key sent it." enum: - api - tag - superseded - key_revoked - org_disabled - retracted type: string canceled_at: description: When it was canceled. format: date-time type: string created_at: description: When it was created (the send). format: date-time type: string expires_at: description: When the receipt expires if nobody acknowledges it. format: date-time type: string last_delivered_at: description: When a push (the first send or a repeat) last reached at least one device. format: date-time type: string notification_id: description: The notification this receipt belongs to (the id POST /notifications returned). format: int64 type: integer repeat_seconds: description: Seconds between repeats. format: int64 type: integer repeats_sent: description: Repeats sent so far (the first send not counted). At most 50. format: int64 type: integer status: description: "active: repeating until acknowledged. acknowledged: an action was tapped (see action_id). expired: expire_seconds passed first. canceled: stopped before either, see cancel_reason." enum: - active - acknowledged - expired - canceled type: string tags: description: The tags it was sent with. items: type: string type: - array - "null" required: - notification_id - status - repeat_seconds - expires_at - repeats_sent - created_at type: object NotificationReceiptCallback: additionalProperties: false properties: attempts: description: Delivery attempts so far. format: int64 type: integer delivered_at: description: When the endpoint accepted it. format: date-time type: string last_status_code: description: HTTP status of the latest attempt that got a response. format: int64 type: integer status: description: "pending: the event is not delivered yet (or not due yet, while the receipt is active). delivered: the endpoint answered 2xx. failed: retries ran out, the endpoint answered 410, or the key was revoked." enum: - pending - delivered - failed type: string required: - status - attempts type: object OrgTarget: additionalProperties: false properties: group_ids: items: type: string type: - array - "null" member_ids: items: type: string type: - array - "null" tag_ids: items: type: string type: - array - "null" required: - group_ids - tag_ids type: object OrgTargetRequest: additionalProperties: false properties: groups: description: Names of the organization's groups whose members receive it. examples: - - oncall items: type: string maxItems: 20 type: - array - "null" members: description: User ids of members who receive it on all their devices. items: type: string maxItems: 100 type: - array - "null" tags: description: Names of the organization's device tags; devices with any of them receive it. items: type: string maxItems: 20 type: - array - "null" type: object Problem: additionalProperties: false properties: code: description: Stable programmatic identifier for the error. Preferred over pattern-matching on detail. examples: - rate_limit.exceeded type: string detail: description: A human-readable explanation specific to this occurrence of the problem. examples: - rate limit exceeded type: string errors: description: Per-field validation errors, when applicable. items: $ref: "#/components/schemas/ErrorDetail" type: - array - "null" instance: description: A URI reference that identifies the specific occurrence of the problem. Carries the server-assigned request ID. examples: - /requests/9f86d081884c7d65 format: uri type: string retry_after_ms: description: Suggested retry delay in milliseconds. Set on 409 demo and checkout conflicts, 429 rate limits, and 503 service-unavailable responses; mirrors the Retry-After header but with sub-second precision. examples: - 60000 format: int64 type: integer status: description: HTTP status code for this response. examples: - 429 format: int64 type: integer title: description: A short, human-readable summary of the problem type. examples: - Too Many Requests type: string type: default: about:blank description: A URI reference that identifies the problem type. Resolvable to human-readable documentation when possible. examples: - https://pushward.app/errors/too-many-requests format: uri type: string type: object Recurrence: additionalProperties: false properties: count: description: Total number of sends, max 1000; a skipped send (quota used up) does not count. Cannot be combined with until. format: int64 maximum: 1000 minimum: 1 type: integer cron: description: Standard 5-field cron expression (minute hour day-of-month month day-of-week), or @daily, @weekly, @monthly, @yearly, @hourly. Evaluated in timezone. Sends must be at least 15 minutes apart. examples: - 0 8 * * 1-5 maxLength: 128 minLength: 1 type: string timezone: description: IANA time zone the cron expression is evaluated in; its times are local wall-clock times, kept across DST changes. examples: - Europe/Warsaw type: string until: description: Last allowed send time (inclusive). Cannot be combined with count. format: date-time type: string required: - cron - timezone type: object RetractNotificationsInputBody: additionalProperties: false properties: collapse_id: description: The collapse_id the notifications were sent with (POST /notifications, scheduled sends included). examples: - garage-door maxLength: 64 minLength: 1 type: string required: - collapse_id type: object RetractNotificationsOutputBody: additionalProperties: false properties: devices: description: "How many devices the retraction was sent to. Apple devices count only with PushWard 1.20 or later on iPhone, iPad or Mac (watches and older versions are skipped). Every Android device counts, including app versions that predate retract: those only sync their inbox, without removing anything. 0 when no device can be sent to." examples: - 3 format: int64 type: integer required: - devices type: object SchedulePeriod: additionalProperties: false properties: level: description: Optional band; when absent clients derive bands from the posted range. enum: - low - medium - high type: string start: description: Period start (RFC 3339). Periods must be in strictly increasing order. format: date-time type: string value: description: Value for the period (price, load, headcount, ...). format: double type: - number - "null" required: - start - value type: object ScheduledNotification: additionalProperties: false properties: acknowledge: $ref: "#/components/schemas/NotificationAcknowledge" description: "Repeat the notification until someone acknowledges it: any tap on an action without a url that does not open the app (foreground false) counts, and when there is none the server adds an Acknowledge button (id pw_ack). Track it with GET /notifications/receipts/{id} (the response's receipt). Not with push false or level passive. At most 25 active per account." actions: description: Server-driven action buttons. Max 10 (Apple cap). items: $ref: "#/components/schemas/NotificationAction" maxItems: 10 type: - array - "null" activity_slug: type: string body: description: Notification body. Required unless encrypted is set; leave it out then (the server stores a placeholder). maxLength: 4096 type: string callback_url: description: https URL that receives a signed POST once the notification is acknowledged or expires (Standard Webhooks, signed with a secret derived from the sending integration key). Requires acknowledge and an integration key. maxLength: 2048 type: string canceled_at: description: When the schedule was canceled. Set when status is canceled. format: date-time readOnly: true type: string collapse_id: description: "Collapse ID for replacing notifications: a later notification with the same collapse_id replaces this one on the devices. POST /notifications/retract with it removes them from the devices." maxLength: 64 type: string created_at: description: When the schedule was created. format: date-time readOnly: true type: string delivery: description: APNs fan-out outcome of the latest send, as on POST /notifications. enum: - none - partial - all readOnly: true type: string encrypted: description: "End-to-end encrypted title, subtitle, body and url: a pw1 envelope sealed with the user's encryption key (see the encryption docs). Leave title, subtitle, body and url out when it is set; the stored and pushed title and body become placeholders that devices holding the key replace with the decrypted text. Everything else (level, sound, source, media, actions, metadata) stays plaintext. Organization keys can send encrypted notifications too, sealed with the organization's key: every member's devices need that key, which members add in PushWard 1.18 or later. If PushWard switches encryption off for organizations, they get 422 notification.encryption_unavailable." maxLength: 3072 type: string failure_reason: description: "Why the notification (for a repeating schedule: the latest occurrence) was not sent. receipt_limit: older schedules only; it asked for acknowledge while 25 acknowledged notifications were already active (such a send now goes out as a plain notification instead). key_revoked: the integration key that scheduled it was revoked, expired, or no longer has notifications level schedule. target_deleted: every group, tag and member an organization's target named was deleted or left the organization. Both end a repeating schedule, except that target_deleted only skips the send while the target names a member who could be invited back. org_inactive: the organization was not active when it was due; a repeating schedule carries on with its next send." enum: - quota_exceeded - receipt_limit - key_revoked - target_deleted - org_inactive - internal_error readOnly: true type: string icon_url: description: http or https URL for per-notification source avatar, shown as the Communication Notification avatar on iOS. Recommended <=256x256 and <=100 KB; responses larger than 512 KB are rejected by the iOS extension to protect the 24 MB memory budget. maxLength: 2048 type: string id: description: Server-assigned schedule ID (not a notification ID). examples: - 7 format: int64 readOnly: true type: integer last_sent_at: description: When the latest occurrence was sent. Set once one has been. format: date-time readOnly: true type: string level: description: Interruption level. enum: - passive - active - time-sensitive - critical type: string media: $ref: "#/components/schemas/MediaAttachment" description: Rich media attachment (image, video, or audio). HTTPS only. metadata: additionalProperties: type: string type: object notification_id: description: ID of the notification created by the latest send. format: int64 readOnly: true type: integer occurrence: description: "For a repeating schedule: how many sends have gone out so far (skipped ones not counted)." format: int64 readOnly: true type: integer open_url_on_tap: description: When true, a plain tap on the notification opens its url instead of the notification, if the device trusts that link (its host or scheme is on the user's trusted links, or link confirmation is off). Other links open the notification first, where the link asks before opening. Requires url, or encrypted with the url inside. Stays plaintext beside encrypted. App versions without support open the notification as before. type: boolean push: default: true description: Send as an APNs push to the user's devices. Defaults to true; set false to store in the inbox only. type: boolean reason: description: Why delivery is not 'all', as on POST /notifications. enum: - no_apns_token - apns_rejected - push_disabled readOnly: true type: string recurrence: $ref: "#/components/schemas/Recurrence" description: The repeat rule, for a repeating schedule. readOnly: true send_at: description: When the notification is (or was) due. For a repeating schedule, the next occurrence. format: date-time type: string sent_at: description: When the notification was sent. Set when status is sent. format: date-time readOnly: true type: string snooze: description: "Offer snooze actions: 1 to 3 different durations in minutes (1-1440 each). The apps show one snooze action per duration; tapping one hides the notification and shows it again on that device after that many minutes. Snoozing happens on the device: the server records nothing, and a snooze tap is not an answer. Not with acknowledge, and actions plus snooze count at most 10. Stays plaintext beside encrypted, like actions. App versions without snooze support show the notification without the snooze actions." examples: - - 15 - 60 items: format: int64 maximum: 1440 minimum: 1 type: integer maxItems: 3 minItems: 1 type: - array - "null" uniqueItems: true source: description: Source identifier maxLength: 128 type: string source_display_name: description: Human-readable source name maxLength: 256 type: string status: description: "scheduled: waiting for send_at. sending: being sent right now. sent: delivered as notification_id. failed: not sent, see failure_reason. canceled: canceled before it was sent (a repeating one: before its next send), see canceled_at; kept 24 hours, then deleted. A repeating schedule goes back to scheduled after each occurrence until its rule runs out." enum: - scheduled - sending - sent - failed - canceled readOnly: true type: string subtitle: description: Notification subtitle maxLength: 256 type: string tags: description: "Labels for canceling acknowledged notifications as a group (POST /notifications/receipts/cancel): up to 10, each 1-64 printable ASCII characters without spaces. Requires acknowledge." items: type: string maxItems: 10 type: - array - "null" target: $ref: "#/components/schemas/OrgTargetRequest" description: "Organization keys only: who receives it, narrowing the organization's routing rules. Omit to reach everyone the rules allow (or, for a key limited to some groups and tags, all of those)." thread_id: description: Thread identifier for grouping maxLength: 128 type: string title: description: Notification title. Required unless encrypted is set; leave it out then (the server stores a placeholder). maxLength: 256 type: string url: description: Action URL maxLength: 2048 type: string volume: description: Volume for critical alerts (0.0-1.0) format: double maximum: 1 minimum: 0 type: number required: - id - status - send_at - created_at - title - body type: object SendEmailRequest: additionalProperties: false properties: html_body: description: HTML body. Provide html_body, text_body, or both. maxLength: 262144 type: string subject: description: Email subject line. maxLength: 256 minLength: 1 type: string text_body: description: Plain-text body. Provide html_body, text_body, or both. maxLength: 65536 type: string to: description: Recipient address. Must be a verified, non-unsubscribed recipient of the calling account. format: email maxLength: 254 minLength: 3 type: string required: - to - subject type: object StatRow: additionalProperties: false properties: label: examples: - MRR maxLength: 32 type: string progress: description: Fraction from 0.0 to 1.0. Draws a progress bar under this row on clients that support it; value stays the text shown, so send the percentage there yourself. Rows without it draw no bar. stat_list only, like the rest of the row. format: double maximum: 1 minimum: 0 type: number timer: $ref: "#/components/schemas/TimerValue" unit: examples: - USD maxLength: 16 type: string value: examples: - $8 333 maxLength: 32 type: string required: - label - value type: object TapAction: additionalProperties: false properties: body: maxLength: 1024 type: string foreground: type: boolean headers: additionalProperties: type: string description: HTTP headers for a webhook action. Keys and values together must not exceed 1024 bytes. type: object icon: maxLength: 64 type: string method: type: string title: maxLength: 64 type: string url: maxLength: 2048 type: string required: - url type: object Threshold: additionalProperties: false properties: color: type: string label: maxLength: 12 type: string value: format: double type: number required: - value type: object TimerValue: additionalProperties: false properties: date: description: Anchor timestamp (RFC 3339). Past counts up, future counts down. format: date-time type: string style: description: "'timer' (default) ticks like 01:23:45; 'relative' renders coarse units like '2 min'." enum: - timer - relative type: string required: - date type: object UpdateActivityRequest: additionalProperties: false properties: content: description: Merge-patch content update (RFC 7396). Optional - omit for a content-less PATCH (state, priority, or TTL-only updates). discriminator: mapping: alert: "#/components/schemas/ContentAlert" approval: "#/components/schemas/ContentApproval" board: "#/components/schemas/ContentBoard" checklist: "#/components/schemas/ContentChecklist" countdown: "#/components/schemas/ContentCountdown" gauge: "#/components/schemas/ContentGauge" generic: "#/components/schemas/ContentGeneric" log: "#/components/schemas/ContentLog" media: "#/components/schemas/ContentMedia" steps: "#/components/schemas/ContentSteps" timeline: "#/components/schemas/ContentTimeline" timer: "#/components/schemas/ContentCountdown" propertyName: template oneOf: - $ref: "#/components/schemas/ContentGeneric" title: Generic - $ref: "#/components/schemas/ContentCountdown" title: Countdown - $ref: "#/components/schemas/ContentSteps" title: Steps - $ref: "#/components/schemas/ContentAlert" title: Alert - $ref: "#/components/schemas/ContentGauge" title: Gauge - $ref: "#/components/schemas/ContentTimeline" title: Timeline - $ref: "#/components/schemas/ContentBoard" title: Board - $ref: "#/components/schemas/ContentLog" title: Log - $ref: "#/components/schemas/ContentMedia" title: Media - $ref: "#/components/schemas/ContentApproval" title: Approval - $ref: "#/components/schemas/ContentChecklist" title: Checklist dismissal_ttl: description: "Seconds after ENDED before Lock Screen removal (0 = immediate, max 4h). Tri-state: omit to keep, null to clear, number to set." format: int64 maximum: 14400 minimum: 0 type: integer ended_ttl: description: "Seconds after ENDED before auto-delete. Tri-state: omit to keep, null to clear, number to set." format: int64 maximum: 2592000 minimum: 1 type: integer priority: format: int64 type: integer sound: description: Optional Live Activity alert sound. 'default' uses the iOS system sound; other values must match a bundled sound. enum: - default - chime - alert - success - warning - bell - ding - buzz - notification type: string stale_ttl: description: "Seconds of inactivity before auto-end. Tri-state: omit to keep, null to clear, number to set." format: int64 maximum: 2592000 minimum: 1 type: integer state: description: Target state. Accepts ongoing or ended (case-insensitive). Optional - if omitted, the current stored state is kept. Setting ended on an ongoing activity ends the Live Activity; the card then stays on the Lock Screen for dismissal_ttl seconds (or ended_ttl capped at 4h when dismissal_ttl is unset). type: string target: $ref: "#/components/schemas/OrgTargetRequest" description: "Organization keys only: who the Live Activity reaches, narrowing the organization's routing rules. Tri-state: omit to keep, null to clear (everyone the rules allow), object to replace. Devices that lose it end it; devices that gain it start it." type: object UpdateIntegrationKeyInputBody: additionalProperties: false properties: activity_slugs: description: Restrict key to specific activity slugs or patterns (trailing *); an empty list or null removes the restriction items: type: string type: - array - "null" emails: description: "Legacy: true sets permissions.emails to send, false to none" type: boolean expires_at: description: When the key stops working, in the future; null removes the expiry format: date-time type: - string - "null" name: description: New human-readable name for the integration key maxLength: 256 minLength: 1 type: string notifications: description: "Legacy: true sets permissions.notifications to schedule, false to none" type: boolean permissions: $ref: "#/components/schemas/IntegrationKeyPermissionsInput" description: Levels to change; omitted resources keep theirs. Cannot be combined with scope, notifications, widgets or emails. scope: description: Legacy form of permissions.activities enum: - activity:none - activity:read - activity:update - activity:manage type: string widget_slugs: description: Restrict key to specific widget slugs or patterns (trailing *); an empty list or null removes the restriction items: type: string type: - array - "null" widgets: description: "Legacy: true sets permissions.widgets to write, false to none" type: boolean type: object UpdateWidgetRequest: additionalProperties: false properties: content: $ref: "#/components/schemas/WidgetContent" name: type: string push_throttle: format: int64 type: integer stale_after: description: Seconds after updated_at before clients render the widget as stale; null clears it. format: int64 type: integer target: $ref: "#/components/schemas/OrgTargetRequest" description: "Organization keys only: which members read the widget and have it reloaded, narrowing the organization's routing rules. Tri-state: omit to keep, null to clear (everyone the rules allow), object to replace." required: - content type: object User: additionalProperties: false properties: activity_count: description: Number of activities owned by the user. format: int64 readOnly: true type: integer emails_limit: format: int64 readOnly: true type: integer emails_used: format: int64 readOnly: true type: integer id: description: Server-assigned user ID. readOnly: true type: string integration_key: $ref: "#/components/schemas/CallerIntegrationKey" description: The integration key that made this request. Only present for integration keys. readOnly: true live_activity_updates_limit: format: int64 readOnly: true type: integer live_activity_updates_used: format: int64 readOnly: true type: integer nickname: description: Display name. Set via the iOS app - not writable from integration keys. readOnly: true type: - string - "null" notifications_limit: format: int64 readOnly: true type: integer notifications_used: format: int64 readOnly: true type: integer notifications_used_month: description: "Paid-tier only: month-to-date notifications count. Free tier reads notifications_used (which already carries the monthly value)." format: int64 readOnly: true type: integer quota_period_month: description: YYYYMM bucket for the current monthly billing period (UTC). format: int64 readOnly: true type: integer quota_resets_at: description: Instant the active notifications counter resets - next UTC midnight for paid tier, next UTC month for free tier. format: date-time readOnly: true type: string quota_resets_day_at: description: "Paid-tier only: instant the daily counters reset - next UTC midnight." format: date-time readOnly: true type: string subscribed: description: "Whether the account has the paid tier: an active App Store subscription, or a seat in an organization that provides it. For an organization's key, whether the organization is active. Required for create/update activity calls." readOnly: true type: boolean widget_updates_limit: format: int64 readOnly: true type: integer widget_updates_used: format: int64 readOnly: true type: integer required: - id - nickname - activity_count - subscribed type: object Widget: additionalProperties: false properties: content: $ref: "#/components/schemas/WidgetContent" created_at: format: date-time readOnly: true type: string name: examples: - CPU Load maxLength: 256 type: string push_throttle: description: Per-widget minimum seconds between pushes (overrides server default coalesce window for this slug). Ignored for an organization's widgets, which share one window of at least 60 seconds. format: int64 maximum: 3600 minimum: 1 type: integer slug: examples: - cpu-load maxLength: 128 minLength: 1 pattern: ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$ type: string stale_after: description: Seconds after updated_at before clients render the widget as stale. Absent means never demoted. format: int64 maximum: 604800 minimum: 60 type: integer updated_at: format: date-time readOnly: true type: string required: - slug - name - content - created_at - updated_at type: object WidgetContent: additionalProperties: false properties: accent_color: type: string background_color: type: string cells: description: "Heatmap template: one value per day, oldest first, 7 to 154 cells (22 weeks). The last cell is the day of end_date when set, else the day of updated_at. null is a day with no data; at least one cell must be a number. Clients band each cell into levels 0-4: null = no data; v <= min is level 0; otherwise level = min(4, ceil((v - min) / (max - min) * 4)), where min is min_value (default 0) and max is max_value (default the largest non-null cell); when max <= min every non-null cell above min is level 4." items: format: double type: - number - "null" maxItems: 154 minItems: 7 type: - array - "null" density: description: "Row density of the stat_list template: auto, compact or comfortable. stat_list only: on any other template it is a 422 widget.content_invalid, and a PATCH that moves a widget with a stored density or density_by_size to another template is refused unless the same PATCH clears them (null). Precedence on the devices, for each size the widget is drawn at: density_by_size for that size, else this density, else the user's in-app Row Density for that size, else their pick for the widget, else auto. Any other value is a 422 widget.content_invalid naming the allowed ones; case is ignored. Omit it to leave the choice to the user. On PATCH, null (or an empty string) clears it and a field left out keeps it." type: string density_by_size: additionalProperties: type: string description: "The stat_list row density for one size, overriding density there: keys small, medium, large and lock_screen as in style_by_size, values auto, compact or comfortable. stat_list only, like density. An unknown key or value is a 422 widget.content_invalid naming the allowed ones; case is ignored, and an empty object is stored as absent. On PATCH, an object replaces the whole stored map, null clears it, and a field left out keeps it." type: object device_sort: description: Reorders devices on write for the battery template, so the prefix each widget family renders (2 on small, 4 on medium, 8 on large) holds the devices that matter. Keys apply in order; the first that separates two devices wins, so a second key is a tie-break. The stored order changes, so this response and later GETs return the sorted array; devices no key separates keep the order you sent. Omit to keep the order as sent. Ignored for other templates. items: $ref: "#/components/schemas/DeviceSortKey" maxItems: 2 type: - array - "null" devices: items: $ref: "#/components/schemas/BatteryDevice" maxItems: 8 type: - array - "null" end_date: format: date-time type: string expired_text: examples: - Out now maxLength: 64 type: string flow: $ref: "#/components/schemas/WidgetFlow" icon: maxLength: 128 type: string label: maxLength: 256 type: string max_value: format: double type: number min_value: format: double type: number periods: items: $ref: "#/components/schemas/SchedulePeriod" maxItems: 48 type: - array - "null" points: items: format: double type: number maxItems: 48 minItems: 2 type: - array - "null" secondary_url_action: $ref: "#/components/schemas/TapAction" severity: type: string start_date: format: date-time type: string stat_rows: items: $ref: "#/components/schemas/StatRow" maxItems: 6 type: - array - "null" style: description: "The look the template is drawn in: standard, bold or classic. Every template offers all three. Any other value is a 422 widget.content_invalid naming them; case is ignored. Precedence on the devices, for each size the widget is drawn at: style_by_size for that size, else this style, else the user's in-app pick for that size, else their pick for the widget, else standard. Omit it to leave the choice to the user: a widget created without it reads back without the key, not as standard. On PATCH, null (or an empty string) clears it and hands the choice back, and a field left out keeps the stored style. POST is an upsert that replaces the whole content, so a re-POST without style clears it; resend the style to keep it." type: string style_by_size: additionalProperties: type: string description: "The look for one size, overriding style there: an object whose keys are small, medium and large (the Home Screen sizes; on Android 2x2, 4x2 and 4x4) and lock_screen (every Lock Screen and accessory size; Android has none), each value standard, bold or classic. Any template. An unknown key or value is a 422 widget.content_invalid naming the allowed ones; case is ignored, and an empty object is stored as absent. On PATCH, an object replaces the whole stored map (a size left out of it is dropped), null clears it, and a field left out keeps it." type: object subtitle: maxLength: 256 type: string subtitle_timer: $ref: "#/components/schemas/TimerValue" tap_action: $ref: "#/components/schemas/TapAction" template: description: Visual style of the widget. enum: - value - progress - status - gauge - stat_list - trend - countdown - battery - schedule - flow - heatmap examples: - progress type: string text_color: type: string trend: enum: - up - down - flat examples: - up type: string unit: maxLength: 32 type: string url_action: $ref: "#/components/schemas/TapAction" value: format: double type: number required: - template type: object WidgetFlow: additionalProperties: false properties: exchange: $ref: "#/components/schemas/FlowNode" description: Two-way link with the outside (grid, mains, upstream). inputs: description: Production sources (solar, wind, well, ...). items: $ref: "#/components/schemas/FlowNode" maxItems: 3 type: - array - "null" output: $ref: "#/components/schemas/FlowNode" description: Consumption endpoint (the house, the cluster, ...). storage: $ref: "#/components/schemas/FlowNode" description: Buffer; carries the 0-100 fill level. type: object securitySchemes: bearer: bearerFormat: token description: Integration key (hlk_ prefix) or org admin key (hlo_ prefix) scheme: bearer type: http info: description: | PushWard is an APNs gateway for iOS Live Activities. Start, update, and end Live Activities on any subscribed device with plain HTTP requests. ## Authentication All endpoints (except `/health`) require an integration key in the `Authorization` header (the Organizations endpoints an org admin key, below): ``` Authorization: Bearer hlk_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345 ``` Integration keys are created in the PushWard iOS app. Each key has a `permissions` object with one level per resource; a higher level includes the lower ones: | Resource | Levels | Endpoints | |---|---|---| | `activities` | `none`, `read`, `update`, `manage` | read: `GET /activities`, `GET /activities/{slug}`; update: also `PATCH /activities/{slug}`; manage: also `POST /activities`, `DELETE /activities/{slug}` and `PATCH ?upsert=true` | | `notifications` | `none`, `send`, `schedule` | send: `POST /notifications`, `POST /notifications/retract`, `GET /notifications/answers` and `GET /notifications/answers/{id}`, the `/notifications/receipts` endpoints; schedule: also the `/notifications/scheduled` endpoints | | `widgets` | `none`, `read`, `write` | read: `GET /widgets`, `GET /widgets/{slug}`; write: also `POST /widgets`, `PATCH /widgets/{slug}`, `DELETE /widgets/{slug}` | | `emails` | `none`, `send` | send: `POST /emails` (verified, opted-in recipients only) | | `devices` | `none`, `read`, `manage` | read: `GET /devices`, `GET /devices/{device_id}`, `GET /devices/{device_id}/subscriptions` and `GET /devices/{device_id}/subscriptions/{slug}`; manage: also `PATCH /devices/{device_id}` (rename), `DELETE /devices/{device_id}`, and following and unfollowing activities (`POST` and `DELETE /devices/{device_id}/subscriptions/{slug}`) | | `sharing` | `none`, `read`, `manage` | read: `GET /permissions`, `GET /activities/{slug}/permissions`; manage: also `POST /activities/{slug}/permissions`, `POST /permissions/patterns`, `PATCH /permissions/{id}` (these three need a subscription) and `DELETE /permissions/{id}` | | `account` | `none`, `read`, `manage` | read: `GET /app/onboarding`, `GET /app/mutes`, `GET /emails/recipients`; manage: also `PATCH /auth/me` (nickname), `PATCH /app/onboarding`, `POST`/`DELETE` `/app/mutes` and the other `/emails/recipients` endpoints | `devices`, `sharing` and `account` are opt-in: every key starts at `none` on them, the default key included, and they are granted from the app. The default key can give another key no more of them than it was granted. A key has no device of its own: `is_current` is false on every device it lists, and it may remove any of them. Signing in and out, deleting the account, registering devices, purchases, redeeming share codes, the notification inbox and organization membership stay with the app. `GET /auth/me` works with every key and reports the calling key's permissions under `integration_key`. A key can also be restricted to activity slugs (`activity_slugs`) and widget slugs (`widget_slugs`), exact or with a trailing `*`, and can have an `expires_at`, after which it answers `401 integration_key.expired`. Requests outside the key's permissions receive `403 integration_key.permission_denied`, with a `detail` naming the level they need. Older fields stay on every key for existing clients: `scope` is `activity:`, and the booleans `notifications` (send or schedule), `widgets` (write) and `emails` (send) summarize the levels. Create and update accept either `permissions` or those older fields (where `true` means the resource's highest level), not both. **The account's default key** (`is_default: true`, created by the app) can also use the `/integrations/keys` endpoints to create, list, update, roll and revoke the account's other keys. It cannot give a key a permission above its own, and cannot change a default key. Keys it creates keep working when the default key is revoked or rolled. ## Organization administration The Organizations endpoints take an org admin key (`hlo_`), which an owner or admin of the organization creates in the PushWard console. An org admin key administers one organization and sends nothing; an integration key sends and administers no organization, so a leaked integration key cannot change the organization. | Level | Acts as | Can | |---|---|---| | `read` | a viewer | read the organization, its members, audit log, device fleet, groups, tags and routes | | `manage` | an admin | also rename it, invite, change and remove members and viewers, manage its integration keys, groups, tags and routes | Both levels read the plan, seats and invoices and neither can change them. Neither can touch owners, admins or billing members, grant those roles, or delete the organization. Each endpoint says which level it needs; below it the answer is `403 org.permission_denied`. A key gets `404 org.not_found` for any organization but its own and `403 org_admin_key.not_allowed` on every endpoint outside this group (`403 billing.console_only` on the billing ones). An expired key gets `401 org_admin_key.expired`. A key is revoked when the person who created it leaves or is removed from the organization, moves to the billing, member or viewer role, or deletes their account. An organization that is not active still answers reads; most writes get `403 org.billing_inactive`. ## Errors Errors are RFC 9457 problem details (`application/problem+json`). The `code` member is a stable programmatic identifier -- match on it instead of `detail`. Rate-limit and quota responses (`429`) also set a `Retry-After` header and `retry_after_ms`, as does `503 service.unavailable` -- a `503` means the request itself was fine and the server could not reach a dependency, so retry it rather than treating it as a failed delivery. ## Activity State Machine Activities follow a state machine with two client-visible states: | State | Description | |---|---| | `ENDED` | Inactive (default on creation) | | `ONGOING` | Active Live Activity running on device | **Transitions via `PATCH /activities/{slug}`:** | From -> To | Push Action | |---|---| | ENDED -> ONGOING | Push-to-start (starts Live Activity) | | ONGOING -> ONGOING | Push update (updates content) | | ONGOING -> ENDED | Push end (dismisses after 4 hours) | ## Countdown Lifecycle Activities on the `timer` template (also accepted as `countdown`, the name responses report) count down to `end_date`, or with `direction: up` count up from `start_date` (default: the first write). The server manages both: - **Warning push:** When `warning_threshold` seconds remain, the server sends an update with `accent_color: orange` - **Completion push:** When `end_date` is reached, the server ends the activity with `completion_message` (or "Completed") and `progress: 1.0` - **Counting up:** an up clock has no end of its own; with `goal` set, the server re-sends the card when the goal passes so it switches to its overtime look - **Pause / resume:** `paused: true` stops the clock in either direction, `paused: false` restarts it; the server keeps `paused_at` (and, counting up, `paused_seconds`), and a resumed countdown's `end_date` moves on by the paused time - **Long runs:** an up clock or a paused countdown is kept alive past the iOS 8-hour limit (up to about 3 days), unless its `stale_ttl` passes first - **End:** ending the activity freezes the card at its final value No client action is needed after the initial start -- the server handles the full lifecycle. ## Colors Templates support optional color fields (`accent_color`, `background_color`, `text_color`): - **Named colors:** `red`, `orange`, `yellow`, `green`, `blue`, `purple`, `pink`, `indigo`, `teal`, `cyan`, `mint`, `brown` - **Hex RGB:** `#FF5733` or `FF5733` - **Hex RGBA:** `#FF573380` or `FF573380` license: name: MIT url: https://github.com/mac-lucky/pushward-integrations/blob/main/LICENSE title: PushWard API version: 1.0.0 openapi: 3.1.0 paths: /activities: get: operationId: listActivities parameters: - description: Maximum number of activities to return (1-100, default 50). explode: false in: query name: limit schema: description: Maximum number of activities to return (1-100, default 50). format: int64 maximum: 100 minimum: 1 type: integer - description: Opaque pagination cursor from a previous response's next_cursor. Omit to start from the beginning. explode: false in: query name: after schema: description: Opaque pagination cursor from a previous response's next_cursor. Omit to start from the beginning. type: string - description: Optional filter on activity state. Accepts ongoing, ended, or preempted (case-insensitive). Omit to return all states. explode: false in: query name: state schema: description: Optional filter on activity state. Accepts ongoing, ended, or preempted (case-insensitive). Omit to return all states. type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListActivitiesPage" description: OK "400": content: application/problem+json: examples: invalid_cursor: summary: The after parameter is not a cursor issued by the server value: code: cursor.invalid detail: invalid cursor instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request invalid_state: summary: Unrecognized state filter value value: code: activity.state_invalid detail: "invalid activity state: \"paused\", must be one of ongoing, ended, preempted" instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key has no activity access value: code: integration_key.permission_denied detail: "insufficient permissions: requires activities:read" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: query.limit message: expected number <= 100 instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to list activities instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: List activities tags: - Activities post: operationId: createActivity requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateActivityRequest" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/Activity" description: Created headers: X-Resource-Action: schema: description: "'created' when a new activity was inserted; 'updated' when an existing slug was refreshed (name/priority/TTLs)." type: string "400": content: application/problem+json: examples: bad_request: value: detail: validation failed errors: - location: body message: invalid character '}' looking for beginning of value instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's activities level is below manage value: code: integration_key.permission_denied detail: "insufficient permissions: requires activities:manage" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden slug_not_allowed: summary: Key is restricted to activity slugs the target does not match value: code: integration_key.slug_invalid detail: key not allowed for this activity instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "409": content: application/problem+json: examples: activity.limit_exceeded: value: code: activity.limit_exceeded detail: activity limit reached (max 50) instance: /requests/9f86d081884c7d65 status: 409 title: Conflict type: https://pushward.app/errors/conflict schema: $ref: "#/components/schemas/Problem" description: Conflict "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: body.slug message: expected string to match pattern ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$ instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: quota_exceeded: summary: Free-tier monthly quota exhausted value: code: quota.exceeded detail: quota exceeded for live_activity_updates instance: /requests/9f86d081884c7d65 kind: live_activity_updates limit: 250 reset_at: "2026-08-01T00:00:00Z" status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests used: 250 rate_limit: summary: Per-client rate limit exceeded value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to create activity instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Create activity tags: - Activities /activities/{slug}: delete: operationId: deleteActivity parameters: - in: path name: slug required: true schema: type: string responses: "204": description: No Content "400": content: application/problem+json: examples: slug.invalid: value: code: slug.invalid detail: invalid slug format instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's activities level is below manage value: code: integration_key.permission_denied detail: "insufficient permissions: requires activities:manage" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden slug_not_allowed: summary: Key is restricted to activity slugs the target does not match value: code: integration_key.slug_invalid detail: key not allowed for this activity instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden viewer_role: summary: Shared viewer role cannot modify activities value: code: activity.viewer_forbidden detail: viewer role cannot modify activities instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: activity.not_found: value: code: activity.not_found detail: activity not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to delete activity instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Delete activity tags: - Activities get: operationId: getActivity parameters: - in: path name: slug required: true schema: type: string - description: Comma-separated extras to include in the response. Currently supports 'log_backlog' - the server-accumulated rolling log history for the log template (newest-first, up to 1000 lines / ~300 KiB). Omitted by default. explode: false in: query name: include schema: description: Comma-separated extras to include in the response. Currently supports 'log_backlog' - the server-accumulated rolling log history for the log template (newest-first, up to 1000 lines / ~300 KiB). Omitted by default. type: string - description: Seconds (up to 25) to hold the request open while an approval activity is waiting for its answer, or while a checklist is open (long-poll). Returns as soon as the approval is answered, a checklist item changes, or the activity ends, or unchanged when the time runs out. Ignored for any other activity. explode: false in: query name: wait schema: description: Seconds (up to 25) to hold the request open while an approval activity is waiting for its answer, or while a checklist is open (long-poll). Returns as soon as the approval is answered, a checklist item changes, or the activity ends, or unchanged when the time runs out. Ignored for any other activity. format: int64 type: integer responses: "200": content: application/json: schema: $ref: "#/components/schemas/Activity" description: OK "400": content: application/problem+json: examples: slug.invalid: value: code: slug.invalid detail: invalid slug format instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key has no activity access value: code: integration_key.permission_denied detail: "insufficient permissions: requires activities:read" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden slug_not_allowed: summary: Key is restricted to activity slugs the target does not match value: code: integration_key.slug_invalid detail: key not allowed for this activity instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: activity.not_found: value: code: activity.not_found detail: activity not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to get activity instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Get activity tags: - Activities patch: description: "Partial update using RFC 7396 JSON Merge Patch semantics. Fields present in the request body overwrite stored values; fields set to null clear them; absent fields are preserved. Top-level `state` is optional - if omitted, the current stored state is kept (unless the activity is PREEMPTED, in which case the caller must set ONGOING or ENDED explicitly). Top-level `ended_ttl`, `stale_ttl`, and `dismissal_ttl` are patchable with the same tri-state semantics (omit = keep, null = clear, number = set); `dismissal_ttl: 0` sent together with `state: ended` removes the card from the Lock Screen immediately. Changing `ended_ttl` on an already-ENDED activity does not reschedule its pending auto-delete - it applies on the next end. Once set, alarm and warning_threshold persist across updates until explicitly cleared with null. If both end_date and duration are provided, end_date wins. When state transitions to ENDED the server clears alarm, snoozed_until, and warning_pushed unconditionally. With `?upsert=true` a missing slug is created first and the response is `201` with `X-Resource-Action: created` (`409` if the activity cap is reached)." operationId: updateActivity parameters: - in: path name: slug required: true schema: type: string - description: When true and no activity with this slug exists, create it first (name defaults to the slug) and then apply the patch. Requires activity:manage scope or full access; activity:update keys get 403 activity.upsert_forbidden. Without this flag a missing slug is always 404. explode: false in: query name: upsert schema: description: When true and no activity with this slug exists, create it first (name defaults to the slug) and then apply the patch. Requires activity:manage scope or full access; activity:update keys get 403 activity.upsert_forbidden. Without this flag a missing slug is always 404. type: boolean requestBody: content: application/merge-patch+json: schema: $ref: "#/components/schemas/UpdateActivityRequest" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/Activity" description: OK headers: X-Resource-Action: schema: description: "'created' when ?upsert=true inserted a new activity; 'updated' otherwise." type: string "201": content: application/json: schema: $ref: "#/components/schemas/Activity" description: Created (the slug did not exist and ?upsert=true created it) headers: X-Resource-Action: schema: description: "'created' when ?upsert=true inserted a new activity; 'updated' otherwise." type: string "400": content: application/problem+json: examples: body_invalid: summary: Body is not valid JSON value: code: request.body_invalid detail: "invalid JSON: unexpected end of JSON input" instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request body_required: summary: Empty request body value: code: request.body_required detail: request body is required instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request priority_invalid: summary: Priority outside 0-10 value: code: activity.priority_invalid detail: priority must be between 0 and 10 instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request state_invalid: summary: Unrecognized state value value: code: activity.state_invalid detail: "invalid activity state: \"paused\", must be one of ongoing, ended, preempted" instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's activities level is below update value: code: integration_key.permission_denied detail: "insufficient permissions: requires activities:update" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden slug_not_allowed: summary: Key is restricted to activity slugs the target does not match value: code: integration_key.slug_invalid detail: key not allowed for this activity instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden upsert_forbidden: summary: ?upsert=true with an update-only key value: code: activity.upsert_forbidden detail: upsert requires activity:manage scope or full access instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden viewer_role: summary: Shared viewer role cannot modify activities value: code: activity.viewer_forbidden detail: viewer role cannot modify activities instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: activity.not_found: value: code: activity.not_found detail: activity not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "409": content: application/problem+json: examples: activity.limit_exceeded: value: code: activity.limit_exceeded detail: activity limit reached (max 50) instance: /requests/9f86d081884c7d65 status: 409 title: Conflict type: https://pushward.app/errors/conflict schema: $ref: "#/components/schemas/Problem" description: Conflict "422": content: application/problem+json: examples: activity.content_invalid: value: code: activity.content_invalid detail: progress must be between 0.0 and 1.0, got 1.500000 instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: quota_exceeded: summary: Free-tier monthly quota exhausted value: code: quota.exceeded detail: quota exceeded for live_activity_updates instance: /requests/9f86d081884c7d65 kind: live_activity_updates limit: 250 reset_at: "2026-08-01T00:00:00Z" status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests used: 250 rate_limit: summary: Per-client rate limit exceeded value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to update activity instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Update activity tags: - Activities /app/mutes: get: description: Returns the account's mutes, oldest first, leaving out timed ones whose until has passed. operationId: listMutes responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListMutesOutputBody" description: OK headers: Cache-Control: schema: type: string "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: requires_account_read: value: code: integration_key.permission_denied detail: "insufficient permissions: requires account:read" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: internal server error instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: List mutes tags: - System post: description: Mutes target (a notification source or activity slug, or * for everything except critical alerts) on every device of the account. Re-muting the same target and applies_to replaces the timed mute; a schedule mute is kept separately. 422 for a blank target, an until not in the future, a schedule whose start equals its end or whose time zone is unknown, or a new mute past 100. operationId: createMute requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateMuteBody" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/Mute" description: Created "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: requires_account_manage: value: code: integration_key.permission_denied detail: "insufficient permissions: requires account:manage" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: body.slug message: expected length >= 1 instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: internal server error instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Mute a source or activity tags: - System /app/mutes/{mute_id}: delete: operationId: deleteMute parameters: - in: path name: mute_id required: true schema: type: string responses: "204": description: No Content "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: requires_account_manage: value: code: integration_key.permission_denied detail: "insufficient permissions: requires account:manage" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: not_found: value: detail: resource not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: internal server error instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Unmute tags: - System /auth/me: get: operationId: getMe responses: "200": content: application/json: schema: $ref: "#/components/schemas/User" description: OK "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "404": content: application/problem+json: examples: user.not_found: value: code: user.not_found detail: user not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to get profile instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Get current user profile tags: - Auth /emails: post: description: Sends a transactional email to a verified, non-unsubscribed recipient of the calling account. Rejects unverified recipients (403) and silently skips suppressed addresses. Requires an integration key with the emails level send. operationId: sendEmail requestBody: content: application/json: schema: $ref: "#/components/schemas/SendEmailRequest" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/EmailLog" description: Created "400": content: application/problem+json: examples: email.invalid: value: code: email.invalid detail: subject is required instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's emails level is none value: code: integration_key.permission_denied detail: "insufficient permissions: requires emails:send" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden recipient_not_verified: summary: Address has not completed double opt-in for this account value: code: email.recipient_not_verified detail: recipient is not a verified address for this account instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "429": content: application/problem+json: examples: quota_exceeded: summary: Free-tier monthly quota exhausted value: code: quota.exceeded detail: quota exceeded for emails instance: /requests/9f86d081884c7d65 kind: emails limit: 50 reset_at: "2026-08-01T00:00:00Z" status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests used: 50 rate_limit: summary: Per-client rate limit exceeded value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to check verified recipient instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: email_disabled: summary: Email channel is disabled on this server value: code: email.not_enabled detail: email sending is not enabled on this server instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable service_unavailable: summary: Transient backend failure during authentication value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Send transactional email tags: - Email /health: get: operationId: getHealth responses: "200": content: application/json: schema: $ref: "#/components/schemas/Health" description: OK "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: internal server error instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error summary: Health check tags: - System /integrations/keys: get: description: "Lists the account's active integration keys, newest first, without their secrets. The one with `is_default: true` is the default key. Requires the account's default integration key." operationId: listIntegrationKeys responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListIntegrationKeysOutputBody" description: OK "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: default_key_required: summary: Called with an integration key that is not the account's default key value: code: integration_key.default_key_required detail: only the account's default integration key can manage integration keys instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to list integration keys instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: List integration keys tags: - Integration Keys post: description: "Creates an integration key and returns its secret once, in `key`; store it, it cannot be read again. Requires the account's default integration key, and the new key cannot have a permission above the default key's own. It works independently of the key that created it: revoking or rolling the default key leaves it working." operationId: createIntegrationKey requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateIntegrationKeyInputBody" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/IntegrationKeyResponse" description: Created "400": content: application/problem+json: examples: expires_at_invalid: summary: expires_at is not in the future value: code: integration_key.expires_at_invalid detail: expires_at must be in the future instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request permissions_conflict: summary: permissions sent together with a legacy field value: code: integration_key.permissions_conflict detail: send either permissions or the legacy scope, notifications, widgets and emails fields, not both instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request slug_invalid: summary: An activity_slugs entry is not a slug or trailing-* pattern value: code: integration_key.slug_invalid detail: invalid slug or pattern in activity_slugs instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: default_key_required: summary: Called with an integration key that is not the account's default key value: code: integration_key.default_key_required detail: only the account's default integration key can manage integration keys instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden grant_exceeded: summary: The key would have more than the calling key value: code: integration_key.grant_exceeded detail: the key would have a permission above the calling key's own instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "409": content: application/problem+json: examples: integration_key.limit_exceeded: value: code: integration_key.limit_exceeded detail: integration key limit reached (max 25) instance: /requests/9f86d081884c7d65 status: 409 title: Conflict type: https://pushward.app/errors/conflict schema: $ref: "#/components/schemas/Problem" description: Conflict "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: body.scope message: expected value to be one of "activity:none", "activity:read", "activity:update", "activity:manage" instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to create integration key instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Create integration key tags: - Integration Keys /integrations/keys/{key_id}: delete: description: Revokes an integration key; requests made with it fail from then on, and its pending scheduled notifications are dropped. Requires the account's default integration key, which cannot revoke a default key (itself included). operationId: revokeIntegrationKey parameters: - in: path name: key_id required: true schema: type: string responses: "204": description: No Content "400": content: application/problem+json: examples: path.too_long: value: code: path.too_long detail: key_id is too long instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: default_key_required: summary: Called with an integration key that is not the account's default key value: code: integration_key.default_key_required detail: only the account's default integration key can manage integration keys instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden default_target: summary: The target is a default key value: code: integration_key.default_target detail: a default integration key can only be revoked, updated or rolled from the app instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: integration_key.not_found: value: code: integration_key.not_found detail: integration key not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to revoke integration key instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Revoke integration key tags: - Integration Keys patch: description: Changes a key's permissions, slug restrictions or expiry; omitted fields are left as they are. Requires the account's default integration key, which cannot update a default key, and the result cannot have a permission above the default key's own. operationId: updateIntegrationKey parameters: - in: path name: key_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateIntegrationKeyInputBody" minProperties: 1 required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/IntegrationKeyResponse" description: OK "400": content: application/problem+json: examples: body_required: summary: The patch sets no field value: code: request.body_required detail: at least one of permissions, activity_slugs, widget_slugs, expires_at, scope, notifications, widgets or emails is required instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request default_locked: summary: Changes the default key's name, activities, notifications, widgets or emails level, slug restrictions or expiry value: code: integration_key.default_locked detail: cannot change the name, the activities, notifications, widgets or emails level, the slug restrictions or the expiry of the default integration key instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request expires_at_invalid: summary: expires_at is not in the future value: code: integration_key.expires_at_invalid detail: expires_at must be in the future instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request permissions_conflict: summary: permissions sent together with a legacy field value: code: integration_key.permissions_conflict detail: send either permissions or the legacy scope, notifications, widgets and emails fields, not both instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request slug_invalid: summary: An activity_slugs entry is not a slug or trailing-* pattern value: code: integration_key.slug_invalid detail: invalid slug or pattern in activity_slugs instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: default_key_required: summary: Called with an integration key that is not the account's default key value: code: integration_key.default_key_required detail: only the account's default integration key can manage integration keys instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden default_target: summary: The target is a default key value: code: integration_key.default_target detail: a default integration key can only be revoked, updated or rolled from the app instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden grant_exceeded: summary: The key would have more than the calling key value: code: integration_key.grant_exceeded detail: the key would have a permission above the calling key's own instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: integration_key.not_found: value: code: integration_key.not_found detail: integration key not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: body.scope message: expected value to be one of "activity:none", "activity:read", "activity:update", "activity:manage" instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to update integration key instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Update integration key tags: - Integration Keys /integrations/keys/{key_id}/roll: post: description: Replaces a key's secret and returns the new one once, in `key`; the old secret stops working. Requires the account's default integration key, which cannot roll a default key or a key with a permission above its own. operationId: rollIntegrationKey parameters: - in: path name: key_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/IntegrationKeyResponse" description: OK "400": content: application/problem+json: examples: path.too_long: value: code: path.too_long detail: key_id is too long instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: default_key_required: summary: Called with an integration key that is not the account's default key value: code: integration_key.default_key_required detail: only the account's default integration key can manage integration keys instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden default_target: summary: The target is a default key value: code: integration_key.default_target detail: a default integration key can only be revoked, updated or rolled from the app instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden grant_exceeded: summary: The key would have more than the calling key value: code: integration_key.grant_exceeded detail: the key would have a permission above the calling key's own instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: integration_key.not_found: value: code: integration_key.not_found detail: integration key not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to roll integration key instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Roll integration key tags: - Integration Keys /notifications: post: operationId: createNotification parameters: - description: "Identifies this send across retries, so a repeated request does not leave a second inbox row or push twice. Use a new random value for each send: a request repeating a key gets the first send's notification, whatever its body. A key applies per account and integration key, for as long as the notification stays in the inbox. Printable ASCII without spaces." in: header name: Idempotency-Key schema: description: "Identifies this send across retries, so a repeated request does not leave a second inbox row or push twice. Use a new random value for each send: a request repeating a key gets the first send's notification, whatever its body. A key applies per account and integration key, for as long as the notification stays in the inbox. Printable ASCII without spaces." maxLength: 128 pattern: ^[!-~]+$ type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateNotificationRequest" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/Notification" description: Created "400": content: application/problem+json: examples: acknowledge_invalid: summary: acknowledge with push false or level passive, or tags/callback_url without it value: code: notification.invalid detail: acknowledge requires push instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request notification_invalid: summary: Content fails a check value: code: notification.invalid detail: media.url and media.type are required when media is set instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: activity_slug_forbidden: summary: activity_slug from a key with no activity access value: code: integration_key.permission_denied detail: "insufficient permissions: requires activities:read to set activity_slug" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden insufficient_scope: summary: Integration key's notifications level is below send value: code: integration_key.permission_denied detail: "insufficient permissions: requires notifications:send" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "409": content: application/problem+json: examples: notification_receipt.limit_exceeded: value: code: notification_receipt.limit_exceeded detail: acknowledged notification limit reached (max 25 active); wait for one to be acknowledged or expire, or cancel one instance: /requests/9f86d081884c7d65 status: 409 title: Conflict type: https://pushward.app/errors/conflict schema: $ref: "#/components/schemas/Problem" description: Conflict "422": content: application/problem+json: examples: activity_not_found: summary: activity_slug references a missing activity value: code: notification.activity_not_found detail: activity_slug not found instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity answer_url_unavailable: summary: A url-less text_input action needs a server public base URL value: code: notification.answer_url_unavailable detail: text_input actions without a url need the server-recorded answer flow, but the server has no public base URL configured instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity encrypted_too_large: summary: The encrypted notification's push (or its widest repeat) exceeds 4 KB value: code: notification.encrypted_too_large detail: "encrypted: with the other fields, the notification exceeds the 4 KB push payload; shorten the encrypted text, the actions or the media and icon URLs, or send it with push false" instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity encryption_unavailable: summary: PushWard has not enabled encryption for organizations yet value: code: notification.encryption_unavailable detail: PushWard has not enabled end-to-end encrypted notifications for organizations yet instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity open_url_on_tap_requires_url: summary: open_url_on_tap without url or encrypted value: code: notification.open_url_on_tap_requires_url detail: open_url_on_tap requires url, or encrypted with the url inside instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity receipts_disabled: summary: Acknowledged notifications are switched off value: code: notification_receipt.disabled detail: acknowledged notifications are temporarily unavailable instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity snooze_invalid: summary: snooze with acknowledge, or actions plus snooze over 10 value: code: notification.snooze_invalid detail: "snooze cannot be combined with acknowledge: an acknowledged notification repeats until someone answers it" instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity validation_failed: summary: Request body failed validation value: detail: validation failed errors: - location: body.title message: expected title to be non-empty unless encrypted is set instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: quota_exceeded: summary: Free-tier monthly quota exhausted value: code: quota.exceeded detail: quota exceeded for notifications instance: /requests/9f86d081884c7d65 kind: notifications limit: 500 reset_at: "2026-08-01T00:00:00Z" status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests used: 500 rate_limit: summary: Per-client rate limit exceeded value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to create notification instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Create notification tags: - Notifications /notifications/answers: get: description: "Returns the answers recorded after the cursor `after`, oldest first, with the cursor to pass next. One loop over it reacts to every answer (an automation), instead of one `GET /notifications/answers/{id}` per notification. Each item has the shape of `GET /notifications/answers/{id}`, `collapse_id` and `thread_id` included when the notification was sent with them. Call it first without `after`: the response has no items and the current cursor, so a new reader does not replay the answers kept for 30 days. Take that cursor when the reader is set up, before it sends anything it waits on. An answerable `POST /notifications` response carries `answer_cursor`, the cursor as of that send. A reader that already holds a cursor keeps reading from it. A reader with no cursor yet takes the `answer_cursor` of its first answerable send as its cursor and keeps it; the `answer_cursor` of later sends adds nothing. Cursors are opaque and never compared. A scheduled send's response has no `answer_cursor`; its answers come after it fires, so a cursor taken when it was scheduled covers them. Then call with `after` and `wait` (up to 25 seconds) to hold the request open until the next answer arrives; with nothing new it returns no items and the same cursor. Store the cursor to resume after a restart. An integration key reads only answers to notifications it sent (an organization key's, whichever member answered); the app reads every answer of the account. Waits here have a limit of their own, apart from `GET /notifications/answers/{id}`: two at a time per integration key (or for the app), and a limit per server; past either the call answers 429 with `retry_after_ms`, so retry after it or call without `wait`." operationId: listNotificationAnswers parameters: - description: "The cursor of your previous response. Leave it out on the first call: that response holds no answers, only the current cursor, so a new reader starts from now instead of replaying the answers kept for 30 days." explode: false in: query name: after schema: description: "The cursor of your previous response. Leave it out on the first call: that response holds no answers, only the current cursor, so a new reader starts from now instead of replaying the answers kept for 30 days." maxLength: 64 type: string - description: Seconds to hold the request open while no answer has arrived after the cursor (long-poll). Returns as soon as one lands, or with no items and the same cursor when the time runs out. Ignored on the first call (no after). explode: false in: query name: wait schema: default: 0 description: Seconds to hold the request open while no answer has arrived after the cursor (long-poll). Returns as soon as one lands, or with no items and the same cursor when the time runs out. Ignored on the first call (no after). format: int64 maximum: 25 minimum: 0 type: integer - description: The most answers to return. When a page comes back full, call again at once with its cursor. explode: false in: query name: limit schema: default: 100 description: The most answers to return. When a page comes back full, call again at once with its cursor. format: int64 maximum: 100 minimum: 1 type: integer responses: "200": content: application/json: schema: $ref: "#/components/schemas/NotificationAnswerFeed" description: OK "400": content: application/problem+json: examples: cursor.invalid: value: code: cursor.invalid detail: malformed cursor instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's notifications level is none value: code: integration_key.permission_denied detail: "insufficient permissions: requires notifications:send" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: query.wait message: expected number <= 25 instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit: summary: Per-client rate limit exceeded value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests wait_limit: summary: Too many concurrent feed waits for this key, or on this server value: code: answer_wait.limit_exceeded detail: too many concurrent waits; retry shortly instance: /requests/9f86d081884c7d65 retry_after_ms: 2000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to list notification answers instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Stream notification answers tags: - Notifications /notifications/answers/{id}: get: description: "Returns the answer to a notification sent with at least one action without a `url` (the create response has `answerable: true`): which action the user tapped and, for a `text_input` action, the text they typed. Pass `wait` (up to 25 seconds) to hold the request open until the answer arrives. The first answer wins; answers are kept 30 days. An integration key can read only answers to notifications it sent." operationId: getNotificationAnswer parameters: - description: Notification ID, as returned by POST /notifications (or notification_id on a sent scheduled notification). in: path name: id required: true schema: description: Notification ID, as returned by POST /notifications (or notification_id on a sent scheduled notification). format: int64 type: integer - description: Seconds to hold the request open while the answer is pending (long-poll). Returns as soon as the answer lands, or with status pending when the time runs out. explode: false in: query name: wait schema: default: 0 description: Seconds to hold the request open while the answer is pending (long-poll). Returns as soon as the answer lands, or with status pending when the time runs out. format: int64 maximum: 25 minimum: 0 type: integer responses: "200": content: application/json: schema: $ref: "#/components/schemas/NotificationAnswer" description: OK "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's notifications level is none value: code: integration_key.permission_denied detail: "insufficient permissions: requires notifications:send" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: notification_answer.not_found: value: code: notification_answer.not_found detail: notification has no answer (none of its actions was sent without a url) instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: query.wait message: expected number <= 25 instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit: summary: Per-client rate limit exceeded value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests wait_limit: summary: Too many concurrent waits for this account value: code: answer_wait.limit_exceeded detail: too many concurrent waits; retry shortly instance: /requests/9f86d081884c7d65 retry_after_ms: 2000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to get notification answer instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Get notification answer tags: - Notifications /notifications/receipts/cancel: post: description: Stops every active acknowledged notification that was sent with `tag`. An integration key cancels only the ones it sent; the app cancels them across the account. Their callbacks are not sent. operationId: cancelNotificationReceiptsByTag requestBody: content: application/json: schema: $ref: "#/components/schemas/CancelNotificationReceiptsByTagInputBody" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/CancelNotificationReceiptsByTagOutputBody" description: OK "400": content: application/problem+json: examples: bad_request: value: detail: validation failed errors: - location: body message: invalid character '}' looking for beginning of value instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's notifications level is none value: code: integration_key.permission_denied detail: "insufficient permissions: requires notifications:send" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: body.tag message: expected string to match pattern ^[!-~]+$ instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to cancel notification receipts by tag instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Cancel notification receipts by tag tags: - Notifications /notifications/receipts/{id}: get: description: "Returns the receipt of a notification sent with `acknowledge` (the create response's `receipt`): whether it is still repeating, who acknowledged it and when, and the callback delivery. Pass `wait` (up to 25 seconds) to hold the request open until it is acknowledged, expires or is canceled. Finished receipts are kept 7 days. An integration key can read only receipts of notifications it sent. A notification sent without `acknowledge` has no receipt (404), including a scheduled one that went out while acknowledged notifications were switched off." operationId: getNotificationReceipt parameters: - description: Notification ID, as returned by POST /notifications (or notification_id on a sent scheduled notification). in: path name: id required: true schema: description: Notification ID, as returned by POST /notifications (or notification_id on a sent scheduled notification). format: int64 type: integer - description: Seconds to hold the request open while the receipt is active (long-poll). Returns as soon as it is acknowledged, expires or is canceled, or with status active when the time runs out. explode: false in: query name: wait schema: default: 0 description: Seconds to hold the request open while the receipt is active (long-poll). Returns as soon as it is acknowledged, expires or is canceled, or with status active when the time runs out. format: int64 maximum: 25 minimum: 0 type: integer responses: "200": content: application/json: schema: $ref: "#/components/schemas/NotificationReceipt" description: OK "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's notifications level is none value: code: integration_key.permission_denied detail: "insufficient permissions: requires notifications:send" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: notification_receipt.not_found: value: code: notification_receipt.not_found detail: notification has no receipt (it was not sent with acknowledge) instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: query.wait message: expected number <= 25 instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit: summary: Per-client rate limit exceeded value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests wait_limit: summary: Too many concurrent waits for this account value: code: answer_wait.limit_exceeded detail: too many concurrent waits; retry shortly instance: /requests/9f86d081884c7d65 retry_after_ms: 2000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to get notification receipt instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Get notification receipt tags: - Notifications /notifications/receipts/{id}/cancel: post: description: Stops an acknowledged notification from repeating. Its callback is not sent. Canceling a receipt that already finished returns it unchanged. An integration key can cancel only receipts of notifications it sent; another key's receipt is 404. operationId: cancelNotificationReceipt parameters: - description: Notification ID, as returned by POST /notifications (or notification_id on a sent scheduled notification). in: path name: id required: true schema: description: Notification ID, as returned by POST /notifications (or notification_id on a sent scheduled notification). format: int64 type: integer responses: "200": content: application/json: schema: $ref: "#/components/schemas/NotificationReceipt" description: OK "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's notifications level is none value: code: integration_key.permission_denied detail: "insufficient permissions: requires notifications:send" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: notification_receipt.not_found: value: code: notification_receipt.not_found detail: notification has no receipt (it was not sent with acknowledge) instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: body.slug message: expected length >= 1 instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to cancel notification receipt instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Cancel notification receipt tags: - Notifications /notifications/retract: post: description: |- Takes back the notifications sent with `collapse_id`: every device a `POST /notifications` from the same caller reaches (an organization key: the members' devices its groups and tags reach) gets a silent push, then removes the account's or the organization's notifications it shows under that collapse_id, whichever key sent them, and marks them read in its history. An organization's retract matches only the organization's notifications, a person's only their own. Nothing is deleted on the server, and a device that never got such a notification ignores it. From a person, the app or an organization key without groups or tags, every acknowledged notification of the account or organization sent with that collapse_id stops repeating, whichever key sent it. From an organization key scoped to groups or tags, only the acknowledged notifications that key sent with that collapse_id stop repeating. Their receipts end canceled with cancel_reason retracted. Answers 202 with the number of devices the retraction was sent to; the pushes go out right after. Best effort: iOS does not deliver background pushes to an app the user force-quit, and Low Power Mode delays them, so a notification can stay on screen until the app runs again. On Apple devices only PushWard 1.20 or later on iPhone, iPad and Mac retracts; older app versions and Apple Watch are neither sent to nor counted. Every Android device is sent to and counted, including app versions that predate retract, which only sync their inbox. Rate limited to 10 a minute with a burst of 5, per account or organization, across all its keys. operationId: retractNotifications requestBody: content: application/json: schema: $ref: "#/components/schemas/RetractNotificationsInputBody" required: true responses: "202": content: application/json: schema: $ref: "#/components/schemas/RetractNotificationsOutputBody" description: Accepted "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's notifications level is none value: code: integration_key.permission_denied detail: "insufficient permissions: requires notifications:send" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden target_denied: summary: An organization key's groups and tags were deleted value: code: integration_key.target_denied detail: this key's groups and tags were deleted; create a new key instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: body.collapse_id message: expected length >= 1 instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to list notification retract targets instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Retract notifications by collapse_id tags: - Notifications /notifications/scheduled: get: description: "Lists scheduled notifications: pending ones soonest first, sent and failed ones (kept 7 days) and canceled ones (kept 24 hours) latest first. An integration key sees only the ones it scheduled." operationId: listScheduledNotifications parameters: - description: Filter by status. scheduled (default) also includes notifications being sent right now and lists soonest first; the other filters list latest first. all returns every status, canceled included. explode: false in: query name: status schema: default: scheduled description: Filter by status. scheduled (default) also includes notifications being sent right now and lists soonest first; the other filters list latest first. all returns every status, canceled included. enum: - scheduled - sent - failed - canceled - all type: string - description: Maximum number of results (default 50). explode: false in: query name: limit schema: default: 50 description: Maximum number of results (default 50). format: int64 maximum: 100 minimum: 1 type: integer - description: Opaque pagination cursor returned by a prior call's next_cursor, with the same status. explode: false in: query name: cursor schema: description: Opaque pagination cursor returned by a prior call's next_cursor, with the same status. type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListScheduledNotificationsOutputBody" description: OK "400": content: application/problem+json: examples: cursor.invalid: value: code: cursor.invalid detail: malformed cursor instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's notifications level is below schedule value: code: integration_key.permission_denied detail: "insufficient permissions: requires notifications:schedule" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: query.status message: expected value to be one of "scheduled", "sent", "failed", "canceled", "all" instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to list scheduled notifications instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: List scheduled notifications tags: - Notifications post: description: Queues a notification to be sent at `send_at` (at most 365 days ahead). The body is a `POST /notifications` body plus `send_at`, validated the same way. Add `recurrence` (a cron expression and a time zone) to repeat it; `send_at` is then optional and marks where the schedule starts. A repeating schedule keeps one id and one pending slot for the whole series, and canceling it stops the series. Each send counts against the notification quota when it happens, not when it is scheduled; an account already out of quota gets the same `429 quota.exceeded` as `POST /notifications`. Up to 25 scheduled notifications can be pending per account. Revoking the integration key that scheduled one cancels it. With `acknowledge`, the receipt is created when it is sent; if acknowledged notifications are switched off at that moment, or 25 acknowledged notifications are already active, it goes out as a plain notification, and `GET /notifications/receipts/{id}` answers 404 for it. operationId: createScheduledNotification parameters: - description: "Identifies this send across retries, so a repeated request does not schedule it twice. Use a new random value for each send: a request repeating a key gets the schedule the first attempt made, whatever its body. A key applies per account and integration key, for as long as the schedule exists. Printable ASCII without spaces." in: header name: Idempotency-Key schema: description: "Identifies this send across retries, so a repeated request does not schedule it twice. Use a new random value for each send: a request repeating a key gets the schedule the first attempt made, whatever its body. A key applies per account and integration key, for as long as the schedule exists. Printable ASCII without spaces." maxLength: 128 pattern: ^[!-~]+$ type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateScheduledNotificationRequest" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/ScheduledNotification" description: Created "400": content: application/problem+json: examples: notification_invalid: summary: Content fails a POST /notifications check value: code: notification.invalid detail: media.url and media.type are required when media is set instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request recurrence_invalid: summary: The repeat rule is invalid value: code: scheduled_notification.invalid detail: recurrence.cron sends more often than every 15 minutes instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request send_at_invalid: summary: send_at is in the past or more than 365 days ahead value: code: scheduled_notification.invalid detail: send_at must be in the future instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: activity_slug_forbidden: summary: activity_slug from a key with no activity access value: code: integration_key.permission_denied detail: "insufficient permissions: requires activities:read to set activity_slug" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden insufficient_scope: summary: Integration key's notifications level is below schedule value: code: integration_key.permission_denied detail: "insufficient permissions: requires notifications:schedule" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "409": content: application/problem+json: examples: scheduled_notification.limit_exceeded: value: code: scheduled_notification.limit_exceeded detail: scheduled notification limit reached (max 25 pending) instance: /requests/9f86d081884c7d65 status: 409 title: Conflict type: https://pushward.app/errors/conflict schema: $ref: "#/components/schemas/Problem" description: Conflict "422": content: application/problem+json: examples: activity_not_found: summary: activity_slug references a missing activity value: code: notification.activity_not_found detail: activity_slug not found instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity encrypted_too_large: summary: The encrypted notification's push (or its widest repeat) exceeds 4 KB value: code: notification.encrypted_too_large detail: "encrypted: with the other fields, the notification exceeds the 4 KB push payload; shorten the encrypted text, the actions or the media and icon URLs, or send it with push false" instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity encryption_unavailable: summary: PushWard has not enabled encryption for organizations yet value: code: notification.encryption_unavailable detail: PushWard has not enabled end-to-end encrypted notifications for organizations yet instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity open_url_on_tap_requires_url: summary: open_url_on_tap without url or encrypted value: code: notification.open_url_on_tap_requires_url detail: open_url_on_tap requires url, or encrypted with the url inside instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity receipts_disabled: summary: Acknowledged notifications are switched off value: code: notification_receipt.disabled detail: acknowledged notifications are temporarily unavailable instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity validation_failed: summary: Request body failed schema validation value: detail: validation failed errors: - location: body.send_at message: expected string to be RFC 3339 date-time instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: quota_exceeded: summary: Free-tier monthly quota exhausted value: code: quota.exceeded detail: quota exceeded for notifications instance: /requests/9f86d081884c7d65 kind: notifications limit: 500 reset_at: "2026-08-01T00:00:00Z" status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests used: 500 rate_limit: summary: Per-client rate limit exceeded value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to create scheduled notification instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Schedule notification tags: - Notifications /notifications/scheduled/{id}: delete: description: Cancels a pending scheduled notification, or stops a repeating one. It is kept as canceled for 24 hours, then deleted; canceling it again changes nothing. One being sent right now is canceled too unless its send has already gone out. Deleting a sent or failed one only removes its record. purge=true deletes it outright in any status, leaving no canceled record. An integration key can cancel only the ones it scheduled. operationId: cancelScheduledNotification parameters: - description: Scheduled notification ID in: path name: id required: true schema: description: Scheduled notification ID format: int64 type: integer - description: Delete the schedule outright instead of marking it canceled, leaving no canceled record (for an integration replacing a schedule it is about to re-create). explode: false in: query name: purge schema: description: Delete the schedule outright instead of marking it canceled, leaving no canceled record (for an integration replacing a schedule it is about to re-create). type: boolean responses: "204": description: No Content "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's notifications level is below schedule value: code: integration_key.permission_denied detail: "insufficient permissions: requires notifications:schedule" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: scheduled_notification.not_found: value: code: scheduled_notification.not_found detail: scheduled notification not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: body.slug message: expected length >= 1 instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to cancel scheduled notification instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Cancel scheduled notification tags: - Notifications get: description: Returns one scheduled notification, including the send outcome once it has been sent. An integration key can read only the ones it scheduled. operationId: getScheduledNotification parameters: - description: Scheduled notification ID in: path name: id required: true schema: description: Scheduled notification ID format: int64 type: integer responses: "200": content: application/json: schema: $ref: "#/components/schemas/ScheduledNotification" description: OK "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's notifications level is below schedule value: code: integration_key.permission_denied detail: "insufficient permissions: requires notifications:schedule" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: scheduled_notification.not_found: value: code: scheduled_notification.not_found detail: scheduled notification not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "422": content: application/problem+json: examples: unprocessable_entity: value: detail: validation failed errors: - location: body.slug message: expected length >= 1 instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to get scheduled notification instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Get scheduled notification tags: - Notifications /widgets: get: operationId: listWidgets responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListWidgetsOutputBody" description: OK "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key has no widget access value: code: integration_key.permission_denied detail: "insufficient permissions: requires widgets:read" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to list widgets instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: List widgets tags: - Widgets post: operationId: createWidget requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateWidgetRequest" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/Widget" description: Created headers: X-Resource-Action: schema: description: "'created' for a new widget; 'updated' for an idempotent upsert." type: string "400": content: application/problem+json: examples: bad_request: value: detail: validation failed errors: - location: body message: invalid character '}' looking for beginning of value instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's widgets level is below write value: code: integration_key.permission_denied detail: "insufficient permissions: requires widgets:write" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden slug_not_allowed: summary: Key is restricted to widget slugs the target does not match value: code: integration_key.slug_invalid detail: key not allowed for this widget instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "422": content: application/problem+json: examples: invalid_content: summary: Content does not satisfy the widget template value: code: widget.content_invalid detail: value is required for progress widget template instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity validation_failed: summary: Request body failed schema validation value: detail: validation failed errors: - location: body.template message: expected value to be one of "value", "progress", "status", "gauge", "stat_list", "trend", "countdown", "battery", "schedule", "flow", "heatmap" instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: rate_limit: summary: Per-client rate limit exceeded value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests widget_limit: summary: Per-user widget cap reached value: code: widget.limit_exceeded detail: widget limit reached (max 50) instance: /requests/9f86d081884c7d65 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to create widget instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Create widget tags: - Widgets /widgets/{slug}: delete: operationId: deleteWidget parameters: - in: path name: slug required: true schema: type: string responses: "204": description: No Content "400": content: application/problem+json: examples: slug.invalid: value: code: slug.invalid detail: invalid slug format instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's widgets level is below write value: code: integration_key.permission_denied detail: "insufficient permissions: requires widgets:write" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden slug_not_allowed: summary: Key is restricted to widget slugs the target does not match value: code: integration_key.slug_invalid detail: key not allowed for this widget instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: widget.not_found: value: code: widget.not_found detail: widget not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to delete widget instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Delete widget tags: - Widgets get: description: Returns the latest content for a widget slug. Accessible to the iOS widget extension via its scoped hlw_ token; the extension calls this from TimelineProvider.getTimeline after receiving a thin push. operationId: getWidget parameters: - in: path name: slug required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/Widget" description: OK "400": content: application/problem+json: examples: slug.invalid: value: code: slug.invalid detail: invalid slug format instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's widgets level is below read value: code: integration_key.permission_denied detail: "insufficient permissions: requires widgets:read" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden slug_not_allowed: summary: Key is restricted to widget slugs the target does not match value: code: integration_key.slug_invalid detail: key not allowed for this widget instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: widget.not_found: value: code: widget.not_found detail: widget not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "429": content: application/problem+json: examples: rate_limit.exceeded: value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to get widget instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Get widget tags: - Widgets patch: description: Partial update using RFC 7396 JSON Merge Patch semantics. Triggers a thin widget push so the iOS extension reloads its timeline. operationId: updateWidget parameters: - in: path name: slug required: true schema: type: string requestBody: content: application/merge-patch+json: schema: $ref: "#/components/schemas/UpdateWidgetRequest" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/Widget" description: OK "400": content: application/problem+json: examples: body_invalid: summary: Body is not valid JSON value: code: widget.content_invalid detail: "invalid JSON: unexpected end of JSON input" instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request body_required: summary: Empty request body value: code: request.body_required detail: request body is required instance: /requests/9f86d081884c7d65 status: 400 title: Bad Request type: https://pushward.app/errors/bad-request schema: $ref: "#/components/schemas/Problem" description: Bad Request "401": content: application/problem+json: examples: key_expired: summary: Integration key past its expires_at value: code: integration_key.expired detail: integration key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked token value: code: token.invalid detail: invalid token instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized schema: $ref: "#/components/schemas/Problem" description: Unauthorized "403": content: application/problem+json: examples: insufficient_scope: summary: Integration key's widgets level is below write value: code: integration_key.permission_denied detail: "insufficient permissions: requires widgets:write" instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden slug_not_allowed: summary: Key is restricted to widget slugs the target does not match value: code: integration_key.slug_invalid detail: key not allowed for this widget instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden schema: $ref: "#/components/schemas/Problem" description: Forbidden "404": content: application/problem+json: examples: widget.not_found: value: code: widget.not_found detail: widget not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found schema: $ref: "#/components/schemas/Problem" description: Not Found "422": content: application/problem+json: examples: widget.content_invalid: value: code: widget.content_invalid detail: value is required for progress widget template instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity schema: $ref: "#/components/schemas/Problem" description: Unprocessable Entity "429": content: application/problem+json: examples: quota_exceeded: summary: Free-tier monthly quota exhausted value: code: quota.exceeded detail: quota exceeded for widget_updates instance: /requests/9f86d081884c7d65 kind: widget_updates limit: 50 reset_at: "2026-08-01T00:00:00Z" status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests used: 50 rate_limit: summary: Per-client rate limit exceeded value: code: rate_limit.exceeded detail: rate limit exceeded instance: /requests/9f86d081884c7d65 retry_after_ms: 60000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests schema: $ref: "#/components/schemas/Problem" description: Too Many Requests "500": content: application/problem+json: examples: internal_server_error: value: detail: failed to update widget instance: /requests/9f86d081884c7d65 status: 500 title: Internal Server Error type: https://pushward.app/errors/internal-server-error schema: $ref: "#/components/schemas/Problem" description: Internal Server Error "503": content: application/problem+json: examples: service.unavailable: value: code: service.unavailable detail: service temporarily unavailable instance: /requests/9f86d081884c7d65 status: 503 title: Service Unavailable type: https://pushward.app/errors/service-unavailable schema: $ref: "#/components/schemas/Problem" description: Service Unavailable security: - bearer: [] summary: Update widget tags: - Widgets servers: - description: PushWard API url: https://api.pushward.app tags: - description: Server health check name: System - description: Authentication and account management name: Auth - description: Create, list, and manage trackable activities name: Activities - description: Register iOS devices for push notifications name: Devices - description: Scoped keys for external services (Home Assistant, IoT, CI/CD) name: Integration Keys - description: Share activities with other users via invite codes, direct grants, or slug patterns name: Permissions - description: In-app notification inbox with optional APNs push delivery name: Notifications - description: Transactional email channel (verified-recipient relay via AWS SES) name: Email - description: Server-driven iOS WidgetKit widgets (iOS 26+) name: Widgets - description: "Administer an organization with an org admin key (hlo_): its members, invites, audit log, device fleet, sending keys and routing, and read its plan and invoices" name: Organizations