Connect a workspace
curl --request POST \
--url https://api.dock.us/{version}/workspaces/{id}/connected-workspaces \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "PkT2mVq81xLc",
"templateId": "TmPl4t3Id001",
"name": "Acme Onboarding",
"hubspotDealId": "1234567890",
"salesforceOpportunityId": "0065g00000XyZabAAF",
"startDate": "2026-10-06",
"targetEndDate": "2026-12-15",
"actualEndDate": "2026-12-01",
"workspaceUsers": [
{
"email": "jane@acme.com",
"role": "owner"
}
],
"workspaceDomains": [
{
"domain": "acme.com",
"role": "collaborator"
}
]
}
'import requests
url = "https://api.dock.us/{version}/workspaces/{id}/connected-workspaces"
payload = {
"workspaceId": "PkT2mVq81xLc",
"templateId": "TmPl4t3Id001",
"name": "Acme Onboarding",
"hubspotDealId": "1234567890",
"salesforceOpportunityId": "0065g00000XyZabAAF",
"startDate": "2026-10-06",
"targetEndDate": "2026-12-15",
"actualEndDate": "2026-12-01",
"workspaceUsers": [
{
"email": "jane@acme.com",
"role": "owner"
}
],
"workspaceDomains": [
{
"domain": "acme.com",
"role": "collaborator"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspaceId: 'PkT2mVq81xLc',
templateId: 'TmPl4t3Id001',
name: 'Acme Onboarding',
hubspotDealId: '1234567890',
salesforceOpportunityId: '0065g00000XyZabAAF',
startDate: '2026-10-06',
targetEndDate: '2026-12-15',
actualEndDate: '2026-12-01',
workspaceUsers: [{email: 'jane@acme.com', role: 'owner'}],
workspaceDomains: [{domain: 'acme.com', role: 'collaborator'}]
})
};
fetch('https://api.dock.us/{version}/workspaces/{id}/connected-workspaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dock.us/{version}/workspaces/{id}/connected-workspaces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'workspaceId' => 'PkT2mVq81xLc',
'templateId' => 'TmPl4t3Id001',
'name' => 'Acme Onboarding',
'hubspotDealId' => '1234567890',
'salesforceOpportunityId' => '0065g00000XyZabAAF',
'startDate' => '2026-10-06',
'targetEndDate' => '2026-12-15',
'actualEndDate' => '2026-12-01',
'workspaceUsers' => [
[
'email' => 'jane@acme.com',
'role' => 'owner'
]
],
'workspaceDomains' => [
[
'domain' => 'acme.com',
'role' => 'collaborator'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dock.us/{version}/workspaces/{id}/connected-workspaces"
payload := strings.NewReader("{\n \"workspaceId\": \"PkT2mVq81xLc\",\n \"templateId\": \"TmPl4t3Id001\",\n \"name\": \"Acme Onboarding\",\n \"hubspotDealId\": \"1234567890\",\n \"salesforceOpportunityId\": \"0065g00000XyZabAAF\",\n \"startDate\": \"2026-10-06\",\n \"targetEndDate\": \"2026-12-15\",\n \"actualEndDate\": \"2026-12-01\",\n \"workspaceUsers\": [\n {\n \"email\": \"jane@acme.com\",\n \"role\": \"owner\"\n }\n ],\n \"workspaceDomains\": [\n {\n \"domain\": \"acme.com\",\n \"role\": \"collaborator\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dock.us/{version}/workspaces/{id}/connected-workspaces")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workspaceId\": \"PkT2mVq81xLc\",\n \"templateId\": \"TmPl4t3Id001\",\n \"name\": \"Acme Onboarding\",\n \"hubspotDealId\": \"1234567890\",\n \"salesforceOpportunityId\": \"0065g00000XyZabAAF\",\n \"startDate\": \"2026-10-06\",\n \"targetEndDate\": \"2026-12-15\",\n \"actualEndDate\": \"2026-12-01\",\n \"workspaceUsers\": [\n {\n \"email\": \"jane@acme.com\",\n \"role\": \"owner\"\n }\n ],\n \"workspaceDomains\": [\n {\n \"domain\": \"acme.com\",\n \"role\": \"collaborator\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dock.us/{version}/workspaces/{id}/connected-workspaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspaceId\": \"PkT2mVq81xLc\",\n \"templateId\": \"TmPl4t3Id001\",\n \"name\": \"Acme Onboarding\",\n \"hubspotDealId\": \"1234567890\",\n \"salesforceOpportunityId\": \"0065g00000XyZabAAF\",\n \"startDate\": \"2026-10-06\",\n \"targetEndDate\": \"2026-12-15\",\n \"actualEndDate\": \"2026-12-01\",\n \"workspaceUsers\": [\n {\n \"email\": \"jane@acme.com\",\n \"role\": \"owner\"\n }\n ],\n \"workspaceDomains\": [\n {\n \"domain\": \"acme.com\",\n \"role\": \"collaborator\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"workspace": {
"id": "<string>",
"object": "workspace",
"url": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "Customer Onboarding",
"workspaceUrl": "https://acme.dock.us/customer-onboarding-vRQgIvscHAiO",
"templateId": "RiHO4e0Ju3DS",
"startDate": "2024-01-01",
"targetEndDate": "2024-01-01",
"actualEndDate": "2024-01-01",
"projectAge": 100,
"taskProgress": "50.00",
"lastContactView": "2023-11-07T05:31:56Z",
"totalViews": 100,
"totalActions": 100,
"totalTimeSpent": 100,
"contactsCount": 100,
"workspaceDomains": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "workspace-domain",
"url": "https://api.dock.us/v1/workspace-domains/RiHO4e0Ju3DS",
"role": "owner",
"domain": "dock.us"
}
],
"workspaceUsers": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "workspace-user",
"url": "https://api.dock.us/v1/workspace-users/RiHO4e0Ju3DS",
"role": "owner",
"user": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "user",
"url": "https://api.dock.us/v1/users/RiHO4e0Ju3DS",
"firstName": "John",
"lastName": "Doe",
"avatar": "https://dock.us/avatar.png",
"email": "john.doe@example.com",
"name": "John Doe"
}
}
],
"account": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "account",
"url": "https://api.dock.us/v1/accounts/RiHO4e0Ju3DS",
"name": "Dock",
"website": "https://dock.us",
"ownerId": "RiHO4e0Ju3DS",
"logo": "https://dock.us/logo.png",
"salesforceAccountId": "0015f00000Bg59dAAB",
"hubspotCompanyId": "8662045446"
},
"deal": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"hubspotDealId": "1234567890",
"object": "deal",
"url": "https://api.dock.us/v1/deals/RiHO4e0Ju3DS",
"createdDate": "2024-01-01T00:00:00Z",
"closeDate": "2024-01-01T00:00:00Z",
"name": "Deal 1",
"amount": "100000",
"type": "New Business",
"stage": "Proposal Sent"
},
"customFields": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "custom-field",
"url": "https://api.dock.us/v1/custom-fields/RiHO4e0Ju3DS",
"variableName": "account.name",
"type": "singleCheckbox",
"options": [
{
"index": 1,
"label": "Yes",
"value": "true"
}
],
"value": "Yes"
}
]
}
}
}{
"data": {
"workspace": {
"id": "<string>",
"object": "workspace",
"url": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "Customer Onboarding",
"workspaceUrl": "https://acme.dock.us/customer-onboarding-vRQgIvscHAiO",
"templateId": "RiHO4e0Ju3DS",
"startDate": "2024-01-01",
"targetEndDate": "2024-01-01",
"actualEndDate": "2024-01-01",
"projectAge": 100,
"taskProgress": "50.00",
"lastContactView": "2023-11-07T05:31:56Z",
"totalViews": 100,
"totalActions": 100,
"totalTimeSpent": 100,
"contactsCount": 100,
"workspaceDomains": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "workspace-domain",
"url": "https://api.dock.us/v1/workspace-domains/RiHO4e0Ju3DS",
"role": "owner",
"domain": "dock.us"
}
],
"workspaceUsers": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "workspace-user",
"url": "https://api.dock.us/v1/workspace-users/RiHO4e0Ju3DS",
"role": "owner",
"user": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "user",
"url": "https://api.dock.us/v1/users/RiHO4e0Ju3DS",
"firstName": "John",
"lastName": "Doe",
"avatar": "https://dock.us/avatar.png",
"email": "john.doe@example.com",
"name": "John Doe"
}
}
],
"account": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "account",
"url": "https://api.dock.us/v1/accounts/RiHO4e0Ju3DS",
"name": "Dock",
"website": "https://dock.us",
"ownerId": "RiHO4e0Ju3DS",
"logo": "https://dock.us/logo.png",
"salesforceAccountId": "0015f00000Bg59dAAB",
"hubspotCompanyId": "8662045446"
},
"deal": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"hubspotDealId": "1234567890",
"object": "deal",
"url": "https://api.dock.us/v1/deals/RiHO4e0Ju3DS",
"createdDate": "2024-01-01T00:00:00Z",
"closeDate": "2024-01-01T00:00:00Z",
"name": "Deal 1",
"amount": "100000",
"type": "New Business",
"stage": "Proposal Sent"
},
"customFields": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "custom-field",
"url": "https://api.dock.us/v1/custom-fields/RiHO4e0Ju3DS",
"variableName": "account.name",
"type": "singleCheckbox",
"options": [
{
"index": 1,
"label": "Yes",
"value": "true"
}
],
"value": "Yes"
}
]
}
}
}{
"error": {
"code": "BAD_REQUEST",
"reason": "NOT_FOUND",
"message": "The request could not be understood or was missing required parameters",
"retryable": true,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>",
"details": [
{
"field": "body.shareSetting",
"message": "'shareSetting' is required in body"
}
]
}
}{
"error": {
"code": "INVALID_TOKEN",
"reason": "NOT_FOUND",
"message": "Access denied. You are not authorized to access this resource",
"retryable": true,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_CREDITS",
"reason": "NOT_FOUND",
"message": "Your company doesn't have enough credits to create a workspace.",
"retryable": true,
"creditsRemaining": 0,
"creditsRequired": 10,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>"
}
}{
"error": {
"code": "FORBIDDEN",
"reason": "NOT_FOUND",
"message": "Access to this resource is restricted",
"retryable": true,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>"
}
}{
"error": {
"code": "NOT_FOUND",
"reason": "NOT_FOUND",
"message": "The requested resource could not be found",
"retryable": true,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"reason": "NOT_FOUND",
"message": "Rate limit exceeded. Please try again later",
"retryable": true,
"retryAfter": 2,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>"
}
}{
"error": {
"code": "INTERNAL_SERVER_ERROR",
"reason": "NOT_FOUND",
"message": "The server has encountered a situation it does not know how to handle",
"retryable": true,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>"
}
}Workspaces
Connect a workspace
Connect a workspace to another workspace, so they share one link, one sidebar and one set of access settings, the same as Add workspace in Dock. {id} is any workspace in the group to connect to; a workspace that isn’t connected to anything yet becomes the group’s homepage.
Provide exactly one of:
workspaceIdto connect an existing workspace. It must belong to the same account and must not already be connected to other workspaces (disconnect it in Dock first). It takes over the group’s access settings, and if it is not published yet it is published with the homepage’s users and domains, replacing its own. Connecting a workspace that is already in the group returns200and changes nothing.templateIdto create a new workspace from a template inside the group. It belongs to the group’s account and is published with the group’s access settings. UnlessworkspaceUsersorworkspaceDomainsare provided, everyone with access to a workspace in the group gets the same access to the new one. Templates that require a deal needhubspotDealIdorsalesforceOpportunityId. This costs 10 credits from your company’s shared credit balance, and companies on the free plan are limited to 10 workspaces total (active and archived combined).
The company must be verified to publish workspaces; otherwise this endpoint returns 403 FORBIDDEN. Needs workspaces:write.
POST
/
workspaces
/
{id}
/
connected-workspaces
Connect a workspace
curl --request POST \
--url https://api.dock.us/{version}/workspaces/{id}/connected-workspaces \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"workspaceId": "PkT2mVq81xLc",
"templateId": "TmPl4t3Id001",
"name": "Acme Onboarding",
"hubspotDealId": "1234567890",
"salesforceOpportunityId": "0065g00000XyZabAAF",
"startDate": "2026-10-06",
"targetEndDate": "2026-12-15",
"actualEndDate": "2026-12-01",
"workspaceUsers": [
{
"email": "jane@acme.com",
"role": "owner"
}
],
"workspaceDomains": [
{
"domain": "acme.com",
"role": "collaborator"
}
]
}
'import requests
url = "https://api.dock.us/{version}/workspaces/{id}/connected-workspaces"
payload = {
"workspaceId": "PkT2mVq81xLc",
"templateId": "TmPl4t3Id001",
"name": "Acme Onboarding",
"hubspotDealId": "1234567890",
"salesforceOpportunityId": "0065g00000XyZabAAF",
"startDate": "2026-10-06",
"targetEndDate": "2026-12-15",
"actualEndDate": "2026-12-01",
"workspaceUsers": [
{
"email": "jane@acme.com",
"role": "owner"
}
],
"workspaceDomains": [
{
"domain": "acme.com",
"role": "collaborator"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
workspaceId: 'PkT2mVq81xLc',
templateId: 'TmPl4t3Id001',
name: 'Acme Onboarding',
hubspotDealId: '1234567890',
salesforceOpportunityId: '0065g00000XyZabAAF',
startDate: '2026-10-06',
targetEndDate: '2026-12-15',
actualEndDate: '2026-12-01',
workspaceUsers: [{email: 'jane@acme.com', role: 'owner'}],
workspaceDomains: [{domain: 'acme.com', role: 'collaborator'}]
})
};
fetch('https://api.dock.us/{version}/workspaces/{id}/connected-workspaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dock.us/{version}/workspaces/{id}/connected-workspaces",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'workspaceId' => 'PkT2mVq81xLc',
'templateId' => 'TmPl4t3Id001',
'name' => 'Acme Onboarding',
'hubspotDealId' => '1234567890',
'salesforceOpportunityId' => '0065g00000XyZabAAF',
'startDate' => '2026-10-06',
'targetEndDate' => '2026-12-15',
'actualEndDate' => '2026-12-01',
'workspaceUsers' => [
[
'email' => 'jane@acme.com',
'role' => 'owner'
]
],
'workspaceDomains' => [
[
'domain' => 'acme.com',
'role' => 'collaborator'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.dock.us/{version}/workspaces/{id}/connected-workspaces"
payload := strings.NewReader("{\n \"workspaceId\": \"PkT2mVq81xLc\",\n \"templateId\": \"TmPl4t3Id001\",\n \"name\": \"Acme Onboarding\",\n \"hubspotDealId\": \"1234567890\",\n \"salesforceOpportunityId\": \"0065g00000XyZabAAF\",\n \"startDate\": \"2026-10-06\",\n \"targetEndDate\": \"2026-12-15\",\n \"actualEndDate\": \"2026-12-01\",\n \"workspaceUsers\": [\n {\n \"email\": \"jane@acme.com\",\n \"role\": \"owner\"\n }\n ],\n \"workspaceDomains\": [\n {\n \"domain\": \"acme.com\",\n \"role\": \"collaborator\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.dock.us/{version}/workspaces/{id}/connected-workspaces")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"workspaceId\": \"PkT2mVq81xLc\",\n \"templateId\": \"TmPl4t3Id001\",\n \"name\": \"Acme Onboarding\",\n \"hubspotDealId\": \"1234567890\",\n \"salesforceOpportunityId\": \"0065g00000XyZabAAF\",\n \"startDate\": \"2026-10-06\",\n \"targetEndDate\": \"2026-12-15\",\n \"actualEndDate\": \"2026-12-01\",\n \"workspaceUsers\": [\n {\n \"email\": \"jane@acme.com\",\n \"role\": \"owner\"\n }\n ],\n \"workspaceDomains\": [\n {\n \"domain\": \"acme.com\",\n \"role\": \"collaborator\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dock.us/{version}/workspaces/{id}/connected-workspaces")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"workspaceId\": \"PkT2mVq81xLc\",\n \"templateId\": \"TmPl4t3Id001\",\n \"name\": \"Acme Onboarding\",\n \"hubspotDealId\": \"1234567890\",\n \"salesforceOpportunityId\": \"0065g00000XyZabAAF\",\n \"startDate\": \"2026-10-06\",\n \"targetEndDate\": \"2026-12-15\",\n \"actualEndDate\": \"2026-12-01\",\n \"workspaceUsers\": [\n {\n \"email\": \"jane@acme.com\",\n \"role\": \"owner\"\n }\n ],\n \"workspaceDomains\": [\n {\n \"domain\": \"acme.com\",\n \"role\": \"collaborator\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"workspace": {
"id": "<string>",
"object": "workspace",
"url": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "Customer Onboarding",
"workspaceUrl": "https://acme.dock.us/customer-onboarding-vRQgIvscHAiO",
"templateId": "RiHO4e0Ju3DS",
"startDate": "2024-01-01",
"targetEndDate": "2024-01-01",
"actualEndDate": "2024-01-01",
"projectAge": 100,
"taskProgress": "50.00",
"lastContactView": "2023-11-07T05:31:56Z",
"totalViews": 100,
"totalActions": 100,
"totalTimeSpent": 100,
"contactsCount": 100,
"workspaceDomains": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "workspace-domain",
"url": "https://api.dock.us/v1/workspace-domains/RiHO4e0Ju3DS",
"role": "owner",
"domain": "dock.us"
}
],
"workspaceUsers": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "workspace-user",
"url": "https://api.dock.us/v1/workspace-users/RiHO4e0Ju3DS",
"role": "owner",
"user": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "user",
"url": "https://api.dock.us/v1/users/RiHO4e0Ju3DS",
"firstName": "John",
"lastName": "Doe",
"avatar": "https://dock.us/avatar.png",
"email": "john.doe@example.com",
"name": "John Doe"
}
}
],
"account": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "account",
"url": "https://api.dock.us/v1/accounts/RiHO4e0Ju3DS",
"name": "Dock",
"website": "https://dock.us",
"ownerId": "RiHO4e0Ju3DS",
"logo": "https://dock.us/logo.png",
"salesforceAccountId": "0015f00000Bg59dAAB",
"hubspotCompanyId": "8662045446"
},
"deal": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"hubspotDealId": "1234567890",
"object": "deal",
"url": "https://api.dock.us/v1/deals/RiHO4e0Ju3DS",
"createdDate": "2024-01-01T00:00:00Z",
"closeDate": "2024-01-01T00:00:00Z",
"name": "Deal 1",
"amount": "100000",
"type": "New Business",
"stage": "Proposal Sent"
},
"customFields": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "custom-field",
"url": "https://api.dock.us/v1/custom-fields/RiHO4e0Ju3DS",
"variableName": "account.name",
"type": "singleCheckbox",
"options": [
{
"index": 1,
"label": "Yes",
"value": "true"
}
],
"value": "Yes"
}
]
}
}
}{
"data": {
"workspace": {
"id": "<string>",
"object": "workspace",
"url": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "Customer Onboarding",
"workspaceUrl": "https://acme.dock.us/customer-onboarding-vRQgIvscHAiO",
"templateId": "RiHO4e0Ju3DS",
"startDate": "2024-01-01",
"targetEndDate": "2024-01-01",
"actualEndDate": "2024-01-01",
"projectAge": 100,
"taskProgress": "50.00",
"lastContactView": "2023-11-07T05:31:56Z",
"totalViews": 100,
"totalActions": 100,
"totalTimeSpent": 100,
"contactsCount": 100,
"workspaceDomains": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "workspace-domain",
"url": "https://api.dock.us/v1/workspace-domains/RiHO4e0Ju3DS",
"role": "owner",
"domain": "dock.us"
}
],
"workspaceUsers": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "workspace-user",
"url": "https://api.dock.us/v1/workspace-users/RiHO4e0Ju3DS",
"role": "owner",
"user": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "user",
"url": "https://api.dock.us/v1/users/RiHO4e0Ju3DS",
"firstName": "John",
"lastName": "Doe",
"avatar": "https://dock.us/avatar.png",
"email": "john.doe@example.com",
"name": "John Doe"
}
}
],
"account": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "account",
"url": "https://api.dock.us/v1/accounts/RiHO4e0Ju3DS",
"name": "Dock",
"website": "https://dock.us",
"ownerId": "RiHO4e0Ju3DS",
"logo": "https://dock.us/logo.png",
"salesforceAccountId": "0015f00000Bg59dAAB",
"hubspotCompanyId": "8662045446"
},
"deal": {
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"hubspotDealId": "1234567890",
"object": "deal",
"url": "https://api.dock.us/v1/deals/RiHO4e0Ju3DS",
"createdDate": "2024-01-01T00:00:00Z",
"closeDate": "2024-01-01T00:00:00Z",
"name": "Deal 1",
"amount": "100000",
"type": "New Business",
"stage": "Proposal Sent"
},
"customFields": [
{
"id": "RiHO4e0Ju3DS",
"updatedAt": "2021-01-01T00:00:00.000Z",
"createdAt": "2021-01-01T00:00:00.000Z",
"object": "custom-field",
"url": "https://api.dock.us/v1/custom-fields/RiHO4e0Ju3DS",
"variableName": "account.name",
"type": "singleCheckbox",
"options": [
{
"index": 1,
"label": "Yes",
"value": "true"
}
],
"value": "Yes"
}
]
}
}
}{
"error": {
"code": "BAD_REQUEST",
"reason": "NOT_FOUND",
"message": "The request could not be understood or was missing required parameters",
"retryable": true,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>",
"details": [
{
"field": "body.shareSetting",
"message": "'shareSetting' is required in body"
}
]
}
}{
"error": {
"code": "INVALID_TOKEN",
"reason": "NOT_FOUND",
"message": "Access denied. You are not authorized to access this resource",
"retryable": true,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_CREDITS",
"reason": "NOT_FOUND",
"message": "Your company doesn't have enough credits to create a workspace.",
"retryable": true,
"creditsRemaining": 0,
"creditsRequired": 10,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>"
}
}{
"error": {
"code": "FORBIDDEN",
"reason": "NOT_FOUND",
"message": "Access to this resource is restricted",
"retryable": true,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>"
}
}{
"error": {
"code": "NOT_FOUND",
"reason": "NOT_FOUND",
"message": "The requested resource could not be found",
"retryable": true,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"reason": "NOT_FOUND",
"message": "Rate limit exceeded. Please try again later",
"retryable": true,
"retryAfter": 2,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>"
}
}{
"error": {
"code": "INTERNAL_SERVER_ERROR",
"reason": "NOT_FOUND",
"message": "The server has encountered a situation it does not know how to handle",
"retryable": true,
"requestId": "6f1c2a9e-3b4d-4c5e-8f70-1a2b3c4d5e6f",
"docUrl": "<string>"
}
}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
Path Parameters
Query Parameters
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