Add team members
curl --request POST \
--url https://{your-subdomain}.neetocal.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}.neetocal.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}.neetocal.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}.neetocal.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}.neetocal.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}.neetocal.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"
}This endpoint is part of API v1, which is deprecated. Please use the v2 API instead.
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