> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gethinto.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Workspace customization

> Shape your Hinto workspace around your business: your own objects next to each ticket, your own pages, queues, and actions, declared by your coding agent.

Workspace customization lets your team see your own business inside Hinto. Your coding agent declares it as one JSON document, the **manifest**, and your backend keeps your objects current through the API. Hinto renders everything with its own design system, so a customized workspace stays fast, readable, and consistent on desktop and phone.

A manifest can declare:

* **Object types.** Your domain objects, such as an inspection with its address, status, and photos. Your backend pushes the objects. Compact status pills also appear directly on linked Inbox and Tickets rows.
* **Support panels.** Your objects next to every ticket they relate to (in the ticket view, the Inbox, and on customer and company profiles), and fed into every investigation as live product state. A panel can also show the phone's side from Hinto Signal: changes waiting to upload, uploads your server refused, and how the app last closed.
* **Operational pages.** Support-connected screens placed prominently in the sidebar under your company's name, made of metric and interactive table sections (with segment `tabs` and live counts, search, sorting, support status filters, live open-ticket links, proactive **Reach out** outbound tickets, and inline row actions) over your objects or over the devices Hinto Signal knows.
* **Actions.** Buttons that call your system, for example "Request re-upload", with optional confirmation and inputs.
* **Views (optional).** Saved ticket filters under `/tickets?view=<id>`. Prefer segmented operational pages (`tabs` on a table section) so teammates see affected customers whether or not they have opened a ticket yet.

## How a change ships

1. Read the reference with `get_workspace_reference`. It lists every block, field type, filter, limit, and a complete example manifest.
2. Check your manifest with `validate_workspace_customization`. Nothing is saved. Each issue has a code, the exact path, and a message that names the valid choices.
3. Save it with `save_workspace_customization`. It becomes the next version, a draft. Anyone on your team can preview a draft in Hinto from **Settings > Customization**.
4. An admin publishes it with `publish_workspace_customization`. Everyone sees the change at once.
5. To roll back, publish an earlier version. Versions never change after they are saved.

Object types and their fields take effect as soon as you save, so your backend can push objects before you publish. A saved field keeps its type forever. To change a type, add a field with a new key. Enum options can be added at any time. Panels, pages, views, and actions wait for publish.

## Connect your agent

Use the Hinto MCP at `https://api.gethinto.com/v1/mcp`. Sign in with OAuth, or send a secret key as `Authorization: Bearer <key>`. An admin creates keys in **Settings > API keys**, or an admin's coding agent can mint a `workspace:objects` feed key directly with `create_workspace_feed_key` (after confirmation).

| Key scope | What it allows |
| - | - |
| `workspace:manage` | Read the reference, validate, save, preview, and (for keys an admin created) publish. |
| `workspace:objects` | Push, list, and delete objects only. Give this **Workspace feed** key to your backend service. |

A secret key includes both scopes. A feed key can never change what your team sees.

The same operations are available over REST under `https://api.gethinto.com/v1/workspace`:

| Method and path | Operation |
| - | - |
| `GET /reference` | The reference. |
| `GET /customization` | The published and latest versions, the endpoint host, and version history. |
| `POST /validate` | `{ "manifest": … }`. Issues, warnings, and the changes against what is published. |
| `POST /versions` | `{ "manifest": …, "note": "…", "expectedLatestVersion": 7 }`. Saves a version. |
| `POST /versions/{version}/publish` | `{ "confirm": true }`. Publishes that version (admin). |
| `POST /preview` | Resolves a page or a ticket's panels for a version, as data. |
| `PUT /endpoint` | `{ "url": "https://…", "confirm": true }`. Sets the action endpoint (admin). |
| `POST /endpoint/test` | Sends a signed `ping` (admin). |
| `POST /endpoint/rotate-secret` | `{ "confirm": true }`. A new signing secret (admin). |
| `PUT /objects/{objectType}` | `{ "objects": [ … ] }`. Pushes up to 100 objects. |
| `GET /objects/{objectType}` | Lists objects, with `search`, `offset`, and `limit`. |
| `POST /objects/{objectType}/delete` | `{ "externalIds": [ … ], "confirm": true }`. Deletes up to 100 objects (admin). |

A call that changes something important answers `428` with `confirmation_required` and a summary until you send `"confirm": true`.

## The manifest

```json theme={null}
{
  "schemaVersion": 1,
  "objectTypes": { "inspection": { … } },
  "panels": [ … ],
  "pages": [ … ],
  "views": [ … ],
  "actions": [ … ]
}
```

Every top-level key is required. Send an empty array (or `{}` for `objectTypes`) for anything you do not use yet.

Keys and ids are lowercase slugs: a letter, then letters, digits, or underscores, up to 40 characters. Labels are plain text up to 60 characters. Unknown properties are refused, so a typo never hides.

