Add team members
curl --request POST \
--url https://{your-subdomain}.neetokb.com/api/external/v1/team_members \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"emails": [
"oliver@example.com",
"jane@example.com"
],
"organization_role": "Standard",
"invited_by": "admin@example.com",
"send_invitation_email": "true"
}
'const options = {
method: 'POST',
headers: {
'X-Api-Key': '<x-api-key>',
Accept: '<accept>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
emails: ['oliver@example.com', 'jane@example.com'],
organization_role: 'Standard',
invited_by: 'admin@example.com',
send_invitation_email: 'true'
})
};
fetch('https://{your-subdomain}.neetokb.com/api/external/v1/team_members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetokb.com/api/external/v1/team_members"
payload = {
"emails": ["oliver@example.com", "jane@example.com"],
"organization_role": "Standard",
"invited_by": "admin@example.com",
"send_invitation_email": "true"
}
headers = {
"X-Api-Key": "<x-api-key>",
"Accept": "<accept>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Users added successfully"
}API v1 (deprecated)
Add team members
Add team members to the workspace.
POST
/
team_members
Add team members
curl --request POST \
--url https://{your-subdomain}.neetokb.com/api/external/v1/team_members \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"emails": [
"oliver@example.com",
"jane@example.com"
],
"organization_role": "Standard",
"invited_by": "admin@example.com",
"send_invitation_email": "true"
}
'const options = {
method: 'POST',
headers: {
'X-Api-Key': '<x-api-key>',
Accept: '<accept>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
emails: ['oliver@example.com', 'jane@example.com'],
organization_role: 'Standard',
invited_by: 'admin@example.com',
send_invitation_email: 'true'
})
};
fetch('https://{your-subdomain}.neetokb.com/api/external/v1/team_members', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetokb.com/api/external/v1/team_members"
payload = {
"emails": ["oliver@example.com", "jane@example.com"],
"organization_role": "Standard",
"invited_by": "admin@example.com",
"send_invitation_email": "true"
}
headers = {
"X-Api-Key": "<x-api-key>",
"Accept": "<accept>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "Users added successfully"
}Deprecated: This is a v1 endpoint. It will continue to work, but we recommend migrating to
the v2 equivalent for improved REST compliance (correct HTTP status codes,
consistent response envelopes, and hyphenated URLs).
Replace
Learn how to find your subdomain in Workspace subdomain.
{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Body
application/json