Tabs & Spaces Developers

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.

json
{
  "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

FieldRequiredRules
manifestVersionYes1
idYes3–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.
nameYes1–40 characters
descriptionNoUp to 300 characters
developer.nameWith developer1–80 characters
developer.urlNoAn http(s) address
iconNoA path to a square PNG, JPEG, WebP or GIF, up to 100 KB. SVG isn't accepted.
tabsYes1–10 tabs (below)
homeNoUp to 3 home pages a workspace can choose as its Home
dataNoThe data your app keeps in the workspace: see Collections
actionsNoWhat your app does when agents ask: see Actions
eventsNoWhat happens in your app, for triggers: see Events
permissionsNoWhat your app reads of the workspace beyond its own data: see Permissions
listenNoWhat your app hears of the workspace, and what it does then: see Listen
marketplaceNo{ "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

FieldRequiredRules
idYesLowercase 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.
nameYes1–40 characters. A new tab is named after it, and people can rename theirs.
descriptionNoUp to 200 characters, shown when people choose a tab to add
urlYesThe 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.

FieldRequiredRules
scopeYesworkspace, space, tab or user: who shares and sees it. See Scopes.
fieldsYes1–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
descriptionNoUp to 300 characters
agentsNoread (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.

FieldRequiredRules
descriptionYesUp to 300 characters: what it does, for agents and admins
urlOne ofIts endpoint: a path, or a full address on your origin
recordsOne ofInstead of url: { "collection", "op" }, done by the workspace on that collection (create, update, delete, get or list). See Actions without a server.
changesNotrue (the default): agents ask the person first. false: it only reads, and runs at once.
inputNoUp to 20 fields, as in collections, or files (type: "file", with an optional accept; see Files as input)
viewNoIts 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.

FieldRequiredRules
descriptionYesUp to 300 characters: what happened, for people in triggers
fieldsNoUp 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.

FieldRequiredRules
eventsYes1–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.
webhookNoA path on your app's origin, like /tands/events. Not for a tab with no server. Without one, only your pages hear.
reactionsNoUp 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.

See Hearing the workspace.

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.

Search every page: actions, the manifest, the SDK, tokens…