Create a workspace
curl --request POST \
--url https://api.salessequencer.com/api/v1/workspaces/new \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/workspaces/new"
payload = { "name": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/workspaces/new', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Team & workspaces
Create a workspace
Creates a workspace with a unique slug derived from the name and a default test template. Super-admin only. Empty name refuses with a flash. The creator is not added as a member by this code.
Minimum role: superadmin (x-min-role). Destructive: false (x-destructive).
POST
/
workspaces
/
new
Create a workspace
curl --request POST \
--url https://api.salessequencer.com/api/v1/workspaces/new \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"name": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/workspaces/new"
payload = { "name": "<string>" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/workspaces/new', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));