Errors and limits
The one shape every error has, what each status means, and the limits that apply.
Errors
When something goes wrong, you always get JSON in the same shape:
{
"error": "The ui does not match the catalog",
"details": ["ui.children[0]: unknown component type \"blink\""]
}| Field | Type | What it is |
|---|---|---|
error | string | What went wrong, in one sentence. Always present. |
details | list of strings | One line per problem, each starting with where it is. Present for 400 and 422. |
Statuses
| Status | Meaning | What to do |
|---|---|---|
400 | The request body or query has the wrong shape, or isn't valid JSON. | Fix the fields named in details. |
401 | The API key is missing, wrong or revoked. | Send Authorization: Bearer <key> with a current key. |
403 | The workspace has reached a limit of its plan, such as board cards or the files its cards hold, or needs Pro. The error says which. | Remove something, or move to a larger plan, then send again. |
404 | No card with that id belongs to this app, or the feed or board you named doesn't exist. | Check the id, or list them with GET /feeds and GET /boards. |
413 | The ui, or the files sent with a card, are too large. | Send less. |
422 | The ui doesn't match the catalog. | Fix each line in details and send again. Nothing was stored. |
429 | This workspace's keys have made too many requests in the last minute. | Wait the number of seconds in the Retry-After header, then send again. |
500 | Something broke on Hookboard's side. Not your fault. | Try again later. |
A details line reads as a path into your card, then the problem:
ui.children[2].onPress: "webhook" needs "url"
ui.children[0].tone: must be one of default, muted, primary, success, warning, danger
ui.children[1]: "text" has no property "colour"
ui.children[3].visibleWhen: Unexpected token at position 8Limits
Plan limits apply to the whole workspace. Everyone gets one free workspace, and any others they own are on Pro. Addresses that reach the same inbox, such as [email protected] or, on Gmail, [email protected], count as the same person.
| What | Free | Pro |
|---|---|---|
| People | 1 | Unlimited |
| Boards | 1 | Unlimited |
| Feeds | 1 | Unlimited |
| Board cards | 10 | Unlimited |
| Feed cards kept | The 100 newest per feed | The 10,000 newest per feed |
| Files held by cards | 25 MB | 10 GB |
| API requests, across all of a workspace's keys | 30 per minute | 3000 per minute |
Free is a one-person workspace for trying Hookboard. It has every feature, just in smaller amounts. No plan limits the number of API keys. Pro's "unlimited" comes with fair use: there are safety limits to stop a runaway script, set far above what any real team uses.
When a subscription ends, nothing gets deleted, but you can't add anything past the free limits. A workspace that isn't the account's free one can't add board cards or files until it's back on Pro, and the error says so.
These are the same on every plan:
| What | Limit |
|---|---|
Size of a card's ui as JSON | 256 KB |
Elements in one ui | 1500 |
Nesting depth of a ui | 24 levels |
Card id | 200 characters |
Card title | 200 characters |
| Files sent in one request | 10 MB together |
| Dismissed feed cards | Deleted after 30 days |
| Events returned per poll | 100 |
Longest poll (wait) | 50 seconds |
| Webhook time to answer | 10 seconds |
| Webhook reply size | 256 KB |
| Webhook calls per account | 60 per minute |
Safety rules
- A card can only contain catalog elements. HTML, styles, scripts and iframes are never drawn.
- Expressions run in Hookboard's own interpreter and can't reach the page, the network or the server.
- Hookboard's server makes webhook calls to the URL stored in the card. A device can't make Hookboard call a different address.
- Hookboard stores only a hash of each API key, so a lost key can't be shown again. Replace it under Settings > API keys.