Numable authoring docsthe same content is available in the terminal: `numable docs <topic>`中文

Push content to a push widget

For: an AI the user has given one push widget to (Codex, Claude, a scheduled script…).

Before you start

The user adds a Push widget in Numable and connects it from the widget's Edit page. They get a widget id, an access key (starts with nbp_) and a ready-to-paste note for you. One key can only push to that one widget; the user can create a new key or delete the widget at any time, and deleting it stops every key.

What the widget looks like is entirely up to what you push. It shows on the user's dashboard and can be placed on the home screen. Only the latest push is kept; the next one replaces it.

Create push widgets on a dashboard

With a dashboard's edit key (see "Edit a user's existing dashboard") you can add push widgets to that dashboard directly — the user doesn't have to connect each one:

Three ways in (same result)

  1. CLI
    export NUMABLE_PUSH_BOX=<id>
    export NUMABLE_PUSH_TOKEN=<key>
    npx numable@latest widget spec                         # size code, canvas size and rules
    npx numable@latest widget templates                    # scenario templates, general layouts and the data they need
    npx numable@latest widget templates creator            # one template's task, field meanings and an example
    npx numable@latest widget validate doc.json --preview out.png   # local check + a preview image
    npx numable@latest widget push doc.json
    
  2. Remote MCP: https://api.numable.app/mcp, header Authorization: Bearer <key>. It is the same address as for editing dashboards; the key decides what you get — a push widget access key (nbp_…) only sees the push widget tools. Tools: widget_spec · widget_templates · widget_validate · widget_push.
  3. HTTP: GET https://inbox.numable.app/v1/w/<id>/spec for the size; POST https://inbox.numable.app/v1/w/<id> to push (?dry=1 only validates). Send Authorization: Bearer <key>. GET /v1/templates needs no key.

Document format

{
  "version": 2,
  "layout": 22,
  "canvas": { "source": "tpl:change" },
  "data": { "title": "NVDA", "price": "187.20", "change": "+2.14%" }
}

Rules for your own drawing

Pushes are checked with the same rules as tools; a broken document is rejected as a whole and never reaches the user.

When a push is rejected

You get 422 with one reason code per problem in issues:

Code Meaning
D1 Unknown field or bad format
D2 layout doesn't match the widget size
D3 data isn't an object or is over 8KB
D4 Bad canvas structure
D5 Unknown template (the reply lists the valid ones)
D6 Whole document over 64KB
D7 Template data missing
G7c, G28–G33 The drawing would fail to render (same codes as the tool checks, see numable docs lint-codes)
P1–P9 Push-only: display only, tap targets, anchors, images, limits, single colors, reversed eight-digit colors (P8), Chinese-only text (P9, warning)

Pushing too often returns 429 (about once every 5 seconds). 401 = wrong id or key, or the key was deleted; 423 = the widget is frozen.