Skip to content

Network ​

Workspaces (networks): creation, licensing, invites, copying, and marketplace products.

Endpoints ​

EndpointArgumentsReturns
v2.network.copyWorkspaceId, unknownHailerResult
v2.network.createunknownHailerResult
v2.network.fastFunctions.setWorkspaceId, unknownboolean
v2.network.getObjectIdobject
v2.network.invite.editunknown, Update object containing at least one key to be updated.boolean
v2.network.invite.listObjectIdany[]
v2.network.invite.removeunknownboolean
v2.network.invite.resendunknown, ObjectIdboolean
v2.network.invite.sendoptionsunknown
v2.network.license.get-object
v2.network.product.createoptionsunknown
v2.network.product.getObjectIdunknown
v2.network.product.getManifestObjectIdunknown
v2.network.product.installObjectId, WorkspaceIdboolean
v2.network.product.isProductInstalledObjectId, WorkspaceIdboolean
v2.network.product.publishTemplateoptionsunknown
v2.network.product.uninstallproductId: string, workspaceId: string, scope?: { packageHash: string, created: number }object
v2.network.publicCopyoptionsHailerResult
v2.network.restrictions-unknown
v2.network.updateWorkspaceId, optionsboolean
v2.network.workflowTemplateWorkspaceIdunknown

v2.network.copy ​

Description

Creates a copy of the selected workspace. Will only work if you are the network owner and it is not restricted. All created fields and processes will have new Ids assigned to them.

Parameters

Argument 1 (WorkspaceId, required): workspaceId (former networkId)

Argument 2 (string, required):

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.copy', [
  '507f1f77bcf86cd799439011', // WorkspaceId (required)
  'string', // argument 2 (required)
]);
console.log(result);

Returns

HailerResult

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.create ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (string, optional):

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.create', [
  'string', // argument 1
]);
console.log(result);

Returns

HailerResult

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.fastFunctions.set ​

Description

Enable or disable the Fast Functions evaluator for a workspace.

Only workspace admins and owners can change this setting.

Parameters

Argument 1 (WorkspaceId, required): Workspace ID

Argument 2 (boolean, required): Enable Fast Functions

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.fastFunctions.set', [
  '507f1f77bcf86cd799439011', // WorkspaceId (required)
  false, // Enable Fast Functions (required)
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.get ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): Network ID

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.get', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
]);
console.log(result);

Returns

FieldTypeRequiredDescription
_idObjectIdno
namestringyes
uidstringyes
createdtimestampyesTime (milliseconds since 1970-01-01 UTC)
updatedtimestampnoTime (milliseconds since 1970-01-01 UTC)
membersobject[]yesSee below.
settingsobjectnoSee below.
licenseobjectnoSee below.
marketplaceobjectnoSee below.
propertyFieldsobjectnoSee below.

members[] (object):

FieldTypeRequiredDescription
uidObjectIdyes
titlestringno
ownerbooleanno
adminbooleanno
joinedtimestampyesTime (milliseconds since 1970-01-01 UTC)
fieldsRecord<string, any>no
guestbooleanno
inviterbooleanno
customRoleroleIdnoValid role id
customRoleNamestringno

settings (object):

FieldTypeRequiredDescription
isolatedTeamsbooleannoWhether users can view only members of their team
defaultViewstringno
allowPublicCopybooleanno
functionFieldVersionnumberno
languages(fi | en | sv)[]no
colorstringno
disableVideoCallsbooleanno

license (object):

FieldTypeRequiredDescription
typestringno
activatednumberno
overrideobjectno
paymentobjectnoSee below.
tokensobjectnoSee below.

license.payment (object):

FieldTypeRequiredDescription
customer_idstringno
country_codestringno
licenseestringno
subscriptionstringno
subscription_itemstringno
typestripeno
statusactive | canceledno

license.tokens (object):

FieldTypeRequiredDescription
balancenumberyes
lastUpdatednumberyes
autoReloadobjectnoSee below.

license.tokens.autoReload (object):

FieldTypeRequiredDescription
enabledbooleanyes
triggerBalancenumberyes
targetBalancenumberyes
isProcessingbooleanno

marketplace (object):

FieldTypeRequiredDescription
creatorPercentnumberyes

propertyFields (object):

FieldTypeRequiredDescription
usersRecord<string, any>no

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.invite.edit ​

Description

Edit invitations ​

Only teams, title and notes can be updated.

