curl --request POST \
--url https://app.hookie.ai/admin/api/workspaces \
--header 'Content-Type: application/json' \
--header 'X-Requested-With: <x-requested-with>' \
--cookie hookie_session= \
--data '
{
"name": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"template": "blank"
}
'const options = {
method: 'POST',
headers: {
cookie: 'hookie_session=',
'X-Requested-With': '<x-requested-with>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
request_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
template: 'blank'
})
};
fetch('https://app.hookie.ai/admin/api/workspaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/workspaces"
payload = {
"name": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"template": "blank"
}
headers = {
"cookie": "hookie_session=",
"X-Requested-With": "<x-requested-with>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"workspace": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"project_id": "<string>",
"template": "blank"
}{
"workspace": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"project_id": "<string>",
"template": "blank"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}Create a workspace
Create an additional Free workspace owned by the signed-in person. A blank workspace includes a Default project. The Juniper Trail template also creates Commerce Operations with fictional order, customer, case and event records. Creation leaves the current workspace active. Call POST /admin/api/workspaces/active with the returned workspace.id to switch. Only a human console session may create a workspace. Use the same request_id, name and template when retrying, including after a workspace switch. To create another workspace, you must own fewer than three additional self-service Free workspaces. Your automatic first workspace is excluded. The same creation limits apply to both templates.
curl --request POST \
--url https://app.hookie.ai/admin/api/workspaces \
--header 'Content-Type: application/json' \
--header 'X-Requested-With: <x-requested-with>' \
--cookie hookie_session= \
--data '
{
"name": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"template": "blank"
}
'const options = {
method: 'POST',
headers: {
cookie: 'hookie_session=',
'X-Requested-With': '<x-requested-with>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: '<string>',
request_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
template: 'blank'
})
};
fetch('https://app.hookie.ai/admin/api/workspaces', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/workspaces"
payload = {
"name": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"template": "blank"
}
headers = {
"cookie": "hookie_session=",
"X-Requested-With": "<x-requested-with>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"workspace": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"project_id": "<string>",
"template": "blank"
}{
"workspace": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"project_id": "<string>",
"template": "blank"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}{
"error": "<string>",
"retry_after": 123,
"upgrade_url": "<string>",
"reason": "<string>",
"code": "agent_scope_insufficient",
"required_scope": "hookie:read",
"granted_scopes": [
"<string>"
],
"manage_url": "<string>",
"scheme": "<string>",
"max_members": 123,
"members": 123,
"max_projects": 123,
"projects": 123,
"customer_id": "<string>",
"customer_name": "<string>",
"account_id": "<string>",
"terms_version": "<string>",
"claim_required": true,
"feature": "<string>"
}Authorizations
Headers
Body
Response
The same person already created this workspace with these request details and still has access to the result.