curl --request GET \
--url https://api.example.com/api/v1/users/me \
--header 'X-Access-Token: <api-key>'import requests
url = "https://api.example.com/api/v1/users/me"
headers = {"X-Access-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Access-Token': '<api-key>'}};
fetch('https://api.example.com/api/v1/users/me', 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.example.com/api/v1/users/me",
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-Access-Token: <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://api.example.com/api/v1/users/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Access-Token", "<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.example.com/api/v1/users/me")
.header("X-Access-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/users/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Access-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"language": "<string>",
"user_version": 123,
"remote_runtime_resource_factor": 123,
"secrets_store": "<unknown>",
"enable_sound_notifications": false,
"enable_proactive_conversation_starters": true,
"user_consents_to_analytics": true,
"sandbox_base_container_image": "<string>",
"sandbox_runtime_container_image": "<string>",
"disabled_skills": [
"<string>"
],
"search_api_key": "<string>",
"sandbox_api_key": "<string>",
"max_budget_per_task": 123,
"email": "<string>",
"email_verified": true,
"git_user_name": "<string>",
"git_user_email": "<string>",
"title_llm_profile": "<string>",
"git_full_clone": false,
"v1_enabled": true,
"agent_settings": {},
"conversation_settings": {
"schema_version": 1,
"max_iterations": 500,
"confirmation_mode": false,
"security_analyzer": "llm"
},
"sandbox_grouping_strategy": "NO_GROUPING",
"default_sandbox_spec_id": "<string>",
"llm_profiles": {
"profiles": {},
"active": "<string>"
},
"active_agent_profile_id": "<string>",
"active_agent_profile_revision": 123,
"registered_marketplaces": [
{
"name": "<string>",
"source": "<string>",
"ref": "<string>",
"repo_path": "<string>",
"auto_load": false,
"scope": "instance"
}
],
"inherited_marketplaces": [
{
"name": "<string>",
"source": "<string>",
"ref": "<string>",
"repo_path": "<string>",
"auto_load": false,
"scope": "instance"
}
],
"id": "<string>",
"org_id": "<string>",
"org_name": "<string>",
"role": "<string>",
"permissions": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get Current User Saas
Get the current authenticated user with SAAS-specific org info.
Returns user settings along with organization context:
- org_id: Current organization ID
- org_name: Current organization name
- role: User’s role in the organization
- permissions: List of permission strings for the role
curl --request GET \
--url https://api.example.com/api/v1/users/me \
--header 'X-Access-Token: <api-key>'import requests
url = "https://api.example.com/api/v1/users/me"
headers = {"X-Access-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Access-Token': '<api-key>'}};
fetch('https://api.example.com/api/v1/users/me', 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.example.com/api/v1/users/me",
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-Access-Token: <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://api.example.com/api/v1/users/me"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Access-Token", "<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.example.com/api/v1/users/me")
.header("X-Access-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/users/me")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Access-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"language": "<string>",
"user_version": 123,
"remote_runtime_resource_factor": 123,
"secrets_store": "<unknown>",
"enable_sound_notifications": false,
"enable_proactive_conversation_starters": true,
"user_consents_to_analytics": true,
"sandbox_base_container_image": "<string>",
"sandbox_runtime_container_image": "<string>",
"disabled_skills": [
"<string>"
],
"search_api_key": "<string>",
"sandbox_api_key": "<string>",
"max_budget_per_task": 123,
"email": "<string>",
"email_verified": true,
"git_user_name": "<string>",
"git_user_email": "<string>",
"title_llm_profile": "<string>",
"git_full_clone": false,
"v1_enabled": true,
"agent_settings": {},
"conversation_settings": {
"schema_version": 1,
"max_iterations": 500,
"confirmation_mode": false,
"security_analyzer": "llm"
},
"sandbox_grouping_strategy": "NO_GROUPING",
"default_sandbox_spec_id": "<string>",
"llm_profiles": {
"profiles": {},
"active": "<string>"
},
"active_agent_profile_id": "<string>",
"active_agent_profile_revision": 123,
"registered_marketplaces": [
{
"name": "<string>",
"source": "<string>",
"ref": "<string>",
"repo_path": "<string>",
"auto_load": false,
"scope": "instance"
}
],
"inherited_marketplaces": [
{
"name": "<string>",
"source": "<string>",
"ref": "<string>",
"repo_path": "<string>",
"auto_load": false,
"scope": "instance"
}
],
"id": "<string>",
"org_id": "<string>",
"org_name": "<string>",
"role": "<string>",
"permissions": [
"<string>"
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Headers
Query Parameters
If true, return unmasked secret values (e.g. llm_api_key). Requires a valid X-Session-API-Key header for an active sandbox owned by the authenticated user.
Response
Successful Response
User info model for SAAS mode with organization context.
Extends the base UserInfo with SAAS-specific fields for organization membership, role, and permissions.
Show child attributes
Show child attributes
Strategy for grouping conversations within sandboxes.
NO_GROUPING, GROUP_BY_NEWEST, LEAST_RECENTLY_USED, FEWEST_CONVERSATIONS, ADD_TO_ANY Saved LLM profiles and the currently active profile name. See LLMProfiles for the profile-management API.
Show child attributes
Show child attributes
List of marketplace registrations for plugin resolution. Marketplaces with auto_load=True will have their plugins loaded automatically at conversation start. See MarketplaceRegistration for details.
Show child attributes
Show child attributes
Marketplaces inherited from instance or organization level. These are read-only and cannot be modified by the user. Computed at runtime: Instance defaults + Org defaults.
Show child attributes
Show child attributes
Was this page helpful?

