Create an invite link
curl --request POST \
--url https://intentleads.si/api/v1/team/invites \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "sam.rivera@example.com",
"role": "member"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'sam.rivera@example.com', role: 'member'})
};
fetch('https://intentleads.si/api/v1/team/invites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/team/invites"
payload = {
"email": "sam.rivera@example.com",
"role": "member"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"link": "https://intentleads.si/join/Xk7mQ2pR9tW4vB8nC3hJ6dF5gL2sA9eZ7yU4qN8m",
"role": "member",
"email": "sam.rivera@example.com",
"expires_in_days": 14
}
Create an invite link
Creates a single-use invite link that’s valid for 14 days. Nothing is emailed: send the link yourself. email is a label shown on the Team page and isn’t enforced, so whoever opens the link first can join with it. role defaults to member.
Admin key required. Standard keys get 403 admin_key_required.
POST
/
api
/
v1
/
team
/
invites
Create an invite link
curl --request POST \
--url https://intentleads.si/api/v1/team/invites \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "sam.rivera@example.com",
"role": "member"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'sam.rivera@example.com', role: 'member'})
};
fetch('https://intentleads.si/api/v1/team/invites', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://intentleads.si/api/v1/team/invites"
payload = {
"email": "sam.rivera@example.com",
"role": "member"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"link": "https://intentleads.si/join/Xk7mQ2pR9tW4vB8nC3hJ6dF5gL2sA9eZ7yU4qN8m",
"role": "member",
"email": "sam.rivera@example.com",
"expires_in_days": 14
}
Authorizations
Headers
Only with an organization key: the workspace to act in (its id; ?workspace=<id> works too). Lanes, leads, exports, lists, websites and webhooks live in workspaces. Without it, an organization key acts in its only workspace, or gets 400 workspace_required (with the list of workspaces) when it has several. Workspace keys don't need it. On keys, team and activity it switches from the organization's own to that workspace's.
Body
application/json