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 AddRecipientRequest: additionalProperties: false properties: address: description: Address to register. A single-use confirmation email is sent to it. format: email maxLength: 254 minLength: 3 type: string label: description: Optional human label for the recipient. maxLength: 128 type: string required: - address 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 CreateOrgDomainInputBody: additionalProperties: false properties: domain: description: The domain, e.g. example.com maxLength: 255 minLength: 1 type: string required: - domain type: object CreateOrgInviteInputBody: additionalProperties: false properties: email: description: Mail the invite to this address instead of returning its code. The invite is then one-use, and the address becomes the member's label once they join. Not verified, and never how they sign in maxLength: 254 type: string expires_in_hours: description: Lifetime in hours (default 168) format: int64 maximum: 720 minimum: 1 type: integer max_uses: description: How many people may join with it (default 1) format: int64 maximum: 1000 minimum: 1 type: integer note: description: Who the invite is for, 1-100 characters maxLength: 400 type: string role: enum: - admin - billing - member - viewer type: string required: - role type: object CreateOrgKeyInputBody: additionalProperties: false properties: activity_slugs: description: Restrict the key to these activity slugs or patterns (trailing *) items: type: string type: - array - "null" expires_at: description: When the key stops working; omit for never format: date-time type: string name: maxLength: 256 minLength: 1 type: string permissions: $ref: "#/components/schemas/IntegrationKeyPermissionsInput" description: "Default: manage activities, schedule notifications, no widgets or emails. Emails only for a key not limited to groups and tags" target: $ref: "#/components/schemas/OrgKeyTargetInput" description: "Limit the key to these groups and tags: what it sends must target inside them, and it sees and changes only activities and widgets targeted inside them; omit for the whole organization. Set once, at creation." widget_slugs: description: Restrict the key to these widget slugs or patterns (trailing *) items: type: string type: - array - "null" required: - name type: object CreateOrgRouteInputBody: additionalProperties: false properties: allow_group_ids: items: type: string maxItems: 50 type: - array - "null" allow_tag_ids: items: type: string maxItems: 50 type: - array - "null" applies_to: enum: - activities - notifications - both - widgets type: string note: maxLength: 800 type: string slug_pattern: maxLength: 129 minLength: 1 type: string required: - slug_pattern - applies_to 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 CreatedOrgInviteItem: additionalProperties: false properties: code: description: "The invite code. Shown only in this response, and never for an invite with an email: that code is only in the mail." type: string created_at: format: date-time type: string email: description: The address the invite was mailed to; absent for a code-only invite, 30 days after the invite ended and once the member who joined with it left type: string expires_at: format: date-time type: string id: type: string max_uses: format: int64 type: integer note: type: - string - "null" redeemed_by: description: The user id of the first person who joined with the invite; absent until someone has type: string revoked_at: format: date-time type: - string - "null" role: enum: - admin - billing - member - viewer type: string uses: format: int64 type: integer required: - id - role - note - created_at - expires_at - max_uses - uses - revoked_at type: object DeviceItem: additionalProperties: false properties: app_version: type: string build_number: type: string can_receive_notifications: description: The device holds an APNs device token (an FCM token on Android) type: boolean can_start_live_activities: description: The device holds a push-to-start token (an FCM token on Android) type: boolean created_at: format: date-time type: string device_id: type: string device_model: description: Hardware identifier (e.g. iPhone17,1) type: string is_current: description: The device this request's session belongs to; false on every device for an integration key type: boolean last_active_at: format: date-time type: string live_activities_enabled: type: boolean locale: type: string name: description: User-assigned name; absent until the device is renamed type: string notifications_authorized: type: boolean os_version: type: string platform: enum: - ios - ipados - watchos - macos - android type: string timezone: type: string required: - device_id - can_receive_notifications - can_start_live_activities - is_current - created_at - last_active_at 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 EmailRecipient: additionalProperties: false properties: address: examples: - alerts@example.com type: string created_at: format: date-time readOnly: true type: string id: description: Server-assigned recipient ID. examples: - 7b1c... readOnly: true type: string label: examples: - Ops inbox type: string status: description: Derived verification state. enum: - pending - verified - unsubscribed readOnly: true type: string unsubscribed_at: format: date-time readOnly: true type: string verified_at: format: date-time readOnly: true type: string required: - id - address - 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 GetDeviceSubscriptionsOutputBody: additionalProperties: false properties: activity_ids: items: type: string type: - array - "null" items: items: type: string type: - array - "null" required: - items - activity_ids type: object GetSubscriptionStatusOutputBody: additionalProperties: false properties: is_subscribed: type: boolean required: - is_subscribed type: object GrantActivityPermissionInputBody: additionalProperties: false properties: grantee: $ref: "#/components/schemas/GranteeStruct" role: description: "Permission role: viewer (read-only) or editor (can update)" enum: - viewer - editor type: string required: - grantee type: object GrantPatternPermissionInputBody: additionalProperties: false properties: expires_in: format: int64 maximum: 604800 minimum: 60 type: integer max_uses: format: int64 minimum: 1 type: integer role: enum: - viewer - editor type: string slug_pattern: description: Slug pattern with trailing wildcard (e.g. argocd-*) maxLength: 129 minLength: 2 type: string required: - slug_pattern type: object Grantee: additionalProperties: false properties: pattern_link: $ref: "#/components/schemas/LinkGrantee" share_link: $ref: "#/components/schemas/LinkGrantee" type: enum: - user - share_link - pattern_link type: string user: $ref: "#/components/schemas/UserGrantee" required: - type type: object GranteeStruct: additionalProperties: false properties: expires_in: description: Expiry duration in seconds (60s to 7 days, default 24h) format: int64 maximum: 604800 minimum: 60 type: integer max_uses: description: Maximum redemptions for share_link format: int64 minimum: 1 type: integer type: description: "Grantee kind: a known user, or a redeemable share link" enum: - user - share_link type: string user_id: description: User ID (required when type=user) type: string required: - type 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 LinkGrantee: additionalProperties: false properties: code: description: Share code (only on create and roll responses) type: string expires_at: format: date-time type: string max_uses: format: int64 type: integer share_url: description: The link to send, carrying the code. Lists show it to the app only, not to integration keys. type: string use_count: format: int64 type: integer required: - use_count - expires_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 ListActivityPermissionsOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/Permission" type: - array - "null" required: - items type: object ListDevicesOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/DeviceItem" type: - array - "null" limit: description: Most devices the account's tier may register format: int64 type: integer required: - items - limit 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 ListOrgAuditEventsOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/OrgAuditEventItem" type: - array - "null" next_cursor: type: string required: - items type: object ListOrgDevicesOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/OrgDeviceItem" type: - array - "null" required: - items type: object ListOrgDomainsOutputBody: additionalProperties: false properties: domains: items: $ref: "#/components/schemas/OrgDomainItem" type: - array - "null" required: - domains type: object ListOrgGroupsOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/OrgGroupItem" type: - array - "null" required: - items type: object ListOrgInvitesOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/OrgInviteItem" type: - array - "null" next_cursor: description: Set when more invites follow type: string required: - items type: object ListOrgInvoicesOutputBody: additionalProperties: false properties: items: description: Newest first, at most 50 items: $ref: "#/components/schemas/OrgInvoice" type: - array - "null" required: - items type: object ListOrgMembersOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/OrgMemberItem" type: - array - "null" next_cursor: description: Set when more members follow type: string required: - items type: object ListOrgRoutesOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/OrgRouteItem" type: - array - "null" required: - items type: object ListOrgTagsOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/OrgTagItem" type: - array - "null" required: - items type: object ListOrgsOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/OrgItem" type: - array - "null" required: - items type: object ListPermissionsOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/Permission" type: - array - "null" required: - items type: object ListRecipientsOutputBody: additionalProperties: false properties: items: items: $ref: "#/components/schemas/EmailRecipient" type: - array - "null" required: - items 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 OIDCStruct: additionalProperties: false properties: client_id: description: Setting or changing it takes an owner maxLength: 512 minLength: 1 type: string client_secret: description: "Write-only: required when the connection is created or its issuer or client_id changes, omitted keeps the stored one" maxLength: 4096 minLength: 1 type: string issuer: description: https URL; its /.well-known/openid-configuration is read when it is set or changed. Setting or changing it takes an owner maxLength: 2048 minLength: 1 type: string required: - issuer - client_id type: object OnboardingSource: additionalProperties: false properties: docs_url: description: Setup guide on pushward.app. type: string icon: description: Service icon slug, as notification sources map to icons in the apps; pushward when no service icon fits. type: string id: description: Stable id; the apps localize the name of the ids they know. type: string name: description: English name, the fallback for an id the app does not know. type: string snippet: description: Setup snippet with the literal placeholder {{KEY}} where the app puts the integration key. type: string snippet_kind: description: How to render the snippet. enum: - shell - yaml - text type: string required: - id - name - icon - docs_url - snippet - snippet_kind type: object OnboardingState: additionalProperties: false properties: first_demo_at: description: First demo of any kind. format: date-time type: - string - "null" first_key_name: description: Name of the key that sent it. type: - string - "null" first_key_push_at: description: First successful push sent with an integration key. format: date-time type: - string - "null" first_key_push_kind: description: What that first push was. enum: - notification - activity - widget - scheduled type: - string - "null" first_key_push_source: description: Its notification source, when it was a notification that named one. type: - string - "null" first_sample_at: description: First POST /demo/sample. format: date-time type: - string - "null" follows_shared: description: The user follows at least one activity another person shared with them. type: boolean nudges_enabled: description: Whether the day-1 and day-3 setup reminders may be sent. type: boolean org_member: description: The user is a member of an organization. type: boolean sources: description: Ways to send a first real push, in display order. items: $ref: "#/components/schemas/OnboardingSource" type: - array - "null" use_case: description: The source id the user picked, or other. type: - string - "null" required: - first_sample_at - first_demo_at - first_key_push_at - first_key_push_kind - first_key_push_source - first_key_name - use_case - nudges_enabled - org_member - follows_shared - sources type: object OrgAuditEventItem: additionalProperties: false properties: action: type: string actor_kind: enum: - user - key - system type: string actor_nickname: type: - string - "null" actor_user_id: type: - string - "null" created_at: format: date-time type: string id: format: int64 type: integer ip: description: Shown to owners and admins only type: - string - "null" metadata: additionalProperties: {} type: object target_id: type: - string - "null" target_kind: type: - string - "null" required: - id - actor_kind - actor_user_id - actor_nickname - action - target_kind - target_id - metadata - ip - created_at type: object OrgBillingItem: additionalProperties: false properties: can_manage: description: The caller may check out, change seats, cancel or resume the plan, update its payment method and read its invoices type: boolean delete_after: description: When a restricted organization is deleted, if automatic deletion is on; absent while a paused or trialing plan may charge again format: date-time type: string member_limit: format: int64 type: integer members: format: int64 type: integer members_over_seats: description: Members without the Plan because the paid seats ran out (owners always have it); they get it when seats are added format: int64 type: integer min_seats: format: int64 type: integer paddle: $ref: "#/components/schemas/OrgBillingPaddle" payment_method_update_needed: description: The member who pays has left (or is no longer an owner or billing member) and nobody has updated the payment method since type: boolean plan: description: comp, trial, team or enterprise type: string prices: description: The Team prices; one that cannot be read from Paddle is left out items: $ref: "#/components/schemas/OrgBillingPrice" type: - array - "null" restricted_at: format: date-time type: string seats: description: Seats paid for (team and enterprise) format: int64 type: integer status: description: restricted once a trial has ended, even before the lifecycle sweep records it enum: - active - restricted type: string subscription: $ref: "#/components/schemas/OrgBillingSubscription" trial_ends_at: description: Only while the plan is trial format: date-time type: string required: - plan - status - members - member_limit - min_seats - prices - paddle - can_manage type: object OrgBillingLinkOutputBody: additionalProperties: false properties: url: description: Open it at once; it carries a temporary token and expires type: string required: - url type: object OrgBillingPaddle: additionalProperties: false properties: client_token: type: string environment: enum: - sandbox - production type: string required: - environment - client_token type: object OrgBillingPrice: additionalProperties: false properties: currency: description: ISO 4217 code type: string interval: enum: - year - month type: string price_id: type: string unit_amount_cents: description: Per seat per interval, in the currency's lowest denomination format: int64 type: integer required: - interval - price_id - unit_amount_cents - currency type: object OrgBillingScheduledChange: additionalProperties: false properties: action: enum: - cancel - pause - resume type: string effective_at: format: date-time type: string required: - action - effective_at type: object OrgBillingSubscription: additionalProperties: false properties: currency: type: string current_period_ends_at: description: Absent when Paddle has no current period (paused, canceled) format: date-time type: string interval: enum: - year - month type: string price_id: type: string scheduled_change: $ref: "#/components/schemas/OrgBillingScheduledChange" seats: format: int64 type: integer status: enum: - active - trialing - past_due - paused - canceled type: string unit_amount_cents: description: Per seat per interval; absent when the price cannot be read from Paddle format: int64 type: integer required: - status - interval - seats type: object OrgDeviceItem: additionalProperties: false properties: app_version: type: string build_number: type: string can_receive_notifications: type: boolean can_start_live_activities: type: boolean created_at: format: date-time type: string delivery: description: The organization's notifications and Live Activities reach this device; its owner can switch that off type: boolean device_id: type: string device_model: type: string last_active_at: description: Only on a member's own devices (my-devices); never returned on the public routes format: date-time type: string live_activities_enabled: type: boolean name: description: User-assigned device name type: string nickname: description: The member's name type: - string - "null" notifications_authorized: type: boolean os_version: type: string platform: enum: - ios - ipados - watchos - macos - android type: string tag_ids: description: The organization's tags on this device items: type: string type: - array - "null" user_id: type: string required: - user_id - nickname - device_id - can_receive_notifications - can_start_live_activities - delivery - tag_ids - created_at type: object OrgDeviceRefInput: additionalProperties: false properties: device_id: maxLength: 256 minLength: 1 type: string user_id: type: string required: - user_id - device_id type: object OrgDomainItem: additionalProperties: false properties: created_at: format: date-time type: string domain: description: Lowercase ASCII; an internationalized domain in punycode type: string id: type: string last_checked_at: description: When the record was last looked up and answered format: date-time type: string status: enum: - pending - verified type: string txt_name: description: The DNS name of the TXT record that verifies the domain type: string txt_value: description: The TXT record's value type: string verified_at: format: date-time type: string required: - id - domain - status - txt_name - txt_value - created_at type: object OrgGroupItem: additionalProperties: false properties: created_at: format: date-time type: string description: type: string id: type: string member_ids: description: User ids of the members in the group items: type: string type: - array - "null" name: type: string required: - id - name - member_ids - created_at type: object OrgInviteItem: additionalProperties: false properties: created_at: format: date-time type: string email: description: The address the invite was mailed to; absent for a code-only invite, 30 days after the invite ended and once the member who joined with it left type: string expires_at: format: date-time type: string id: type: string max_uses: format: int64 type: integer note: type: - string - "null" redeemed_by: description: The user id of the first person who joined with the invite; absent until someone has type: string revoked_at: format: date-time type: - string - "null" role: enum: - admin - billing - member - viewer type: string uses: format: int64 type: integer required: - id - role - note - created_at - expires_at - max_uses - uses - revoked_at type: object OrgInvoice: additionalProperties: false properties: billed_at: format: date-time type: string currency: description: ISO 4217 code type: string invoice_number: type: string status: enum: - completed type: string total_cents: description: The invoice total after discount and tax, before account credit, in the currency's lowest denomination format: int64 type: integer transaction_id: type: string required: - transaction_id - total_cents - currency - status type: object OrgItem: additionalProperties: false properties: created_at: format: date-time type: string delete_after: description: When a restricted organization is deleted, if automatic deletion is on; absent while a paused or trialing plan may charge again format: date-time type: string id: type: string limits: $ref: "#/components/schemas/OrgLimitsItem" description: The organization's caps; for owners, admins and billing members, on the read of one organization only member_count: format: int64 type: integer member_limit: description: Most members the organization may have format: int64 type: integer name: type: string plan: description: comp (complimentary), trial, team or enterprise type: string role: description: The caller's role enum: - owner - admin - billing - member - viewer type: string seats: description: Seats a team or enterprise organization pays for format: int64 type: integer slug: type: string status: enum: - active - restricted type: string trial_ends_at: description: When a trial ends; only while the plan is trial format: date-time type: string required: - id - name - slug - role - plan - status - member_count - member_limit - created_at type: object OrgKeyTargetInput: additionalProperties: false properties: group_ids: items: type: string maxItems: 50 type: - array - "null" tag_ids: items: type: string maxItems: 50 type: - array - "null" type: object OrgLimitsItem: additionalProperties: false properties: admin_keys: description: Most org admin keys (hlo_) format: int64 type: integer emails_per_month: description: Emails the organization's keys send per UTC month while it is active format: int64 type: integer groups: format: int64 type: integer integration_keys: description: Most of the organization's keys that send (hlk_) format: int64 type: integer members: description: Most members format: int64 type: integer notifications_per_day: description: Notifications the organization's keys send per UTC day while it is active format: int64 type: integer routes: description: Most routing rules format: int64 type: integer tags: format: int64 type: integer widgets: description: Most widgets the organization's keys keep format: int64 type: integer required: - members - integration_keys - admin_keys - groups - tags - routes - widgets - notifications_per_day - emails_per_month type: object OrgMemberItem: additionalProperties: false properties: email: description: "The address an owner or admin gave the member, or the one their invite was mailed to: an unverified label, never how they sign in. Absent when there is none, and for callers whose role is member or billing" type: string joined_at: format: date-time type: string nickname: type: - string - "null" role: enum: - owner - admin - billing - member - viewer type: string user_id: type: string required: - user_id - nickname - role - joined_at type: object OrgNamedInputBody: additionalProperties: false properties: description: maxLength: 800 type: string name: description: Lowercase letters, digits, - and _ maxLength: 40 minLength: 1 type: string required: - name type: object OrgNamedPatch: additionalProperties: false properties: description: description: An empty string clears it maxLength: 800 type: string name: maxLength: 40 minLength: 1 type: string type: object OrgRouteItem: additionalProperties: false properties: allow_group_ids: description: Members of these groups receive what the rule matches items: type: string type: - array - "null" allow_tag_ids: description: Devices with these tags receive what the rule matches; both lists empty reaches nobody items: type: string type: - array - "null" applies_to: description: both is activities and notifications; widgets has rules of its own enum: - activities - notifications - both - widgets type: string created_at: format: date-time type: string id: type: string note: type: string position: description: Rules are tried in position order; the first that matches decides format: int64 type: integer slug_pattern: description: "'*', a slug, or a slug prefix ending in '*'. Activities and widgets match their slug; notifications their activity_slug, else their source" type: string updated_at: format: date-time type: string required: - id - position - slug_pattern - applies_to - allow_group_ids - allow_tag_ids - created_at - updated_at type: object OrgSSOCertificateItem: additionalProperties: false properties: not_after: description: Sign-ins signed with it fail after this format: date-time type: string sha256_fingerprint: description: Colon-separated upper case hex type: string subject: type: string required: - sha256_fingerprint - subject - not_after type: object OrgSSOConnectionItem: additionalProperties: false properties: configured: type: boolean enabled: description: Whether people sign in with it type: boolean oidc: $ref: "#/components/schemas/OrgSSOOIDCItem" protocol: enum: - oidc - saml type: string redirect_uri: description: The redirect URI to register at an OIDC identity provider type: string require_sso: description: Console sessions of members other than owners must have signed in with it type: boolean saml: $ref: "#/components/schemas/OrgSSOSAMLItem" description: The service provider values to register at a SAML identity provider, and a SAML connection's identity provider updated_at: format: date-time type: string required: - configured - redirect_uri type: object OrgSSOOIDCItem: additionalProperties: false properties: client_id: type: string client_secret_set: type: boolean issuer: type: string required: - issuer - client_id - client_secret_set type: object OrgSSOSAMLItem: additionalProperties: false properties: acs_url: description: The assertion consumer service URL (HTTP-POST) to register at the identity provider type: string idp_certificates: description: "A SAML connection only: the signing certificates" items: $ref: "#/components/schemas/OrgSSOCertificateItem" type: - array - "null" idp_entity_id: description: A SAML connection only type: string idp_metadata_url: description: Where the metadata was read from; absent when it was uploaded type: string idp_sso_url: description: "A SAML connection only: the HTTP-Redirect SingleSignOnService" type: string sp_entity_id: description: The entity ID (audience) to register at the identity provider type: string sp_metadata_url: description: This service provider's metadata, once the connection is SAML type: string required: - sp_entity_id - acs_url - sp_metadata_url type: object OrgTagItem: additionalProperties: false properties: created_at: format: date-time type: string description: type: string device_count: description: How many member devices carry the tag format: int64 type: integer id: type: string name: type: string required: - id - name - device_count - created_at 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 Permission: additionalProperties: false properties: activity_slug: description: Activity slug (null for pattern-scoped permissions) type: string created_at: format: date-time type: string grantee: $ref: "#/components/schemas/Grantee" description: Who the permission is granted to id: description: Opaque permission ID (table-prefixed) type: string owner_id: description: User ID of the activity/pattern owner type: string owner_kind: description: Whether the owner is a person or an organization enum: - person - org type: string owner_nickname: description: Display name of the owner; an organization's name for its shares type: string role: description: "Permission role: viewer or editor" type: string slug_pattern: description: Slug pattern (null for single-activity permissions) type: string required: - id - role - grantee - owner_id - created_at 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 PutOrgSSOConnectionInputBody: additionalProperties: false properties: enabled: description: Needs a verified domain type: boolean oidc: $ref: "#/components/schemas/OIDCStruct" description: With protocol oidc only protocol: enum: - oidc - saml type: string require_sso: description: Console sessions of members other than owners must sign in with it type: boolean saml: $ref: "#/components/schemas/SAMLStruct" description: "With protocol saml only: idp_metadata_xml or idp_metadata_url, or neither to keep the stored identity provider (one is required when the connection is created or switched to SAML). A new protocol, entity ID, SSO URL or signing certificate takes an owner" required: - protocol - enabled - require_sso type: object RecipientPathInputBody: additionalProperties: false 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 ReorderOrgRoutesInputBody: additionalProperties: false properties: route_ids: description: Every rule's id, in the new order items: type: string maxItems: 100 type: - array - "null" required: - route_ids 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 SAMLStruct: additionalProperties: false properties: idp_metadata_url: description: An https URL the metadata is read from once, on this save maxLength: 2048 minLength: 1 type: string idp_metadata_xml: description: The identity provider's metadata (an EntityDescriptor), instead of idp_metadata_url maxLength: 524288 minLength: 1 type: string 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 SetOrgDeviceTagsInputBody: additionalProperties: false properties: tag_ids: description: Every tag of the device; the list replaces the current one items: type: string maxItems: 50 type: - array - "null" required: - tag_ids type: object SetOrgGroupMembersInputBody: additionalProperties: false properties: user_ids: description: Every member of the group; the list replaces the current one items: type: string maxItems: 1000 type: - array - "null" required: - user_ids 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 UpdateDeviceInputBody: additionalProperties: false properties: name: description: New name, 1-64 characters; null removes it type: - string - "null" 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 UpdateNicknameInputBody: additionalProperties: false properties: nickname: description: Display name (null or empty to clear) maxLength: 50 type: string type: object UpdateOnboardingBody: additionalProperties: false properties: explored_before_signin: description: The user looked around before signing in. Only ever goes from false to true. type: boolean nudges_enabled: description: Allow (true) or stop (false) the setup reminders. type: boolean played_story: description: The user played the onboarding story. Only ever goes from false to true. type: boolean use_case: description: A sources id, or other. maxLength: 64 type: string type: object UpdateOrgInputBody: additionalProperties: false properties: name: description: 1-50 characters maxLength: 200 minLength: 1 type: string required: - name type: object UpdateOrgKeyInputBody: additionalProperties: false properties: activity_slugs: description: Restrict the key to these activity slugs or patterns (trailing *); an empty list or null removes the restriction items: type: string type: - array - "null" expires_at: description: When the key stops working, in the future; null removes the expiry format: date-time type: - string - "null" name: maxLength: 256 minLength: 1 type: string permissions: $ref: "#/components/schemas/IntegrationKeyPermissionsInput" description: Levels to change; omitted resources keep theirs. Emails only for a key not limited to groups and tags widget_slugs: description: Restrict the key to these widget slugs or patterns (trailing *); an empty list or null removes the restriction items: type: string type: - array - "null" type: object UpdateOrgMemberInputBody: additionalProperties: false properties: email: description: A label for the member, an email address up to 254 characters; null removes it. It is not verified and never how they sign in. At least one of role and email is required type: - string - "null" role: enum: - owner - admin - billing - member - viewer type: string type: object UpdateOrgRouteInputBody: additionalProperties: false properties: allow_group_ids: items: type: string maxItems: 50 type: array allow_tag_ids: items: type: string maxItems: 50 type: array applies_to: enum: - activities - notifications - both - widgets type: string note: description: An empty string clears it maxLength: 800 type: string slug_pattern: maxLength: 129 minLength: 1 type: string type: object UpdateOrgTagDevicesInputBody: additionalProperties: false properties: add: items: $ref: "#/components/schemas/OrgDeviceRefInput" maxItems: 500 type: - array - "null" remove: items: $ref: "#/components/schemas/OrgDeviceRefInput" maxItems: 500 type: - array - "null" type: object UpdatePermissionInputBody: additionalProperties: false properties: role: enum: - viewer - editor type: string required: - role 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 UserGrantee: additionalProperties: false properties: id: type: string nickname: type: string required: - id 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 /activities/{slug}/permissions: get: operationId: listActivityPermissions parameters: - in: path name: slug required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListActivityPermissionsOutputBody" 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: requires_sharing_read: value: code: integration_key.permission_denied detail: "insufficient permissions: requires sharing:read" 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 "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: List permissions on activity tags: - Permissions post: operationId: grantActivityPermission parameters: - in: path name: slug required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/GrantActivityPermissionInputBody" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/Permission" description: Created "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: requires_sharing_manage: value: code: integration_key.permission_denied detail: "insufficient permissions: requires sharing: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 "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: Grant permission on activity tags: - Permissions /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 /app/onboarding: get: description: Returns the account's activation state (sample, demo, first push sent with an integration key) and the setup sources, each with a snippet holding the literal {{KEY}} where the app puts the key. operationId: getOnboarding responses: "200": content: application/json: schema: $ref: "#/components/schemas/OnboardingState" 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: Get onboarding state tags: - System patch: description: "Records what the app learned during onboarding: the source picked (use_case, a sources id or other; 422 otherwise), explored_before_signin and played_story (they only ever turn on) and nudges_enabled. Every field is optional. Returns the GET body." operationId: updateOnboarding requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateOnboardingBody" responses: "200": content: application/json: schema: $ref: "#/components/schemas/OnboardingState" 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_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: Update onboarding state 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 patch: operationId: updateMe requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateNicknameInputBody" required: true responses: "204": description: No Content "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: 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: Update current user profile tags: - Auth /devices: get: description: The account's registered devices, most recently active first, with the tier's device cap. Push tokens are not returned. operationId: listDevices responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListDevicesOutputBody" 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: requires_devices_read: value: code: integration_key.permission_denied detail: "insufficient permissions: requires devices: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 devices tags: - Devices /devices/{device_id}: delete: description: Removes another of the account's devices with its Live Activity subscriptions and widget push token, and signs it out. The device making the request cannot remove itself (409 device.is_current); use POST /auth/logout. An integration key has no device and may remove any of them. operationId: deleteDevice parameters: - in: path name: device_id required: true schema: type: string responses: "204": description: No Content "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: requires_devices_manage: value: code: integration_key.permission_denied detail: "insufficient permissions: requires devices: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: device.not_found: value: code: device.not_found detail: device 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: device.is_current: value: code: device.is_current detail: cannot remove the device making this request; sign out instead 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 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: Remove device tags: - Devices get: description: One of the account's devices, as GET /devices lists it. operationId: getDevice parameters: - in: path name: device_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/DeviceItem" 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: requires_devices_read: value: code: integration_key.permission_denied detail: "insufficient permissions: requires devices:read" 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: device.not_found: value: code: device.not_found detail: device 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: Get device tags: - Devices patch: operationId: updateDevice parameters: - in: path name: device_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateDeviceInputBody" required: true responses: "204": description: No Content "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: requires_devices_manage: value: code: integration_key.permission_denied detail: "insufficient permissions: requires devices: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: device.not_found: value: code: device.not_found detail: device 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: 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: Rename device tags: - Devices /devices/{device_id}/subscriptions: get: operationId: listSubscriptions parameters: - in: path name: device_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/GetDeviceSubscriptionsOutputBody" 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: requires_devices_read: value: code: integration_key.permission_denied detail: "insufficient permissions: requires devices: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: 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: List device subscriptions tags: - Devices /devices/{device_id}/subscriptions/{slug}: delete: operationId: unsubscribeDevice parameters: - in: path name: device_id required: true schema: type: string - in: path name: slug 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_devices_manage: value: code: integration_key.permission_denied detail: "insufficient permissions: requires devices: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: Unsubscribe device from activity tags: - Devices get: operationId: getDeviceSubscription parameters: - in: path name: device_id required: true schema: type: string - in: path name: slug required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/GetSubscriptionStatusOutputBody" 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: requires_devices_read: value: code: integration_key.permission_denied detail: "insufficient permissions: requires devices: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: 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: Get device subscription status tags: - Devices post: operationId: subscribeDevice parameters: - in: path name: device_id required: true schema: type: string - in: path name: slug 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_devices_manage: value: code: integration_key.permission_denied detail: "insufficient permissions: requires devices: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 "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: Subscribe device to activity tags: - Devices /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 /emails/recipients: get: operationId: listEmailRecipients responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListRecipientsOutputBody" 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: 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 email recipients tags: - Email post: description: Registers a recipient address and sends a single-use double-opt-in confirmation email to it. The address is sendable only after the link is confirmed. operationId: addEmailRecipient requestBody: content: application/json: schema: $ref: "#/components/schemas/AddRecipientRequest" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/EmailRecipient" description: Created "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: 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 "409": content: application/problem+json: examples: email.recipient_exists: value: code: email.recipient_exists detail: address is already registered for this account 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 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 "502": content: application/problem+json: examples: email.send_failed: value: code: email.send_failed detail: failed to send confirmation email; try again instance: /requests/9f86d081884c7d65 status: 502 title: Bad Gateway type: https://pushward.app/errors/bad-gateway schema: $ref: "#/components/schemas/Problem" description: Bad Gateway "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: Register email recipient tags: - Email /emails/recipients/{id}: delete: operationId: deleteEmailRecipient parameters: - description: Recipient ID in: path name: id required: true schema: description: Recipient ID 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 "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: Delete email recipient tags: - Email /emails/recipients/{id}/resend: post: description: Re-issues a fresh single-use confirmation token and resends the double-opt-in email to a still-pending recipient. operationId: resendEmailVerification parameters: - description: Recipient ID in: path name: id required: true schema: description: Recipient ID type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/RecipientPathInputBody" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/EmailRecipient" 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: 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 "409": content: application/problem+json: examples: email.recipient_exists: value: code: email.recipient_exists detail: address is already verified 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 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 "502": content: application/problem+json: examples: email.send_failed: value: code: email.send_failed detail: failed to send confirmation email; try again instance: /requests/9f86d081884c7d65 status: 502 title: Bad Gateway type: https://pushward.app/errors/bad-gateway schema: $ref: "#/components/schemas/Problem" description: Bad Gateway "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: Resend recipient confirmation 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 /orgs: get: description: Takes an org admin key (hlo_) at level read or manage. operationId: listOrgs responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListOrgsOutputBody" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: List my organizations tags: - Organizations /orgs/{org_id}: get: description: Takes an org admin key (hlo_) at level read or manage. operationId: getOrg parameters: - in: path name: org_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgItem" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: Get an organization tags: - Organizations patch: description: Takes an org admin key (hlo_) at level manage. operationId: updateOrg parameters: - in: path name: org_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateOrgInputBody" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgItem" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "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: Rename an organization tags: - Organizations /orgs/{org_id}/audit-events: get: description: Takes an org admin key (hlo_) at level read or manage. operationId: listOrgAuditEvents parameters: - in: path name: org_id required: true schema: type: string - explode: false in: query name: cursor schema: maxLength: 512 type: string - explode: false in: query name: limit schema: default: 50 format: int64 maximum: 200 minimum: 1 type: integer responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListOrgAuditEventsOutputBody" 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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "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: Organization audit log tags: - Organizations /orgs/{org_id}/audit-events/export: get: description: "The events created in [from, to) as CSV, oldest first: id, time, actor_kind, actor_user_id, key_id, key_name, action, target_kind, target_id, ip, user_agent, metadata (compact JSON). ip and user_agent are filled for owners and admins only. Cells a spreadsheet would read as a formula start with a single quote. Enterprise plan only; a few exports a minute per organization. Takes an org admin key (hlo_) at level read or manage." operationId: exportOrgAuditEvents parameters: - in: path name: org_id required: true schema: type: string - description: RFC 3339, inclusive; default 365 days before to explode: false in: query name: from schema: description: RFC 3339, inclusive; default 365 days before to format: date-time type: string - description: RFC 3339, exclusive; default now explode: false in: query name: to schema: description: RFC 3339, exclusive; default now format: date-time type: string responses: "200": content: text/csv: schema: type: string description: The events as CSV headers: Content-Disposition: schema: description: attachment; filename="pushward-audit---.csv" type: string Content-Type: schema: type: string "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: enterprise_required: summary: The organization is not on the Enterprise plan value: code: org.enterprise_required detail: This needs the Enterprise plan. instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden level_too_low: summary: The caller's role does not read the audit log value: code: org.permission_denied detail: your role in this organization does not allow this 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: enterprise_disabled: summary: Enterprise features are off on this server value: code: enterprise.disabled detail: enterprise features are not available instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found org_not_found: summary: No such organization, or the caller is not in it value: code: org.not_found detail: organization 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: org.audit_range_invalid: value: code: org.audit_range_invalid detail: from must not be after to, and the range must be at most 366 days 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: Export the organization audit log tags: - Organizations /orgs/{org_id}/billing: get: description: Takes an org admin key (hlo_) at level read or manage. operationId: getOrgBilling parameters: - in: path name: org_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgBillingItem" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: Get an organization's plan and billing tags: - Organizations /orgs/{org_id}/billing/invoices: get: description: Takes an org admin key (hlo_) at level read or manage. operationId: listOrgInvoices parameters: - in: path name: org_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListOrgInvoicesOutputBody" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "502": content: application/problem+json: examples: billing.provider_error: value: code: billing.provider_error detail: the payment provider refused the request instance: /requests/9f86d081884c7d65 status: 502 title: Bad Gateway type: https://pushward.app/errors/bad-gateway schema: $ref: "#/components/schemas/Problem" description: Bad Gateway "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 the plan's paid invoices tags: - Organizations /orgs/{org_id}/billing/invoices/{transaction_id}/pdf: get: description: Takes an org admin key (hlo_) at level read or manage. operationId: getOrgInvoicePdf parameters: - in: path name: org_id required: true schema: type: string - in: path name: transaction_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgBillingLinkOutputBody" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "502": content: application/problem+json: examples: billing.provider_error: value: code: billing.provider_error detail: the payment provider refused the request instance: /requests/9f86d081884c7d65 status: 502 title: Bad Gateway type: https://pushward.app/errors/bad-gateway schema: $ref: "#/components/schemas/Problem" description: Bad Gateway "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 a link to an invoice PDF tags: - Organizations /orgs/{org_id}/devices: get: description: Takes an org admin key (hlo_) at level read or manage. operationId: listOrgDevices parameters: - in: path name: org_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListOrgDevicesOutputBody" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: List the members' devices tags: - Organizations /orgs/{org_id}/domains: get: description: The domains the organization claims, each with the TXT record that verifies it. Enterprise plan only; owners and admins. Takes an org admin key (hlo_) at level read or manage. operationId: listOrgDomains parameters: - in: path name: org_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListOrgDomainsOutputBody" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: enterprise_required: summary: The organization is not on the Enterprise plan value: code: org.enterprise_required detail: This needs the Enterprise plan. instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden level_too_low: summary: Not an owner or admin, or a read key on a write value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden sso_required: summary: The organization requires a single sign-on console session value: code: org.sso_required detail: This organization requires signing in with single sign-on. 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: enterprise_disabled: summary: Enterprise features are off on this server value: code: enterprise.disabled detail: enterprise features are not available instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found org_not_found: summary: No such organization, or the caller is not in it value: code: org.not_found detail: organization 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: List the organization's email domains tags: - Organizations post: description: "Pending until verified: publish the TXT record txt_name with the value txt_value, then verify. At most 20 per organization. Enterprise plan only; owners and admins. Takes an org admin key (hlo_) at level manage." operationId: createOrgDomain parameters: - in: path name: org_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateOrgDomainInputBody" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/OrgDomainItem" description: Created "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: enterprise_required: summary: The organization is not on the Enterprise plan value: code: org.enterprise_required detail: This needs the Enterprise plan. instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden level_too_low: summary: Not an owner or admin, or a read key on a write value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden sso_required: summary: The organization requires a single sign-on console session value: code: org.sso_required detail: This organization requires signing in with single sign-on. 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: enterprise_disabled: summary: Enterprise features are off on this server value: code: enterprise.disabled detail: enterprise features are not available instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found org_not_found: summary: No such organization, or the caller is not in it value: code: org.not_found detail: organization 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: domain_exists: summary: The organization already has the domain value: code: org.domain_exists detail: the organization already has this domain instance: /requests/9f86d081884c7d65 status: 409 title: Conflict type: https://pushward.app/errors/conflict domain_limit: summary: The organization has 20 domains value: code: org.domain_limit detail: an organization has at most 20 domains; remove one first 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: org.domain_invalid: value: code: org.domain_invalid detail: "the domain must be a hostname like example.com: not an IP address and not a public suffix like com or co.uk" 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: Add an email domain tags: - Organizations /orgs/{org_id}/domains/{domain_id}: delete: description: Refused for the last verified domain while single sign-on is on. Enterprise plan only; owners and admins. Takes an org admin key (hlo_) at level manage. operationId: deleteOrgDomain parameters: - in: path name: org_id required: true schema: type: string - in: path name: domain_id required: true schema: type: string responses: "204": description: No Content "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: enterprise_required: summary: The organization is not on the Enterprise plan value: code: org.enterprise_required detail: This needs the Enterprise plan. instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden level_too_low: summary: Not an owner or admin, or a read key on a write value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden sso_required: summary: The organization requires a single sign-on console session value: code: org.sso_required detail: This organization requires signing in with single sign-on. 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: enterprise_disabled: summary: Enterprise features are off on this server value: code: enterprise.disabled detail: enterprise features are not available instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found org_not_found: summary: No such organization, or the caller is not in it value: code: org.not_found detail: organization 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: org.sso_needs_domain: value: code: org.sso_needs_domain detail: single sign-on is on and this is the organization's last verified domain; turn single sign-on off first instance: /requests/9f86d081884c7d65 status: 409 title: Conflict type: https://pushward.app/errors/conflict schema: $ref: "#/components/schemas/Problem" description: Conflict "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: Remove an email domain tags: - Organizations /orgs/{org_id}/domains/{domain_id}/verify: post: description: "Looks the domain's TXT record up. A domain is verified by one organization at most: the first to verify it. Verified domains are checked daily and lapse after seven missed checks in a row. Enterprise plan only; owners and admins. Takes an org admin key (hlo_) at level manage." operationId: verifyOrgDomain parameters: - in: path name: org_id required: true schema: type: string - in: path name: domain_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgDomainItem" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: enterprise_required: summary: The organization is not on the Enterprise plan value: code: org.enterprise_required detail: This needs the Enterprise plan. instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden level_too_low: summary: Not an owner or admin, or a read key on a write value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden sso_required: summary: The organization requires a single sign-on console session value: code: org.sso_required detail: This organization requires signing in with single sign-on. 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: domain_not_found: summary: No such domain value: code: org.domain_not_found detail: the organization has no such domain instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found enterprise_disabled: summary: Enterprise features are off on this server value: code: enterprise.disabled detail: enterprise features are not available instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found org_not_found: summary: No such organization, or the caller is not in it value: code: org.not_found detail: organization 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: org.domain_taken: value: code: org.domain_taken detail: another organization has already verified this domain 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: org.domain_not_verified: value: code: org.domain_not_verified detail: The TXT record was not found yet. DNS changes can take a while to appear. 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: Verify an email domain tags: - Organizations /orgs/{org_id}/groups: get: description: Takes an org admin key (hlo_) at level read or manage. operationId: listOrgGroups parameters: - in: path name: org_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListOrgGroupsOutputBody" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: List the organization's member groups tags: - Organizations post: description: Takes an org admin key (hlo_) at level manage. operationId: createOrgGroup parameters: - in: path name: org_id required: true schema: type: string - description: "Identifies this create across retries, so a repeated request does not make a second one. Use a new random value for each create: a request repeating a value gets the group or tag the first attempt made, whatever its body. A value applies per caller (each org admin key, or the signed-in user) for as long as that group or tag exists. Printable ASCII without spaces." in: header name: Idempotency-Key schema: description: "Identifies this create across retries, so a repeated request does not make a second one. Use a new random value for each create: a request repeating a value gets the group or tag the first attempt made, whatever its body. A value applies per caller (each org admin key, or the signed-in user) for as long as that group or tag exists. Printable ASCII without spaces." maxLength: 128 pattern: ^[!-~]+$ type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/OrgNamedInputBody" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/OrgGroupItem" description: Created "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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "409": content: application/problem+json: examples: name_taken: summary: The name is already used in this organization value: code: org.name_taken detail: that name is already used in this organization instance: /requests/9f86d081884c7d65 status: 409 title: Conflict type: https://pushward.app/errors/conflict routing_limit: summary: The organization reached its limit for these value: code: org.routing_limit detail: this organization has reached its limit for these 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 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: Create a member group tags: - Organizations /orgs/{org_id}/groups/{group_id}: delete: description: Takes an org admin key (hlo_) at level manage. operationId: deleteOrgGroup parameters: - in: path name: org_id required: true schema: type: string - in: path name: group_id required: true schema: type: string responses: "204": description: No Content "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: Delete a member group tags: - Organizations get: description: Takes an org admin key (hlo_) at level read or manage. operationId: getOrgGroup parameters: - in: path name: org_id required: true schema: type: string - in: path name: group_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgGroupItem" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: Get a member group tags: - Organizations patch: description: Takes an org admin key (hlo_) at level manage. operationId: updateOrgGroup parameters: - in: path name: org_id required: true schema: type: string - in: path name: group_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/OrgNamedPatch" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgGroupItem" 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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "409": content: application/problem+json: examples: name_taken: summary: The name is already used in this organization value: code: org.name_taken detail: that name is already used in this organization 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 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: Rename or describe a member group tags: - Organizations /orgs/{org_id}/groups/{group_id}/members: put: description: Takes an org admin key (hlo_) at level manage. operationId: setOrgGroupMembers parameters: - in: path name: org_id required: true schema: type: string - in: path name: group_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/SetOrgGroupMembersInputBody" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgGroupItem" 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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "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: Set a group's members tags: - Organizations /orgs/{org_id}/invites: get: description: Newest first, revoked and expired ones included; next_cursor is set when more follow. Takes an org admin key (hlo_) at level manage. operationId: listOrgInvites parameters: - in: path name: org_id required: true schema: type: string - description: next_cursor of the previous page explode: false in: query name: cursor schema: description: next_cursor of the previous page maxLength: 512 type: string - explode: false in: query name: limit schema: default: 1000 format: int64 maximum: 1000 minimum: 1 type: integer responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListOrgInvitesOutputBody" 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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "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: List invites tags: - Organizations post: description: Without email the response carries the code to pass on. With email the invite is one-use and mailed to the address with a link to the console's join page, and the code is never returned; an address a member or open invite of the organization already has is 409 org.member_email_taken, open email invites are capped at the free member slots, one address gets at most 5 invites a day and an organization sends at most twice its member limit a day, revoked invites included (429 org.invite_email_rate_limited), and an address that bounced or unsubscribed from the organization's mail is 422 email.recipient_suppressed. A failed send revokes the invite (502 email.send_failed). Takes an org admin key (hlo_) at level manage. operationId: createOrgInvite parameters: - in: path name: org_id required: true schema: type: string - description: "Identifies this create across retries, so a repeated request does not make or mail a second invite. Use a new random value for each create: a request repeating a value gets the invite the first attempt made, whatever its body, without its code and with no mail sent. A value applies per caller (each org admin key, or the signed-in user) until that invite is revoked or expires. Printable ASCII without spaces." in: header name: Idempotency-Key schema: description: "Identifies this create across retries, so a repeated request does not make or mail a second invite. Use a new random value for each create: a request repeating a value gets the invite the first attempt made, whatever its body, without its code and with no mail sent. A value applies per caller (each org admin key, or the signed-in user) until that invite is revoked or expires. Printable ASCII without spaces." maxLength: 128 pattern: ^[!-~]+$ type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateOrgInviteInputBody" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/CreatedOrgInviteItem" description: Created "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "409": content: application/problem+json: examples: member_email_taken: summary: A member or open invite already has the address value: code: org.member_email_taken detail: a member or an open invite of this organization already has this email address instance: /requests/9f86d081884c7d65 status: 409 title: Conflict type: https://pushward.app/errors/conflict member_limit: summary: No member slot left for the invite value: code: org.member_limit detail: this organization has reached its limit of 25 members 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: email_invalid: summary: Not an email address value: code: email.invalid detail: email must be a valid email address instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity max_uses_invalid: summary: An email invite with more than one use value: code: org.invite_max_uses_invalid detail: max_uses must be 1 or left out for an invite with an email instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity recipient_suppressed: summary: The address bounced or unsubscribed value: code: email.recipient_suppressed detail: this address can't receive email from this organization (it bounced, was marked as spam or unsubscribed) 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: address_limit: summary: The address got its most invites today value: code: org.invite_email_rate_limited detail: this address got too many invites today; try again later instance: /requests/9f86d081884c7d65 retry_after_ms: 3600000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests org_limit: summary: The organization mailed its most invites today value: code: org.invite_email_rate_limited detail: this organization mailed too many invites today; try again later instance: /requests/9f86d081884c7d65 retry_after_ms: 3600000 status: 429 title: Too Many Requests type: https://pushward.app/errors/too-many-requests rate_limit: summary: Per-client or per-organization 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 "502": content: application/problem+json: examples: email.send_failed: value: code: email.send_failed detail: failed to send the invite email; try again instance: /requests/9f86d081884c7d65 status: 502 title: Bad Gateway type: https://pushward.app/errors/bad-gateway schema: $ref: "#/components/schemas/Problem" description: Bad Gateway "503": content: application/problem+json: examples: email_not_enabled: summary: Email invites are off 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: Service temporarily 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 an invite tags: - Organizations /orgs/{org_id}/invites/{invite_id}: delete: description: Takes an org admin key (hlo_) at level manage. operationId: revokeOrgInvite parameters: - in: path name: org_id required: true schema: type: string - in: path name: invite_id required: true schema: type: string responses: "204": description: No Content "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: Revoke an invite tags: - Organizations get: description: Revoked and expired invites too. The code is never returned again. Takes an org admin key (hlo_) at level manage. operationId: getOrgInvite parameters: - in: path name: org_id required: true schema: type: string - in: path name: invite_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgInviteItem" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: Get an invite tags: - Organizations /orgs/{org_id}/keys: get: description: Takes an org admin key (hlo_) at level manage. operationId: listOrgKeys parameters: - in: path name: org_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListIntegrationKeysOutputBody" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: List the organization's integration keys tags: - Organizations post: description: "The key sends as the organization: its activities, notifications and widgets reach the members the organization's rules allow, its emails the organization's verified recipients. The secret is returned once. Devices, sharing and account above none are refused (422 org.key_permission_unavailable): an organization has none of its own. Takes an org admin key (hlo_) at level manage." operationId: createOrgKey parameters: - in: path name: org_id required: true schema: type: string - description: "Identifies this create across retries, so a repeated request does not make a second key. Use a new random value for each create: a request repeating a value gets the key the first attempt made, whatever its body, without key: the secret is shown only once. A value applies per caller (each org admin key, or the signed-in user) until that key is revoked. Printable ASCII without spaces." in: header name: Idempotency-Key schema: description: "Identifies this create across retries, so a repeated request does not make a second key. Use a new random value for each create: a request repeating a value gets the key the first attempt made, whatever its body, without key: the secret is shown only once. A value applies per caller (each org admin key, or the signed-in user) until that key is revoked. Printable ASCII without spaces." maxLength: 128 pattern: ^[!-~]+$ type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateOrgKeyInputBody" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/IntegrationKeyResponse" description: Created "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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "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: emails_scoped: summary: Emails on a key limited to groups and tags value: code: org.key_permission_unavailable detail: "a key limited to groups and tags cannot send emails: the organization's recipients are not in its groups and tags" instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity personal_levels: summary: Devices, sharing or account above none value: code: org.key_permission_unavailable detail: "an organization key cannot have devices, sharing or account access: an organization has no devices, shares or personal account" 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: Create an organization integration key tags: - Organizations /orgs/{org_id}/keys/{key_id}: delete: description: Takes an org admin key (hlo_) at level manage. operationId: revokeOrgKey parameters: - in: path name: org_id required: true schema: type: string - in: path name: key_id required: true schema: type: string responses: "204": description: No Content "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: Revoke an organization integration key tags: - Organizations get: description: A revoked key is not found. Takes an org admin key (hlo_) at level manage. operationId: getOrgKey parameters: - in: path name: org_id required: true schema: type: string - in: path name: key_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/IntegrationKeyResponse" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: 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: Get an organization integration key tags: - Organizations patch: description: "Changes the name, permissions, slug restrictions or expiry; omitted fields are left as they are. A key's target is set at creation and cannot change, and a key limited to groups and tags cannot get emails. Devices, sharing and account above none are refused (422 org.key_permission_unavailable): an organization has none of its own. Takes an org admin key (hlo_) at level manage." operationId: updateOrgKey parameters: - in: path name: org_id required: true schema: type: string - in: path name: key_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateOrgKeyInputBody" 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 name, permissions, activity_slugs, widget_slugs or expires_at is required 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 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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: emails_scoped: summary: Emails on a key limited to groups and tags value: code: org.key_permission_unavailable detail: "a key limited to groups and tags cannot send emails: the organization's recipients are not in its groups and tags" instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity personal_levels: summary: Devices, sharing or account above none value: code: org.key_permission_unavailable detail: "an organization key cannot have devices, sharing or account access: an organization has no devices, shares or personal account" 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: Change an organization integration key tags: - Organizations /orgs/{org_id}/keys/{key_id}/roll: post: description: A new secret on the same key, returned once in `key`. The old secret stops working at once. Takes an org admin key (hlo_) at level manage. operationId: rollOrgKey parameters: - in: path name: org_id required: true schema: type: string - in: path name: key_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/IntegrationKeyResponse" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: 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: Roll an organization integration key tags: - Organizations /orgs/{org_id}/members: get: description: By role (owner, admin, billing, member, viewer), then by when they joined; next_cursor is set when more follow. Takes an org admin key (hlo_) at level read or manage. operationId: listOrgMembers parameters: - in: path name: org_id required: true schema: type: string - description: next_cursor of the previous page explode: false in: query name: cursor schema: description: next_cursor of the previous page maxLength: 512 type: string - explode: false in: query name: limit schema: default: 1000 format: int64 maximum: 1000 minimum: 1 type: integer responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListOrgMembersOutputBody" 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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "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: List organization members tags: - Organizations /orgs/{org_id}/members/{user_id}: delete: description: With the caller's own user ID, leaves the organization. The last owner cannot leave (409 org.last_owner). Removing or leaving revokes the member's invites and the org admin keys (hlo_) they created, with those keys' invites. Takes an org admin key (hlo_) at level manage. operationId: deleteOrgMember parameters: - in: path name: org_id required: true schema: type: string - in: path name: user_id required: true schema: type: string responses: "204": description: No Content "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "409": content: application/problem+json: examples: org.last_owner: value: code: org.last_owner detail: an organization needs at least one owner; make someone else an owner first instance: /requests/9f86d081884c7d65 status: 409 title: Conflict type: https://pushward.app/errors/conflict schema: $ref: "#/components/schemas/Problem" description: Conflict "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: Remove a member or leave tags: - Organizations get: description: Takes an org admin key (hlo_) at level read or manage. operationId: getOrgMember parameters: - in: path name: org_id required: true schema: type: string - in: path name: user_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgMemberItem" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: Get an organization member tags: - Organizations patch: description: Takes role, email or both. The email is a label for owners, admins and viewers, unique in the organization (409 org.member_email_taken), never verified. A role change revokes the member's invites for roles they can no longer grant; a move to billing, member or viewer also revokes the org admin keys (hlo_) they created, with those keys' invites. Takes an org admin key (hlo_) at level manage. operationId: updateOrgMember parameters: - in: path name: org_id required: true schema: type: string - in: path name: user_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateOrgMemberInputBody" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgMemberItem" description: OK "400": content: application/problem+json: examples: request.body_required: value: code: request.body_required detail: at least one of role or email 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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "409": content: application/problem+json: examples: member_email_taken: summary: A member or open invite already has the address value: code: org.member_email_taken detail: a member or an open invite of this organization already has this email address instance: /requests/9f86d081884c7d65 status: 409 title: Conflict type: https://pushward.app/errors/conflict org.last_owner: value: code: org.last_owner detail: an organization needs at least one owner; make someone else an owner first 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: email.invalid: value: code: email.invalid detail: email must be a valid email address 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: Change a member's role or email label tags: - Organizations /orgs/{org_id}/members/{user_id}/devices/{device_id}/tags: put: description: Takes an org admin key (hlo_) at level manage. operationId: setOrgDeviceTags parameters: - in: path name: org_id required: true schema: type: string - in: path name: user_id required: true schema: type: string - in: path name: device_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/SetOrgDeviceTagsInputBody" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgDeviceItem" 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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "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: Set a member device's tags tags: - Organizations /orgs/{org_id}/routes: get: description: Takes an org admin key (hlo_) at level read or manage. operationId: listOrgRoutes parameters: - in: path name: org_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListOrgRoutesOutputBody" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: List the organization's routing rules tags: - Organizations post: description: The rule goes after the existing ones. The first rule that matches an activity or notification decides who receives it; with no matching rule everyone does. Takes an org admin key (hlo_) at level manage. operationId: createOrgRoute parameters: - in: path name: org_id required: true schema: type: string - description: "Identifies this create across retries, so a repeated request does not add the rule twice. Use a new random value for each create: a request repeating a value gets the rule the first attempt added, whatever its body. A value applies per caller (each org admin key, or the signed-in user) for as long as the rule exists. Printable ASCII without spaces." in: header name: Idempotency-Key schema: description: "Identifies this create across retries, so a repeated request does not add the rule twice. Use a new random value for each create: a request repeating a value gets the rule the first attempt added, whatever its body. A value applies per caller (each org admin key, or the signed-in user) for as long as the rule exists. Printable ASCII without spaces." maxLength: 128 pattern: ^[!-~]+$ type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/CreateOrgRouteInputBody" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/OrgRouteItem" description: Created "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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "409": content: application/problem+json: examples: routing_limit: summary: The organization reached its limit for these value: code: org.routing_limit detail: this organization has reached its limit for these 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 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: Add a routing rule tags: - Organizations /orgs/{org_id}/routes/apply: post: description: Takes an org admin key (hlo_) at level manage. operationId: applyOrgRoutes parameters: - in: path name: org_id required: true schema: type: string responses: "204": description: No Content "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: Re-apply the routing rules tags: - Organizations /orgs/{org_id}/routes/order: put: description: Takes an org admin key (hlo_) at level manage. operationId: reorderOrgRoutes parameters: - in: path name: org_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/ReorderOrgRoutesInputBody" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListOrgRoutesOutputBody" 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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "409": content: application/problem+json: examples: org.routes_changed: value: code: org.routes_changed detail: the rules changed meanwhile; reload them and try again 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 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: Reorder the routing rules tags: - Organizations /orgs/{org_id}/routes/{route_id}: delete: description: Takes an org admin key (hlo_) at level manage. operationId: deleteOrgRoute parameters: - in: path name: org_id required: true schema: type: string - in: path name: route_id required: true schema: type: string responses: "204": description: No Content "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: Delete a routing rule tags: - Organizations get: description: Takes an org admin key (hlo_) at level read or manage. operationId: getOrgRoute parameters: - in: path name: org_id required: true schema: type: string - in: path name: route_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgRouteItem" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: Get a routing rule tags: - Organizations patch: description: Takes an org admin key (hlo_) at level manage. operationId: updateOrgRoute parameters: - in: path name: org_id required: true schema: type: string - in: path name: route_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateOrgRouteInputBody" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgRouteItem" 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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "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: Change a routing rule tags: - Organizations /orgs/{org_id}/sso: delete: description: Console sessions it signed in stay valid until they expire. In the console, needs a sign-in within the last 15 minutes. Enterprise plan only; owners and admins. Takes an org admin key (hlo_) at level manage. operationId: deleteOrgSSOConnection parameters: - in: path name: org_id required: true schema: type: string responses: "204": description: No Content "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: enterprise_required: summary: The organization is not on the Enterprise plan value: code: org.enterprise_required detail: This needs the Enterprise plan. instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden level_too_low: summary: Not an owner or admin, or a read key on a write value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden sso_required: summary: The organization requires a single sign-on console session value: code: org.sso_required detail: This organization requires signing in with single sign-on. 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: enterprise_disabled: summary: Enterprise features are off on this server value: code: enterprise.disabled detail: enterprise features are not available instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found org_not_found: summary: No such organization, or the caller is not in it value: code: org.not_found detail: organization not found instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found sso_not_found: summary: No connection value: code: org.sso_not_found detail: the organization has no single sign-on connection 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: Remove single sign-on tags: - Organizations get: description: "Always 200: configured says whether there is a connection, redirect_uri is what to register at an OIDC identity provider and saml's sp_entity_id and acs_url at a SAML one. The client secret is never returned. Enterprise plan only; owners and admins. Takes an org admin key (hlo_) at level read or manage." operationId: getOrgSSOConnection parameters: - in: path name: org_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgSSOConnectionItem" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: enterprise_required: summary: The organization is not on the Enterprise plan value: code: org.enterprise_required detail: This needs the Enterprise plan. instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden level_too_low: summary: Not an owner or admin, or a read key on a write value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden sso_required: summary: The organization requires a single sign-on console session value: code: org.sso_required detail: This organization requires signing in with single sign-on. 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: enterprise_disabled: summary: Enterprise features are off on this server value: code: enterprise.disabled detail: enterprise features are not available instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found org_not_found: summary: No such organization, or the caller is not in it value: code: org.not_found detail: organization 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: Get the organization's single sign-on tags: - Organizations put: description: OpenID Connect (protocol oidc) or SAML 2.0 (protocol saml). The issuer's discovery document is read and checked when the issuer is set or changed. Only an owner sets it up or changes its issuer or client_id, and then sends the client_secret again; admins and manage keys change the rest. SAML takes the identity provider's metadata, uploaded or read once from an https URL; only an owner sets it up or saves metadata with another entity ID or other signing certificates (a certificate rotation), and switching protocol takes an owner too. Turning it on needs a verified domain; require_sso makes it the only console sign-in for members other than owners. In the console, needs a sign-in within the last 15 minutes. Enterprise plan only; owners and admins. Takes an org admin key (hlo_) at level manage. operationId: putOrgSSOConnection parameters: - in: path name: org_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/PutOrgSSOConnectionInputBody" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgSSOConnectionItem" description: OK "400": content: application/problem+json: examples: request.body_invalid: value: code: request.body_invalid detail: send saml.idp_metadata_xml or saml.idp_metadata_url, not both 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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: enterprise_required: summary: The organization is not on the Enterprise plan value: code: org.enterprise_required detail: This needs the Enterprise plan. instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden level_too_low: summary: Not an owner or admin, or a read key on a write value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden reauth_required: summary: The console session signed in over 15 minutes ago value: code: auth.reauth_required detail: sign in again to change single sign-on instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden sso_required: summary: The organization requires a single sign-on console session value: code: org.sso_required detail: This organization requires signing in with single sign-on. 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: enterprise_disabled: summary: Enterprise features are off on this server value: code: enterprise.disabled detail: enterprise features are not available instance: /requests/9f86d081884c7d65 status: 404 title: Not Found type: https://pushward.app/errors/not-found org_not_found: summary: No such organization, or the caller is not in it value: code: org.not_found detail: organization 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: org.sso_needs_domain: value: code: org.sso_needs_domain detail: verify one of the organization's domains before turning single sign-on on 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: discovery_failed: summary: The issuer's discovery document is unusable value: code: org.sso_discovery_failed detail: the discovery document names a different issuer; the issuer must match it exactly instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity metadata_invalid: summary: The SAML metadata is unusable value: code: org.sso_metadata_invalid detail: the IDPSSODescriptor has no https SingleSignOnService with the HTTP-Redirect binding instance: /requests/9f86d081884c7d65 status: 422 title: Unprocessable Entity type: https://pushward.app/errors/unprocessable-entity secret_required: summary: No client secret sent or stored value: code: org.sso_secret_required detail: oidc.client_secret is required when the connection is created or its issuer or client_id changes 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: Set up single sign-on tags: - Organizations /orgs/{org_id}/tags: get: description: Takes an org admin key (hlo_) at level read or manage. operationId: listOrgTags parameters: - in: path name: org_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListOrgTagsOutputBody" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: List the organization's device tags tags: - Organizations post: description: Takes an org admin key (hlo_) at level manage. operationId: createOrgTag parameters: - in: path name: org_id required: true schema: type: string - description: "Identifies this create across retries, so a repeated request does not make a second one. Use a new random value for each create: a request repeating a value gets the group or tag the first attempt made, whatever its body. A value applies per caller (each org admin key, or the signed-in user) for as long as that group or tag exists. Printable ASCII without spaces." in: header name: Idempotency-Key schema: description: "Identifies this create across retries, so a repeated request does not make a second one. Use a new random value for each create: a request repeating a value gets the group or tag the first attempt made, whatever its body. A value applies per caller (each org admin key, or the signed-in user) for as long as that group or tag exists. Printable ASCII without spaces." maxLength: 128 pattern: ^[!-~]+$ type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/OrgNamedInputBody" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/OrgTagItem" description: Created "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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "409": content: application/problem+json: examples: name_taken: summary: The name is already used in this organization value: code: org.name_taken detail: that name is already used in this organization instance: /requests/9f86d081884c7d65 status: 409 title: Conflict type: https://pushward.app/errors/conflict routing_limit: summary: The organization reached its limit for these value: code: org.routing_limit detail: this organization has reached its limit for these 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 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: Create a device tag tags: - Organizations /orgs/{org_id}/tags/{tag_id}: delete: description: Takes an org admin key (hlo_) at level manage. operationId: deleteOrgTag parameters: - in: path name: org_id required: true schema: type: string - in: path name: tag_id required: true schema: type: string responses: "204": description: No Content "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: Delete a device tag tags: - Organizations get: description: Takes an org admin key (hlo_) at level read or manage. operationId: getOrgTag parameters: - in: path name: org_id required: true schema: type: string - in: path name: tag_id required: true schema: type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgTagItem" description: OK "401": content: application/problem+json: examples: key_expired: summary: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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: Get a device tag tags: - Organizations patch: description: Takes an org admin key (hlo_) at level manage. operationId: updateOrgTag parameters: - in: path name: org_id required: true schema: type: string - in: path name: tag_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/OrgNamedPatch" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgTagItem" 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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "409": content: application/problem+json: examples: name_taken: summary: The name is already used in this organization value: code: org.name_taken detail: that name is already used in this organization 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 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: Rename or describe a device tag tags: - Organizations /orgs/{org_id}/tags/{tag_id}/devices: post: description: Takes an org admin key (hlo_) at level manage. operationId: updateOrgTagDevices parameters: - in: path name: org_id required: true schema: type: string - in: path name: tag_id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdateOrgTagDevicesInputBody" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/OrgTagItem" 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: Org admin key past its expires_at value: code: org_admin_key.expired detail: org admin key expired instance: /requests/9f86d081884c7d65 status: 401 title: Unauthorized type: https://pushward.app/errors/unauthorized token_invalid: summary: Missing, unknown or revoked key 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: level_too_low: summary: The key's level does not allow this value: code: org.permission_denied detail: your role in this organization does not allow this instance: /requests/9f86d081884c7d65 status: 403 title: Forbidden type: https://pushward.app/errors/forbidden org_inactive: summary: The organization is not active value: code: org.billing_inactive detail: this organization is not active; an owner can reactivate it in the PushWard console 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 "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: Tag and untag member devices tags: - Organizations /permissions: get: operationId: listPermissions parameters: - description: "Which permissions to list: 'granted' (the caller has handed out) or 'received' (granted to the caller). Defaults to 'granted'." explode: false in: query name: direction schema: description: "Which permissions to list: 'granted' (the caller has handed out) or 'received' (granted to the caller). Defaults to 'granted'." enum: - granted - received type: string responses: "200": content: application/json: schema: $ref: "#/components/schemas/ListPermissionsOutputBody" 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: requires_sharing_read: value: code: integration_key.permission_denied detail: "insufficient permissions: requires sharing: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: 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: List permissions tags: - Permissions /permissions/patterns: post: operationId: grantPatternPermission requestBody: content: application/json: schema: $ref: "#/components/schemas/GrantPatternPermissionInputBody" required: true responses: "201": content: application/json: schema: $ref: "#/components/schemas/Permission" description: Created "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: requires_sharing_manage: value: code: integration_key.permission_denied detail: "insufficient permissions: requires sharing: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: Grant permission on slug pattern tags: - Permissions /permissions/{id}: delete: operationId: deletePermission parameters: - in: path name: id required: true schema: type: string responses: "204": description: No Content "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: requires_sharing_manage: value: code: integration_key.permission_denied detail: "insufficient permissions: requires sharing: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 "409": content: application/problem+json: examples: org.share_managed: value: code: org.share_managed detail: this share comes with your organization membership; leave the organization at console.pushward.app to stop it 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 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: Revoke or leave permission tags: - Permissions patch: operationId: updatePermission parameters: - in: path name: id required: true schema: type: string requestBody: content: application/json: schema: $ref: "#/components/schemas/UpdatePermissionInputBody" required: true responses: "200": content: application/json: schema: $ref: "#/components/schemas/Permission" 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: requires_sharing_manage: value: code: integration_key.permission_denied detail: "insufficient permissions: requires sharing: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 "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: Update permission role tags: - Permissions /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