Skip to content

API

Every method below is a member of a module on the HailerApi instance you construct (see Getting started). Each returns a Promise unless noted, runs on the host with the current user's permissions, and throws a HailerError on failure.

How calls work

The runtime client is a thin wrapper. Calling hailer.<module>.<method>(...) sends a message to the host Hailer frame, which runs the matching operation and returns the result. Each module page lists the host operation each method maps to, plus any host-side validation, scoping, or behavior that isn't visible from the signature alone.

Scope affects results

Results depend on whether your app is private or workspace-scoped. This is called out per method where it matters — read Private vs workspace apps first.

Modules

Data & workspace

ModulePurpose
userCurrent user, look up users, list workspace members.
workspaceCurrent/available workspaces, create workspaces, product installs.
workflowList/get workflows, install workflow templates.
activityCRUD + print activities; kanban and ball sub-modules.
teamTeams grouped by workspace.
permissionThe current user's permission map.
fileGet/upload files, add/remove tags.
insightList insights and read their data.
metricsRead usage metrics.

Apps, marketplace & integrations

ModulePurpose
appMarketplace lookups for the running app; app config updates.
productCRUD on your own marketplace products.
httpAuthenticated proxy: fetch, upload, openWebSocket.
publicEndpoints callable without a session (the only namespace in outside mode).
uiCommand the host frame: open panels, dialogs, snackbars.

Internal

Documented for completeness. These target Hailer-operated surfaces and are not intended for third-party apps.

ModulePurpose
paymentPricing and purchases.
adminInstance-admin endpoints.

Types

All payload and entity shapes are catalogued in the Types reference.

Hailer Developer Documentation