Reference
The manifest
Your app's manifest is a JSON file on your site, at an address you choose (/tands.json, say). Workspace admins install your app from that address.
{
"manifestVersion": 1,
"id": "acme-crm",
"name": "Acme CRM",
"description": "Your customers, in a tab.",
"developer": { "name": "Acme", "url": "https://acme.example" },
"icon": "/icon.png",
"tabs": [
{ "id": "contacts", "name": "Contacts", "url": "/tab/contacts" },
{ "id": "deals", "name": "Deals", "description": "Your pipeline.", "url": "/tab/deals" }
],
"home": [
{
"id": "overview",
"name": "Sales overview",
"description": "This week's deals, at a glance.",
"url": "/home"
}
]
}Fields
| Field | Required | Rules |
|---|---|---|
manifestVersion | Yes | 1 |
id | Yes | 3–64 characters: lowercase letters, digits, and single dots or dashes between them, like acme-crm or com.acme.crm. Never change it: it's how workspaces know your app. |
name | Yes | 1–40 characters |
description | No | Up to 300 characters |
developer.name | With developer | 1–80 characters |
developer.url | No | An http(s) address |
icon | No | A path to a square PNG, JPEG, WebP or GIF, up to 100 KB. SVG isn't accepted. |
tabs | Yes | 1–10 tabs (below) |
home | No | Up to 3 home pages a workspace can choose as its Home |
data | No | The data your app keeps in the workspace: see Collections |
actions | No | What your app does when agents ask: see Actions |
events | No | What happens in your app, for triggers: see Events |
permissions | No | What your app reads of the workspace beyond its own data: see Permissions |
listen | No | What your app hears of the workspace, and what it does then: see Listen |
marketplace | No | { "verify": "tas-publisher-…" }: the workspace that may publish it to the marketplace. Not part of the app: changing it isn't a new version. |
data is optional: the collections your app keeps. See Collections.
Fields this version doesn't know are ignored, so later fields won't break older workspaces.
Tabs
| Field | Required | Rules |
|---|---|---|
id | Yes | Lowercase letters, digits and dashes, starting with a letter or digit; up to 40 characters; unique in your manifest. Keep it stable: tabs in spaces refer to it. |
name | Yes | 1–40 characters. A new tab is named after it, and people can rename theirs. |
description | No | Up to 200 characters, shown when people choose a tab to add |
url | Yes | The page: a path, or a full address on your origin |
Home pages
home lists the pages a workspace can choose as its Home. Each has the same fields as a tab: id (unique among your home pages), name, description and url. See Home pages.
Collections
data.collections maps each collection's name to its declaration. Names, of collections and of fields, are lowercase letters, digits and underscores, starting with a letter, up to 40 characters.
| Field | Required | Rules |
|---|---|---|
scope | Yes | workspace, space, tab or user: who shares and sees it. See Scopes. |
fields | Yes | 1–50 fields, each with a type (string, text, number, boolean, date, datetime), an optional description (up to 200 characters), required (default false) and, for strings, enum |
description | No | Up to 300 characters |
agents | No | read (the default) or none |
An app has up to 20 collections. See Keeping data.
Actions
actions maps each action's name (lowercase letters, digits and underscores) to its declaration. An app has up to 20.
| Field | Required | Rules |
|---|---|---|
description | Yes | Up to 300 characters: what it does, for agents and admins |
url | One of | Its endpoint: a path, or a full address on your origin |
records | One of | Instead of url: { "collection", "op" }, done by the workspace on that collection (create, update, delete, get or list). See Actions without a server. |
changes | No | true (the default): agents ask the person first. false: it only reads, and runs at once. |
input | No | Up to 20 fields, as in collections, or files (type: "file", with an optional accept; see Files as input) |
view | No | Its own page under the agent's answer: { "url", "title"? }, url on your origin. Only on an action with changes: false. See Your action's own view. |
See Actions.
Events
events maps each event's name (lowercase letters, digits and underscores) to its declaration. An app has up to 20.
| Field | Required | Rules |
|---|---|---|
description | Yes | Up to 300 characters: what happened, for people in triggers |
fields | No | Up to 20 fields, as in collections |
See Events.
Permissions
permissions lists what your app reads of the workspace, each once: workspace.read, spaces.read, members.read, agents.read, tasks.read, files.read, files.content and messages.read (only in spaces with your app's tab). Admins see them before installing, and an update that adds one waits for their yes. Your app only ever reads what the person looking can see. See Reading the workspace.
Listen
listen names the events your app hears, and where its server is told.
| Field | Required | Rules |
|---|---|---|
events | Yes | 1–50 names, each once, like app.removed. Names this deployment doesn't send are kept, and not sent. Hearing tasks, files, people or spaces takes the read that goes with them in permissions. |
webhook | No | A path on your app's origin, like /tands/events. Not for a tab with no server. Without one, only your pages hear. |
reactions | No | Up to 20 things your app does by itself when it hears an event: one of its records actions run on its own data, with fields from the event. See Reacting with nothing open. |
One origin
An app lives on one origin: the manifest's. icon, every tab's and home page's url, and listen.webhook are resolved against the manifest's address and must stay on its origin. /tab/contacts in a manifest at https://crm.example.com/tands.json is https://crm.example.com/tab/contacts. A tab on https://other.example.com is refused.
Tokens are addressed to that origin, and the workspace only talks to frames on it. If your pages need several hosts, serve them behind one.
A tab with no server has no origin: its manifest is tands.json at the top of its files, its pages and icon are paths among them, and its actions can only be records actions.
Changing it
You can change anything but id and your origin; that includes adding actions. Workspaces pick up changes when an admin chooses Check for updates. An app in the marketplace installs and updates as reviewed (our copy, while a newer manifest waits for review): send a new version when you change its manifest (see Publishing). Removing a tab from your manifest leaves the tabs people added saying your app's tab isn't installed. See Installing and updating.