Passing nullto either title or notes results in delete operation for that field.

Parameters

Argument 1 (string, required): Invitation key

Argument 2 (Update object containing at least one key to be updated., required):

FieldTypeRequiredDescription
notesstringnoNote, set to null to clear
titlestringnoTitle, set to null to clear
roleuser | admin | owner | guest | inviterno
teamsanynoStringified object id's
customRoleroleIdnoValid role id
discussionIdsObjectId[]no

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.invite.edit', [
  'string', // Invitation key (required)
  {
    notes: 'string', // Note, set to null to clear
    title: 'string', // Title, set to null to clear
  },
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.invite.list ​

Description

List invites in this network

Parameters

Argument 1 (ObjectId, required): Network ID

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.invite.list', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
]);
console.log(result);

Returns

Array of any.

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.invite.remove ​

Description

Remove invitation ​

Parameters

Argument 1 (string, required): Invitation key

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.invite.remove', [
  'string', // Invitation key (required)
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.invite.resend ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (string, required):

Argument 2 (ObjectId, optional):

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.invite.resend', [
  'string', // argument 1 (required)
  'string', // ObjectId
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.invite.send ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (object, required):

FieldTypeRequiredDescription
namestringno
titlestringno
notesstringno
emailstringyes
brandIdObjectIdno
roleuser | admin | owner | guest | inviterno
teamsanyno
customRoleroleIdnoValid role id
discussionIdsObjectId[]no
cidWorkspaceIdnoWorkspace id, defaults to current workspace

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.invite.send', [
  {
    email: 'string',
  },
]);
console.log(result);

Returns

Undocumented

The return value is not described in the source yet.

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.license.get ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Undocumented

This endpoint declares no argument schema in the source yet.

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.license.get', []);
console.log(result);

Returns

FieldTypeRequiredDescription
typefree | legacy | enterprise | premium | free-trialno
activatedtimestampnoTime (milliseconds since 1970-01-01 UTC)
functionFieldsbooleanno
usersnumberno
calendarsnumberno
modulesnumberno
activitiesnumberno
indexedDatabooleanno
processesnumberno
datasetsnumberno
overrideobjectnoSee below.
paymentobjectnoSee below.
canceledobjectnoSee below.
tokensobjectnoSee below.

override (object):

FieldTypeRequiredDescription
filesTaggingbooleanno
functionFieldsbooleanno
kanbanbooleanno
tableEditbooleanno
customRolesbooleanno
restrictedbooleanno
insightbooleanno
insightOnDiskbooleannoEnable on-disk SQLite for Insight report execution
dataExportbooleanno
documentGeneratorbooleanno
groupsbooleanno
usersnumberno
printbooleanno
calendarsnumberno
modulesnumberno
activitiesnumberno
isolatedTeamsbooleannoWhether users can view only members of their team
managedUsersbooleannoDetermine if managed users is allow in network
tourIdentifierstringnoOnboarding tour id used with Usetiful or similar tool for workspace specific tours
translationsbooleannoDetermine if translations are allow in network
indexedDatabooleannoEnable the use of IndexedData (Typesense)
fastFunctionsbooleannoEnable the use of Fast Functions evaluator
extendedFunctionFieldEvaluateAllMemorybooleannoAllow function-field evaluate-all operations to use a larger one-shot worker heap
activityRecoverybooleannoEnable activity recovery

payment (object):

FieldTypeRequiredDescription
customer_idstringno
country_codestringno
licenseestringno
subscriptionstringno
subscription_itemstringno
typestripeno
statusactive | canceledno

canceled (object):

FieldTypeRequiredDescription
typepremiumyes
timetimestampyesTime (milliseconds since 1970-01-01 UTC)

tokens (object):

FieldTypeRequiredDescription
balancenumberyes
lastUpdatedtimestampyesTime (milliseconds since 1970-01-01 UTC)
autoReloadobjectnoSee below.
mcpFactornumberno
videoCallFactornumberno

tokens.autoReload (object):

FieldTypeRequiredDescription
enabledbooleanyes
triggerBalancenumberno
targetBalancenumberno
isProcessingbooleanno

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.product.create ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (object, optional):

FieldTypeRequiredDescription
namestringyesName of the version

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.product.create', [
  {
    name: 'string', // Name of the version
  },
]);
console.log(result);

Returns

Undocumented

The return value is not described in the source yet.

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.product.get ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): Target Id in Hailer market

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.product.get', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
]);
console.log(result);

