List users
curl --request GET \
--url https://app.base44.com/api/v1/monitoring/{workspace_id}/users \
--header 'api_key: <api-key>'import requests
url = "https://app.base44.com/api/v1/monitoring/{workspace_id}/users"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://app.base44.com/api/v1/monitoring/{workspace_id}/users', 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://app.base44.com/api/v1/monitoring/{workspace_id}/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_key: <api-key>"
],
]);
$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://app.base44.com/api/v1/monitoring/{workspace_id}/users"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("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://app.base44.com/api/v1/monitoring/{workspace_id}/users")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/v1/monitoring/{workspace_id}/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api_key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"users": [
{
"user_id": "usr_abc123",
"email": "jane.doe@company.com",
"created_at": "2024-03-15T10:30:00Z",
"is_active": true,
"role": "member",
"total_apps": 12,
"total_superagents": 3,
"active_last_30d": true,
"total_message_credits": 1250,
"total_integration_credits": 340,
"total_credits": 1590,
"member_allocation": {
"credit_limit": 1000,
"credit_limit_source": "org_default",
"credit_limit_used": 420,
"credit_limit_remaining": 580,
"credit_limit_exceeded": false
}
}
],
"pagination": {
"total": 156,
"limit": 50,
"has_more": true,
"next_cursor": "eyJsYXN0X2lkIjoiMTIzIn0="
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}users
List users
Returns a list of all users in the workspace with their profile and credit consumption data.
You can use the from and to parameters to specify the date range for credit consumption. If not specified, defaults to consumption during the current billing period.
You can use the returned user_id values to call:
Get user: For user consumption data for a specific user over a custom date range.List user apps: To see a specific user’s app IDs.
Results are paginated. Check has_more in the response and use the returned cursor to fetch additional pages.
GET
/
{workspace_id}
/
users
List users
curl --request GET \
--url https://app.base44.com/api/v1/monitoring/{workspace_id}/users \
--header 'api_key: <api-key>'import requests
url = "https://app.base44.com/api/v1/monitoring/{workspace_id}/users"
headers = {"api_key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {api_key: '<api-key>'}};
fetch('https://app.base44.com/api/v1/monitoring/{workspace_id}/users', 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://app.base44.com/api/v1/monitoring/{workspace_id}/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api_key: <api-key>"
],
]);
$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://app.base44.com/api/v1/monitoring/{workspace_id}/users"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("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://app.base44.com/api/v1/monitoring/{workspace_id}/users")
.header("api_key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.base44.com/api/v1/monitoring/{workspace_id}/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["api_key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"users": [
{
"user_id": "usr_abc123",
"email": "jane.doe@company.com",
"created_at": "2024-03-15T10:30:00Z",
"is_active": true,
"role": "member",
"total_apps": 12,
"total_superagents": 3,
"active_last_30d": true,
"total_message_credits": 1250,
"total_integration_credits": 340,
"total_credits": 1590,
"member_allocation": {
"credit_limit": 1000,
"credit_limit_source": "org_default",
"credit_limit_used": 420,
"credit_limit_remaining": 580,
"credit_limit_exceeded": false
}
}
],
"pagination": {
"total": 156,
"limit": 50,
"has_more": true,
"next_cursor": "eyJsYXN0X2lkIjoiMTIzIn0="
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Query Parameters
Was this page helpful?