Get a user by ID
curl --request GET \
--url https://api.waterr.ai/v1/users/{userId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.waterr.ai/v1/users/{userId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.waterr.ai/v1/users/{userId}', 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.waterr.ai/v1/users/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.waterr.ai/v1/users/{userId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.waterr.ai/v1/users/{userId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.waterr.ai/v1/users/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyUsers
Get user workspace and membership information
GET
/
users
/
{userId}
Get a user by ID
curl --request GET \
--url https://api.waterr.ai/v1/users/{userId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.waterr.ai/v1/users/{userId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.waterr.ai/v1/users/{userId}', 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.waterr.ai/v1/users/{userId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.waterr.ai/v1/users/{userId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.waterr.ai/v1/users/{userId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.waterr.ai/v1/users/{userId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyOverview
The Users API returns the workspace details associated with your API key — useful when you need to display the active org/role in your UI, or when you’re building a multi-tenant integration where users connect different WaterrAI workspaces.You don’t need to fetch this before calling other endpoints. Your
membership_id and org_id are inferred from your API key on every request — meetings, scenarios, personas, etc. are created in the right workspace automatically.Get Active Workspace
Retrieve the workspace and membership context attached to your API key.curl -X GET https://api.waterr.ai/v1/users/active-workspace \
-H "Authorization: Bearer wai_<your_key>"
{
"success": true,
"data": {
"id": 42,
"type": "creator",
"org_id": 15,
"user_basic_info_id": 123,
"role": "admin",
"active": true,
"created_at": "2024-01-10T08:00:00Z",
"Organization": {
"id": 15,
"name": "My Company",
"created_at": "2024-01-10T08:00:00Z"
}
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
id | string (UUID) | The membership ID for this workspace |
type | string | Membership type: creator or end_user |
org_id | string (UUID) | Organization ID the workspace belongs to |
role | string | Your role in the organization |
active | boolean | Whether this membership is currently active |
Organization | object | Organization details including name |
Get User by ID
Retrieve a user’s public profile by their user ID. No authentication required.string
required
The user UUID
curl -X GET https://api.waterr.ai/v1/users/{userId}
Get User by Username
Look up a user by their username. No authentication required. Useful for building public profile pages or resolving usernames to IDs.string
required
The username
curl -X GET https://api.waterr.ai/v1/users/username/{username}