Returns

Undocumented

The return value is not described in the source yet.

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.product.getManifest ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): Target Id in Hailer market

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.product.getManifest', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
]);
console.log(result);

Returns

Undocumented

The return value is not described in the source yet.

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.product.install ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): Product Id in Hailer market

Argument 2 (WorkspaceId, required): Workspace Id where it will be installed

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.product.install', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
  '507f1f77bcf86cd799439011', // WorkspaceId (required)
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.product.isProductInstalled ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): Product Id in Hailer market

Argument 2 (WorkspaceId, required): Workspace Id to check installation in

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.product.isProductInstalled', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
  '507f1f77bcf86cd799439011', // WorkspaceId (required)
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.product.publishTemplate ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (object, optional):

FieldTypeRequiredDescription
workspaceIdWorkspaceIdnoWorkspace Id
targetIdObjectIdnotarget Id
versionstringyessemver format (e.g., 1.0.0)
versionDescriptionstringyesDescription for template
titlestringyesTitle for the template
descriptionstringyesDescription for template

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.product.publishTemplate', [
  {
    version: 'string', // semver format (e.g., 1.0.0)
    versionDescription: 'string', // Description for template
    title: 'string', // Title for the template
    description: 'string', // Description for template
  },
]);
console.log(result);

Returns

Undocumented

The return value is not described in the source yet.

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.product.uninstall ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (ObjectId, required): Product Id in Hailer market

Argument 2 (WorkspaceId, required): Workspace Id to remove it from

Argument 3 (Limit removal to a single install of this product. Omit to remove every install of it in the workspace (what cancelling the subscription does)., optional):

FieldTypeRequiredDescription
packageHashObjectIdyes
createdtimestampyesTime (milliseconds since 1970-01-01 UTC)

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.product.uninstall', [
  '507f1f77bcf86cd799439011', // ObjectId (required)
  '507f1f77bcf86cd799439011', // WorkspaceId (required)
  {
    packageHash: 'string',
    created: Date.now(), // Time (milliseconds since 1970-01-01 UTC)
  },
]);
console.log(result);

Returns

FieldTypeRequiredDescription
workflowsnumberyes
insightsnumberyes
teamsnumberyes
keptTeamsobject[]yesSee below.

keptTeams[] (object):

FieldTypeRequiredDescription
namestringyes
reasonstringyes

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.publicCopy ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (object, required):

FieldTypeRequiredDescription
copyNetworkIdWorkspaceIdyesworkspaceId (former networkId)

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.publicCopy', [
  {
    copyNetworkId: '507f1f77bcf86cd799439011', // workspaceId (former networkId)
  },
]);
console.log(result);

Returns

HailerResult

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.restrictions ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Undocumented

This endpoint declares no argument schema in the source yet.

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.restrictions', []);
console.log(result);

Returns

Undocumented

The return value is not described in the source yet.

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.update ​

Description

Updates some workspace settings, such as badge color, default view and enabling/disabling copying for non-owner users. Will not work if you are not the owner or an admin.

Parameters

Argument 1 (WorkspaceId, optional): Network ID

Argument 2 (object, optional):

FieldTypeRequiredDescription
namestringno
isolatedTeamsbooleanno
colorstringno
defaultViewactivities | discussions | events | feedno
allowPublicCopybooleanno
functionFieldVersionnumberno
languages(fi | en | sv)[]no
localauthbooleanno
disableVideoCallsbooleanno

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.update', [
  '507f1f77bcf86cd799439011', // WorkspaceId
  {
    name: 'string',
    isolatedTeams: false,
  },
]);
console.log(result);

Returns

boolean

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

v2.network.workflowTemplate ​

Description

Undocumented

This endpoint has no description in the source yet.

Parameters

Argument 1 (WorkspaceId, required): workspaceId (former networkId)

Example

javascript
const { Client } = require('@hailer/cli');

const client = await Client.create({
  host: 'https://api.hailer.com',
  username: 'you@example.com',
  password: '••••••',
});

const result = await client.request('v2.network.workflowTemplate', [
  '507f1f77bcf86cd799439011', // WorkspaceId (required)
]);
console.log(result);

Returns

Undocumented

The return value is not described in the source yet.

Auth: requires an authenticated session.

Errors: on failure returns the standard Hailer error object { code, msg, details?, retryAfter?, debug? }. retryAfter is a delay in milliseconds.

Hailer Developer Documentation · v1.8.0