Invite the client to take over
curl --request POST \
--url https://intentleads.si/api/v1/workspaces/{id}/handover \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "ops@acme-medical.example"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'ops@acme-medical.example'})
};
fetch('https://intentleads.si/api/v1/workspaces/{id}/handover', 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}/handover"
payload = { "email": "ops@acme-medical.example" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"workspace": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
"invite_url": "https://intentleads.si/join/…",
"next": "When they've joined, POST /api/v1/workspaces/.../release."
}{
"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": "internal_error",
"message": "Something went wrong. Try again."
}Invite the client to take over
Handover, step 1: an owner invite link for the client. They open it, sign up (accepting the terms) and become an owner. Then release the workspace.
Admin key required. Standard keys get 403 admin_key_required.
POST
/
api
/
v1
/
workspaces
/
{id}
/
handover
Invite the client to take over
curl --request POST \
--url https://intentleads.si/api/v1/workspaces/{id}/handover \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "ops@acme-medical.example"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'ops@acme-medical.example'})
};
fetch('https://intentleads.si/api/v1/workspaces/{id}/handover', 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}/handover"
payload = { "email": "ops@acme-medical.example" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"workspace": "6f1d2c3b-4a5e-4f60-8172-93a4b5c6d7e8",
"invite_url": "https://intentleads.si/join/…",
"next": "When they've joined, POST /api/v1/workspaces/.../release."
}{
"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": "internal_error",
"message": "Something went wrong. Try again."
}