curl --request POST \
--url https://api.reply.io/v3/teams/{team_id}/users/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"email": "daniel@example.com",
"roleName": "Team Member"
},
{
"email": "olivia@example.com",
"roleName": "Team Lead"
}
]
}
'import requests
url = "https://api.reply.io/v3/teams/{team_id}/users/bulk"
payload = { "items": [
{
"email": "daniel@example.com",
"roleName": "Team Member"
},
{
"email": "olivia@example.com",
"roleName": "Team Lead"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{email: 'daniel@example.com', roleName: 'Team Member'},
{email: 'olivia@example.com', roleName: 'Team Lead'}
]
})
};
fetch('https://api.reply.io/v3/teams/{team_id}/users/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.reply.io/v3/teams/{team_id}/users/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'items' => [
[
'email' => 'daniel@example.com',
'roleName' => 'Team Member'
],
[
'email' => 'olivia@example.com',
'roleName' => 'Team Lead'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reply.io/v3/teams/{team_id}/users/bulk"
payload := strings.NewReader("{\n \"items\": [\n {\n \"email\": \"daniel@example.com\",\n \"roleName\": \"Team Member\"\n },\n {\n \"email\": \"olivia@example.com\",\n \"roleName\": \"Team Lead\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reply.io/v3/teams/{team_id}/users/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"email\": \"daniel@example.com\",\n \"roleName\": \"Team Member\"\n },\n {\n \"email\": \"olivia@example.com\",\n \"roleName\": \"Team Lead\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/teams/{team_id}/users/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"email\": \"daniel@example.com\",\n \"roleName\": \"Team Member\"\n },\n {\n \"email\": \"olivia@example.com\",\n \"roleName\": \"Team Lead\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"email": "daniel@example.com",
"id": 10493,
"error": null,
"errorDetails": null
},
{
"email": "olivia@example.com",
"id": 10471,
"error": "alreadyInTeam",
"errorDetails": "The user is already a member of this team."
},
{
"email": "noah@example.com",
"id": 0,
"error": "userNotFound",
"errorDetails": "No user with this email belongs to your organization."
}
]Add existing users to a team
Coming soon. This endpoint will be available by early November 2026.
teams:write scope (or a broader one that includes it).
Give up to 50 users of your organization access to another of its teams (workspaces), each with a role of that team (roleName). Users are identified by email and get a separate user ID in the team. The acting user needs the permissions to add existing organization members to a team and to assign roles; the organization owner has both.
The response has one entry per user, in request order, each with the email it was sent with: the user’s id in the team, or error and errorDetails with id 0. A failed entry does not stop the others. A user already in the team comes back as alreadyInTeam with their id and role unchanged, so retries are safe.
Keys with *:* do not include teams:write. A user in several teams must name the team in the X-TEAM-ID header of access-token calls.
curl --request POST \
--url https://api.reply.io/v3/teams/{team_id}/users/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"items": [
{
"email": "daniel@example.com",
"roleName": "Team Member"
},
{
"email": "olivia@example.com",
"roleName": "Team Lead"
}
]
}
'import requests
url = "https://api.reply.io/v3/teams/{team_id}/users/bulk"
payload = { "items": [
{
"email": "daniel@example.com",
"roleName": "Team Member"
},
{
"email": "olivia@example.com",
"roleName": "Team Lead"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{email: 'daniel@example.com', roleName: 'Team Member'},
{email: 'olivia@example.com', roleName: 'Team Lead'}
]
})
};
fetch('https://api.reply.io/v3/teams/{team_id}/users/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.reply.io/v3/teams/{team_id}/users/bulk",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'items' => [
[
'email' => 'daniel@example.com',
'roleName' => 'Team Member'
],
[
'email' => 'olivia@example.com',
'roleName' => 'Team Lead'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.reply.io/v3/teams/{team_id}/users/bulk"
payload := strings.NewReader("{\n \"items\": [\n {\n \"email\": \"daniel@example.com\",\n \"roleName\": \"Team Member\"\n },\n {\n \"email\": \"olivia@example.com\",\n \"roleName\": \"Team Lead\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.reply.io/v3/teams/{team_id}/users/bulk")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"email\": \"daniel@example.com\",\n \"roleName\": \"Team Member\"\n },\n {\n \"email\": \"olivia@example.com\",\n \"roleName\": \"Team Lead\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.reply.io/v3/teams/{team_id}/users/bulk")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"email\": \"daniel@example.com\",\n \"roleName\": \"Team Member\"\n },\n {\n \"email\": \"olivia@example.com\",\n \"roleName\": \"Team Lead\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"email": "daniel@example.com",
"id": 10493,
"error": null,
"errorDetails": null
},
{
"email": "olivia@example.com",
"id": 10471,
"error": "alreadyInTeam",
"errorDetails": "The user is already a member of this team."
},
{
"email": "noah@example.com",
"id": 0,
"error": "userNotFound",
"errorDetails": "No user with this email belongs to your organization."
}
]Authorizations
Authenticate every request with a Bearer token. Pass your Reply API key in the
Authorization header:
Authorization: Bearer <your-api-key>
Get your API key from the Reply dashboard: Settings → API Key.
Path Parameters
ID of the team (workspace) to add the users to
x >= 1Body
Users of your organization to add to the team, each with a role from that team.
The users to add, 1 to 50 per call.
1 - 50 elementsShow child attributes
Show child attributes
Response
Array of results, one per submitted user, in request order.
Per-item error codes:
| error | Meaning |
|---|---|
userNotFound | No user with this email belongs to your organization, or the user has no active membership left to add from |
alreadyInTeam | The user is already a member of the team; nothing changed. id holds their ID in the team |
removedFromTeam | The user was removed from this team earlier and can't be added back through the API |
roleNotFound | The role is not one of the team's roles |
requestInProgress | Another request for the same user and team is still running; retry shortly |
unknown | The user could not be added; retry the request |
The email as it was sent in the request item.
The user's ID in the team, also with alreadyInTeam. 0 when the user was not added for any other reason.
Why the user was not added: userNotFound, alreadyInTeam, removedFromTeam, roleNotFound, requestInProgress or unknown. null on success.
Human-readable explanation of error; null on success