Skip to main content
POST
Connect a workspace
Creating a workspace from a templateId costs 10 credits from your company’s monthly allowance and purchased credits; connecting an existing workspace is free. Without enough credits the request returns 402 with INSUFFICIENT_CREDITS and nothing is created.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Scopes

workspaces:write

Path Parameters

id
string
required

The workspace id

Maximum string length: 64
Pattern: ^[A-Za-z0-9_-]{1,64}$
Example:

"RiHO4e0Ju3DS"

Query Parameters

properties
enum<string>[]

Select the workspace properties that should be returned

Available options:
id,
object,
url,
createdAt,
updatedAt,
name,
workspaceUrl,
templateId,
startDate,
targetEndDate,
actualEndDate,
projectAge,
taskProgress,
lastContactView,
totalViews,
totalActions,
totalTimeSpent,
contactsCount,
workspaceDomains.id,
workspaceDomains.object,
workspaceDomains.url,
workspaceDomains.createdAt,
workspaceDomains.updatedAt,
workspaceDomains.domain,
workspaceDomains.role,
workspaceUsers.id,
workspaceUsers.object,
workspaceUsers.url,
workspaceUsers.createdAt,
workspaceUsers.updatedAt,
workspaceUsers.role,
workspaceUsers.user.id,
workspaceUsers.user.object,
workspaceUsers.user.url,
workspaceUsers.user.createdAt,
workspaceUsers.user.updatedAt,
workspaceUsers.user.firstName,
workspaceUsers.user.lastName,
workspaceUsers.user.avatar,
workspaceUsers.user.email,
workspaceUsers.user.name,
account.id,
account.object,
account.url,
account.createdAt,
account.updatedAt,
account.name,
account.website,
account.ownerId,
account.logo,
account.salesforceAccountId,
account.hubspotCompanyId,
account.customFields.id,
account.customFields.object,
account.customFields.url,
account.customFields.createdAt,
account.customFields.updatedAt,
account.customFields.name,
account.customFields.variableName,
account.customFields.objectType,
account.customFields.type,
account.customFields.options.index,
account.customFields.options.label,
account.customFields.options.value,
account.customFields.value,
deal.id,
deal.object,
deal.url,
deal.createdAt,
deal.updatedAt,
deal.hubspotDealId,
deal.salesforceOpportunityId,
deal.name,
deal.amount,
deal.closeDate,
deal.createdDate,
deal.stage,
deal.type,
deal.customFields.id,
deal.customFields.object,
deal.customFields.url,
deal.customFields.createdAt,
deal.customFields.updatedAt,
deal.customFields.name,
deal.customFields.variableName,
deal.customFields.objectType,
deal.customFields.type,
deal.customFields.options.index,
deal.customFields.options.label,
deal.customFields.options.value,
deal.customFields.value,
customFields.id,
customFields.object,
customFields.url,
customFields.createdAt,
customFields.updatedAt,
customFields.name,
customFields.variableName,
customFields.objectType,
customFields.type,
customFields.options.index,
customFields.options.label,
customFields.options.value,
customFields.value

Body

application/json
workspaceId
string

ID of an existing workspace to connect

Maximum string length: 64
Pattern: ^[A-Za-z0-9_-]{1,64}$
Example:

"PkT2mVq81xLc"

templateId
string

ID of the template to create the connected workspace from

Maximum string length: 64
Pattern: ^[A-Za-z0-9_-]{1,64}$
Example:

"TmPl4t3Id001"

name
string

Name of the new workspace. Defaults to the template's workspace title. Only with templateId

Maximum string length: 255
Example:

"Acme Onboarding"

hubspotDealId
string

ID of the HubSpot deal to link the new workspace to. The deal must belong to the group account's HubSpot company. Only with templateId

Maximum string length: 64
Pattern: ^[A-Za-z0-9_-]{1,64}$
Example:

"1234567890"

salesforceOpportunityId
string

ID of the Salesforce opportunity to link the new workspace to. The opportunity must belong to the group account's Salesforce account. Only with templateId

Maximum string length: 64
Pattern: ^[A-Za-z0-9_-]{1,64}$
Example:

"0065g00000XyZabAAF"

startDate
string<date>

The start date of the new workspace in YYYY-MM-DD format. Only with templateId

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-10-06"

targetEndDate
string<date>

The target end date of the new workspace in YYYY-MM-DD format. Only with templateId

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-12-15"

actualEndDate
string<date>

The actual end date of the new workspace in YYYY-MM-DD format. Only with templateId

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-12-01"

workspaceUsers
object[]

Users of the new workspace, instead of the group's. At least one user or domain must have the owner role. Only with templateId

Maximum array length: 100
Example:
workspaceDomains
object[]

Domains of the new workspace, instead of the group's. Only with templateId

Maximum array length: 100
Example:

Response

Success: connect a workspace

data
object
required