Webhook Widget
Menu Support queue

Example

Support queue

A support queue with the oldest ticket highlighted.

gridoverflowlight & dark
Support queue Large
json
{
  "v": 1,
  "preferredFamily": "systemLarge",
  "refresh": 900,
  "accessibility": "Eleven open tickets, oldest waiting four hours",
  "url": "https://support.example.com/queue",
  "view": {
    "type": "vstack",
    "align": "leading",
    "spacing": 12,
    "padding": 16,
    "children": [
      {
        "type": "hstack",
        "spacing": 8,
        "children": [
          {
            "type": "text",
            "text": "Open tickets",
            "style": "headline",
            "color": "primary"
          },
          {"type": "spacer"},
          {
            "type": "text",
            "text": "11",
            "size": 11,
            "weight": "bold",
            "color": "red",
            "align": "center",
            "minW": 28,
            "padding": {"top": 2, "bottom": 2, "leading": 5, "trailing": 5},
            "bg": "red/18",
            "corner": 5
          }
        ]
      },
      {
        "type": "grid",
        "spacing": 8,
        "rowSpacing": 9,
        "overflow": "drop",
        "text": {"style": "subheadline", "lines": 1},
        "columns": [
          {},
          {"w": "fill"},
          {"text": {"style": "caption", "color": "secondary"}},
          {
            "align": "trailing",
            "text": {"style": "caption", "color": "secondary", "monoDigits": true}
          }
        ],
        "more": {
          "type": "text",
          "text": "+{count} more in the queue",
          "style": "caption",
          "color": "secondary",
          "padding": {"top": 2}
        },
        "rows": [
          [
            {
              "type": "text",
              "text": "P1",
              "size": 11,
              "weight": "bold",
              "color": "red",
              "align": "center",
              "minW": 28,
              "padding": {"top": 2, "bottom": 2, "leading": 5, "trailing": 5},
              "bg": "red/18",
              "corner": 5
            },
            "Cannot export CSV from the reports page",
            "ACME Ltd",
            "4h"
          ],
          [
            {
              "type": "text",
              "text": "P2",
              "size": 11,
              "weight": "bold",
              "color": "orange",
              "align": "center",
              "minW": 28,
              "padding": {"top": 2, "bottom": 2, "leading": 5, "trailing": 5},
              "bg": "orange/18",
              "corner": 5
            },
            "Billing address will not save",
            "Northwind",
            "3h"
          ],
          [
            {
              "type": "text",
              "text": "P2",
              "size": 11,
              "weight": "bold",
              "color": "orange",
              "align": "center",
              "minW": 28,
              "padding": {"top": 2, "bottom": 2, "leading": 5, "trailing": 5},
              "bg": "orange/18",
              "corner": 5
            },
            "SSO login loops back to sign-in",
            "Globex",
            "1h"
          ],
          [
            {
              "type": "text",
              "text": "P3",
              "size": 11,
              "weight": "bold",
              "color": "gray",
              "align": "center",
              "minW": 28,
              "padding": {"top": 2, "bottom": 2, "leading": 5, "trailing": 5},
              "bg": "gray/18",
              "corner": 5
            },
            "Invoice PDF shows the wrong VAT number",
            "Initech",
            "1h"
          ],
          [
            {
              "type": "text",
              "text": "P3",
              "size": 11,
              "weight": "bold",
              "color": "gray",
              "align": "center",
              "minW": 28,
              "padding": {"top": 2, "bottom": 2, "leading": 5, "trailing": 5},
              "bg": "gray/18",
              "corner": 5
            },
            "Webhook retries arrive out of order",
            "Umbrella",
            "41m"
          ],
          [
            {
              "type": "text",
              "text": "P4",
              "size": 11,
              "weight": "bold",
              "color": "gray",
              "align": "center",
              "minW": 28,
              "padding": {"top": 2, "bottom": 2, "leading": 5, "trailing": 5},
              "bg": "gray/18",
              "corner": 5
            },
            "Feature request: dark mode for reports",
            "Hooli",
            "33m"
          ],
          [
            {
              "type": "text",
              "text": "P4",
              "size": 11,
              "weight": "bold",
              "color": "gray",
              "align": "center",
              "minW": 28,
              "padding": {"top": 2, "bottom": 2, "leading": 5, "trailing": 5},
              "bg": "gray/18",
              "corner": 5
            },
            "Typo on the pricing page",
            "Stark",
            "20m"
          ],
          [
            {
              "type": "text",
              "text": "P4",
              "size": 11,
              "weight": "bold",
              "color": "gray",
              "align": "center",
              "minW": 28,
              "padding": {"top": 2, "bottom": 2, "leading": 5, "trailing": 5},
              "bg": "gray/18",
              "corner": 5
            },
            "Add a CSV header row option",
            "Wayne",
            "12m"
          ],
          [
            {
              "type": "text",
              "text": "P4",
              "size": 11,
              "weight": "bold",
              "color": "gray",
              "align": "center",
              "minW": 28,
              "padding": {"top": 2, "bottom": 2, "leading": 5, "trailing": 5},
              "bg": "gray/18",
              "corner": 5
            },
            "Allow emoji in team names",
            "Cyberdyne",
            "9m"
          ],
          [
            {
              "type": "text",
              "text": "P4",
              "size": 11,
              "weight": "bold",
              "color": "gray",
              "align": "center",
              "minW": 28,
              "padding": {"top": 2, "bottom": 2, "leading": 5, "trailing": 5},
              "bg": "gray/18",
              "corner": 5
            },
            "Remember the last chart range",
            "Soylent",
            "5m"
          ],
          [
            {
              "type": "text",
              "text": "P4",
              "size": 11,
              "weight": "bold",
              "color": "gray",
              "align": "center",
              "minW": 28,
              "padding": {"top": 2, "bottom": 2, "leading": 5, "trailing": 5},
              "bg": "gray/18",
              "corner": 5
            },
            "Export to Numbers",
            "Tyrell",
            "2m"
          ]
        ]
      },
      {"type": "spacer", "minLength": 0},
      {
        "type": "hstack",
        "spacing": 5,
        "children": [
          {
            "type": "symbol",
            "name": "hourglass",
            "style": "caption",
            "color": "secondary"
          },
          {
            "type": "text",
            "text": "Oldest waiting",
            "style": "caption",
            "color": "secondary"
          },
          {
            "type": "timer",
            "from": "2026-08-11T04:33:00Z",
            "style": "relative",
            "size": 12,
            "color": "secondary"
          }
        ]
      }
    ]
  }
}
This payload is for the large size. For a smaller size, the server sends a different payload.

How it works

The tickets are a grid: priority, subject, customer, age. The subject column takes the remaining width and has lines: 1, so a long subject is truncated and the age column stays on the widget.

There are eleven open tickets and room for about six. "overflow": "drop" leaves out complete rows and shows the more row (+{count} more). The server sends every ticket. The phone decides how many fit at the person's text size.

This payload has no hex colour and no root background. The widget uses the system background, and its colours change with light and dark mode. Use the Light and Dark control above the preview. The payload does not change.

The priority pills are text on a bg of red/18, orange/18 or gray/18. A colour with an opacity is still a semantic colour, so it changes with light and dark mode.

Put it on your Home Screen

We serve this example at the URL below. The server generates the timestamps at the time of each request. Add the URL as a hook in the app, and the widget works on your phone.

URL
https://webhookwidget.com/demo/queue

Open the payload →

Next

League table: Ten rows of a table, with every column lined up.
All examples