### Object types

```json theme={null}
"inspection": {
  "label": "Inspection",
  "pluralLabel": "Inspections",
  "fields": {
    "address": { "type": "text", "label": "Address" },
    "status": {
      "type": "enum",
      "label": "Status",
      "options": [
        { "value": "awaiting_photos", "label": "Waiting on photos", "tone": "attention" },
        { "value": "complete", "label": "Complete", "tone": "success" }
      ]
    },
    "photos": { "type": "progress", "label": "Photos received" },
    "photo_items": {
      "type": "list",
      "label": "Photos",
      "itemLabel": "Photo",
      "fields": {
        "name": { "type": "text", "label": "Photo" },
        "upload": { "type": "enum", "label": "Upload", "options": [ … ] }
      }
    },
    "report_url": { "type": "url", "label": "Report" }
  },
  "display": { "title": "address", "status": "status", "url": "report_url" }
}
```

Field types are `text`, `number` (with an optional `unit`), `boolean`, `datetime`, `url` (https only), `enum`, `progress` (`{ "done": 9, "total": 14 }`), and `list` (rows of the scalar types). `display` picks the title, subtitle, status, and link that every object shows in the same place everywhere.

Enum tones are `neutral`, `success`, `attention`, and `critical`. Hinto maps them to its own colors.

### Ticket panels

```json theme={null}
{
  "id": "inspection",
  "title": "Inspection",
  "objectType": "inspection",
  "via": ["ticket", "customer", "account"],
  "where": [{ "field": "status", "op": "neq", "value": "complete" }],
  "limit": 3,
  "blocks": [
    { "type": "fields", "fields": ["agency", "last_photo_at"] },
    { "type": "progress", "field": "photos" },
    {
      "type": "list",
      "field": "photo_items",
      "title": "Photos not received",
      "columns": ["name", "upload"],
      "where": [{ "field": "upload", "op": "neq", "value": "received" }],
      "limit": 10
    },
    { "type": "device", "title": "Inspector's phone" },
    { "type": "actions", "actions": ["request_reupload"] }
  ]
}
```

`via` says how an object reaches a ticket: linked to the ticket itself, to the person who wrote in or is affected, or to their company. A panel with no matching object stays hidden. The `device` block shows Hinto Signal's state for the people the object links to; it needs `customer` in `via`. A `list` block can filter its items with `where`, so a panel leads with what needs attention, and `title` names what it shows.

### Pages and views

A page has up to six sections and appears in the sidebar under your company's name right after Inbox. A `metrics` section shows up to four numbers (`count`, `sum` of a number field, `oldest` or `newest` of a datetime field). A `table` section shows up to six columns with optional segment `tabs` (2 to 6 filtered tabs with live counts), search, column sorting, a live **Support** column (linking open tickets or offering proactive **Reach out** to start a pre-linked outbound conversation), and paging. Both read from a **source**: one of your object types, or Hinto Signal's devices.

```json theme={null}
{ "objectType": "inspection", "where": [{ "field": "status", "op": "in", "value": ["awaiting_photos"] }] }
{ "signal": "devices", "where": [{ "field": "pending", "op": "gt", "value": 0 }] }
```

The `signal.devices` source has one row per person and device model seen in the last 30 days, with these fields: `person`, `device`, `platform`, `appVersion`, `pending`, `oldestPendingAt`, `failedCount`, `refusedCount`, `lastFailure`, `conflictCount`, `lastSyncedAt`, `lastSeenAt`, `endReason`, and `openTickets`. It needs the React Native SDK's `reportSync` ([React Native](https://docs.gethinto.com/react-native.md)). `oldestPendingAt` and `lastSyncedAt` come from the phone's clock.

Filter operators are `eq`, `neq`, `in`, `gt`, `gte`, `lt`, `lte`, `exists`, `missing`, and, for datetime fields, `olderThan` and `newerThan` with a duration such as `"2h"`, `"30m"`, or `"3d"`. Filters in one list must all match.

A view is a ticket queue: `{ "id": "waiting_on_phone", "label": "Waiting on a phone", "icon": "connection", "source": { … }, "via": ["customer"] }`. A ticket appears when an object or device that matches the source reaches it. `icon` is optional and takes the same names as a page's icon.

### Actions

```json theme={null}
{
  "id": "reopen_inspection",
  "label": "Reopen inspection",
  "objectType": "inspection",
  "access": "admin",
  "tone": "danger",
  "confirm": { "title": "Reopen this inspection?", "body": "The inspector sees it as open again." },
  "inputs": [{ "key": "why", "label": "Why", "type": "enum", "required": true, "options": [ … ] }]
}
```

