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
An Intent Leads API key, e.g. il_live_ followed by 32 letters and digits. Create one on the API and CLI page of the dashboard.
Body
application/json