Webhook Widget
Menu Hello, World!

Example

Hello, World!

Checks that the app can reach an endpoint.

texttimerlight & dark
Hello, World!
json
{
  "v": 1,
  "preferredFamily": "systemSmall",
  "refresh": 900,
  "accessibility": "Hello, World! Fetched from webhookwidget.com just now",
  "url": "https://webhookwidget.com/docs/quickstart/",
  "view": {
    "type": "vstack",
    "align": "leading",
    "spacing": 0,
    "padding": 16,
    "children": [
      {
        "type": "hstack",
        "spacing": 5,
        "children": [
          {
            "type": "symbol",
            "name": "link",
            "style": "caption2",
            "weight": "bold",
            "color": "orange"
          },
          {
            "type": "text",
            "text": "WEBHOOK WIDGET",
            "style": "caption2",
            "weight": "bold",
            "color": "secondary"
          }
        ]
      },
      {"type": "spacer"},
      {
        "type": "text",
        "text": "Hello, World!",
        "style": "title2",
        "weight": "bold",
        "design": "rounded",
        "color": "primary",
        "lines": 2
      },
      {"type": "spacer"},
      {
        "type": "text",
        "text": "FETCHED",
        "style": "caption2",
        "weight": "semibold",
        "color": "tertiary"
      },
      {
        "type": "timer",
        "from": "2026-08-11T08:40:00Z",
        "style": "relative",
        "size": 13,
        "color": "secondary"
      }
    ]
  }
}
This payload is for the small size. The larger sizes show the same payload with empty space around it. For a smaller size, the server sends a different payload.

How it works

The app offers this example under Add Hook, so a new install can show a widget before the person has an endpoint. The time under the greeting is a timer. It counts on the phone from the time of the response.

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

lines lets the greeting wrap to two lines at the small size. The larger sizes fit it on one line. Text does not shrink unless you set minScale. spacer nodes set the vertical positions, so the payload has no fixed positions.

url is the address that the widget opens when the person taps it. It is a field of the response, not of a node. A widget has one tap target.

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/hello

Open the payload →

Next

Team rota: Who is on now and who is coming in, for a whole shift team.
All examples