Skip to main content
GET
/
v1
/
user
/
team
/
default-members
Get Default Team Members
curl --request GET \
  --url https://api.projectdiscovery.io/v1/user/team/default-members \
  --header 'X-API-Key: <api-key>' \
  --header 'X-Team-Id: <x-team-id>'
import requests

url = "https://api.projectdiscovery.io/v1/user/team/default-members"

headers = {
"X-Team-Id": "<x-team-id>",
"X-API-Key": "<api-key>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-Team-Id': '<x-team-id>', 'X-API-Key': '<api-key>'}};

fetch('https://api.projectdiscovery.io/v1/user/team/default-members', 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.projectdiscovery.io/v1/user/team/default-members",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>",
"X-Team-Id: <x-team-id>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.projectdiscovery.io/v1/user/team/default-members"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-Team-Id", "<x-team-id>")
req.Header.Add("X-API-Key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.projectdiscovery.io/v1/user/team/default-members")
.header("X-Team-Id", "<x-team-id>")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.projectdiscovery.io/v1/user/team/default-members")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Team-Id"] = '<x-team-id>'
request["X-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "message": "<string>",
  "members": [
    {
      "email": "<string>",
      "role": "<string>"
    }
  ]
}
{
"message": "<string>",
"kind": "<string>",
"code": "<string>",
"error": "<string>",
"error_id": "<string>",
"param": "<string>",
"status": 123
}
{
"message": "<string>",
"kind": "<string>",
"code": "<string>",
"error": "<string>",
"error_id": "<string>",
"param": "<string>",
"status": 123
}
{
"message": "<string>",
"kind": "<string>",
"code": "<string>",
"error": "<string>",
"error_id": "<string>",
"param": "<string>",
"status": 123
}
{
"message": "<string>",
"kind": "<string>",
"code": "<string>",
"error": "<string>",
"error_id": "<string>",
"param": "<string>",
"status": 123
}
Retrieve the list of members that will be automatically added to any new team/workspace created by the owner. This configuration eliminates the need to manually invite the same members every time a new team is created.

What You’ll Get

The response includes:
  • List of configured default members with their emails and assigned roles
  • Confirmation message
Only owner or admin of the workspace can retrieve default team members.

Example Response

{
  "message": "successfully retrieved default team members",
  "members": [
    { "email": "user1@example.com", "role": "MEMBER" },
    { "email": "user2@example.com", "role": "ADMIN" }
  ]
}
If no default members are configured, the members array will be empty.

Authorizations

X-API-Key
string
header
required

Headers

X-Team-Id
string
required

Response

Default team members response

message
string
required
members
object[]
required