Release a workspace
curl --request POST \
--url https://intentleads.si/api/v1/workspaces/{id}/release \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"leave": false
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({leave: false})
};
fetch('https://intentleads.si/api/v1/workspaces/{id}/release', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/workspaces/{id}/release"
payload = { "leave": False }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
"released": true,
"client_owners": 1
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "admin_key_required",
"message": "This needs an admin API key. Owners create one under Settings → API keys."
}{
"error": "workspace_not_found",
"message": "No such workspace in your organization."
}{
"error": "no_client_owner",
"message": "Invite the client as an owner first (and have them accept), so the workspace isn't left without one."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}Release a workspace
Handover, step 2: detaches the workspace. Its lanes, keywords, lists, leads and keys go with it; from then on it needs its own plan. leave: true also removes your team (needs a client owner first).
Admin key required. Standard keys get 403 admin_key_required.
POST
/
api
/
v1
/
workspaces
/
{id}
/
release
Release a workspace
curl --request POST \
--url https://intentleads.si/api/v1/workspaces/{id}/release \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"leave": false
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({leave: false})
};
fetch('https://intentleads.si/api/v1/workspaces/{id}/release', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/workspaces/{id}/release"
payload = { "leave": False }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
"released": true,
"client_owners": 1
}{
"error": "unauthorized",
"message": "Send a valid API key as: Authorization: Bearer il_live_…"
}{
"error": "admin_key_required",
"message": "This needs an admin API key. Owners create one under Settings → API keys."
}{
"error": "workspace_not_found",
"message": "No such workspace in your organization."
}{
"error": "no_client_owner",
"message": "Invite the client as an owner first (and have them accept), so the workspace isn't left without one."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}