Receive a workspace
curl --request POST \
--url https://intentleads.si/api/v1/workspaces/transfers/accept \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "wst_…",
"keep_previous_members": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({code: 'wst_…', keep_previous_members: false})
};
fetch('https://intentleads.si/api/v1/workspaces/transfers/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/workspaces/transfers/accept"
payload = {
"code": "wst_…",
"keep_previous_members": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"workspace": {
"id": "<string>",
"name": "<string>",
"from": "<string>",
"to": "<string>"
}
}{
"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": "invalid_code",
"message": "That transfer code isn't valid: it may have expired, been used or been cancelled."
}{
"error": "not_an_organization",
"message": "Accept the transfer from your main organization, not from one of its workspaces."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}Receive a workspace
With the receiving organization’s admin key: the workspace moves here with its lanes, keywords, websites, lists, leads and keys, and this organization’s plan and contact credits pay for it from now on. The receiving organization’s users get it; the sending organization’s users lose it unless keep_previous_members is true (then they stay as workspace users). Workspace users stay.
Admin key required. Standard keys get 403 admin_key_required.
POST
/
api
/
v1
/
workspaces
/
transfers
/
accept
Receive a workspace
curl --request POST \
--url https://intentleads.si/api/v1/workspaces/transfers/accept \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "wst_…",
"keep_previous_members": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({code: 'wst_…', keep_previous_members: false})
};
fetch('https://intentleads.si/api/v1/workspaces/transfers/accept', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/workspaces/transfers/accept"
payload = {
"code": "wst_…",
"keep_previous_members": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"workspace": {
"id": "<string>",
"name": "<string>",
"from": "<string>",
"to": "<string>"
}
}{
"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": "invalid_code",
"message": "That transfer code isn't valid: it may have expired, been used or been cancelled."
}{
"error": "not_an_organization",
"message": "Accept the transfer from your main organization, not from one of its workspaces."
}{
"error": "internal_error",
"message": "Something went wrong. Try again."
}