`access` is `member` or `admin`. A `danger` action needs `confirm`. Up to three inputs, `text` or `enum`. Actions always run as published: in a preview, an action that differs from the published one is shown but disabled.

## Pushing objects

```bash theme={null}
curl -X PUT https://api.gethinto.com/v1/workspace/objects/inspection \
  -H "Authorization: Bearer $HINTO_WORKSPACE_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "objects": [{
      "externalId": "INS-20931",
      "updatedAt": "2026-11-22T09:14:00Z",
      "fields": { "address": "14 Wharf Road", "status": "awaiting_photos", "photos": { "done": 23, "total": 40 } },
      "links": [{ "customerExternalId": "usr_88213" }, { "accountExternalId": "ag_1042" }]
    }]
  }'
```

* `externalId` is your own id. Pushing the same id again updates the object.
* `fields` replaces the object's fields. Send every field each time. Missing fields show as empty.
* `updatedAt` is when the object changed in your system. A push older than the stored one is ignored and reported as `stale`, so retries and out-of-order deliveries are safe. A time more than 5 minutes in the future is refused.
* `links` connect the object to a Hinto ticket (`ticketId`), a person by your user id (`customerExternalId`, the id you pass to Signal's `identify`) or email (`customerEmail`), or a company by your company id (`accountExternalId`). When you send `links`, they replace the links you sent before. A person or company does not need to exist in Hinto yet. Teammates can also link an object to a ticket from its panel; your pushes never remove those.

Each object gets its own result: `created`, `updated`, `unchanged`, `stale`, or `rejected` with issues. One bad object does not fail the others.

## Your action endpoint

An admin sets one https endpoint with `set_workspace_endpoint` and stores the signing secret it returns. Hinto never takes the endpoint from the manifest, so a draft can never send requests somewhere else.

When a teammate runs an action, Hinto sends:

```http theme={null}
POST https://your-app.example/hinto
Content-Type: application/json
X-Hinto-Timestamp: 1763802840
X-Hinto-Signature: v1=5d8f…
X-Hinto-Delivery-Id: 8d1d6a52-…

{
  "type": "action.run",
  "protocol": "2026-11-22",
  "id": "8d1d6a52-…",
  "action": { "id": "request_reupload" },
  "object": { "type": "inspection", "externalId": "INS-20931" },
  "ticket": { "id": "4b0f…", "number": 1182 },
  "actor": { "name": "Dana Ramirez", "email": "dana@example.com" },
  "input": { "reason": "Photos stuck since Tuesday" }
}
```

Answer within 8 seconds with a 2xx and, optionally, JSON:

```json theme={null}
{ "message": "Asked the phone to retry 17 photos.", "object": { "updatedAt": "…", "fields": { … } } }
```

The teammate sees `message`. Any 2xx counts as done, even with a body that is not JSON. An `object` updates the panel at once, like a push, so send all of its fields. A non-2xx answer, or `{ "ok": false, "message": "…" }`, is a failure the teammate sees. After 8 seconds Hinto tells the teammate the action may still finish. Hinto sends each run once and never retries it; a double click or a second tab joins the same run instead of sending another. `id` is unique per run, so you can still use it as an idempotency key against your own retries. A `ping` from the settings page carries only `type`, `protocol`, and `id`.

Verify every request before you act on it. During the 24 hours after a secret rotation, the header lists two signatures; accept the request when either matches.

```js theme={null}
import { createHmac, timingSafeEqual } from "node:crypto";

export function verifyHinto(secret, headers, rawBody) {
  const timestamp = headers["x-hinto-timestamp"];
  const header = headers["x-hinto-signature"];
  if (!timestamp || !header) return false;
  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
  const expected = Buffer.from(
    `v1=${createHmac("sha256", secret).update(`v1:${timestamp}:${rawBody}`).digest("hex")}`,
  );
  return header.split(",").some((entry) => {
    const candidate = Buffer.from(entry.trim());
    return candidate.length === expected.length && timingSafeEqual(candidate, expected);
  });
}
```

Sign over the raw request bytes, before any JSON parsing.

## Limits

| Item | Limit |
| - | - |
| Object types / fields per type | 10 / 40 |
| Panels / pages / views / actions | 6 / 8 / 12 / 20 |
| Blocks per panel, objects per panel | 8, 5 |
| Sections per page, rows per table page | 6, 100 |
| Manifest size | 256 KB |
| Object size, list items | 32 KB, 200 |
| Objects per push, per workspace | 100, 200,000 |
| Saved versions | 60 per hour |
| REST requests per key | 120 per minute |
| Action reply | 8 seconds, 64 KB |

## Example

`get_workspace_reference` returns a complete, valid manifest for an inspection company whose inspectors work offline: an inspection panel with the inspector's phone, a Sync health page, two queues, and two actions. Start from it and change what your business needs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.