Get Org
curl --request GET \
--url https://api.example.com/api/organizations/{org_id} \
--header 'X-Access-Token: <api-key>'import requests
url = "https://api.example.com/api/organizations/{org_id}"
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/organizations/{org_id}', 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/organizations/{org_id}",
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/organizations/{org_id}"
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/organizations/{org_id}")
.header("X-Access-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/organizations/{org_id}")
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{
"id": "<string>",
"name": "<string>",
"contact_name": "<string>",
"contact_email": "<string>",
"conversation_expiration": 123,
"remote_runtime_resource_factor": 123,
"billing_margin": 123,
"enable_proactive_conversation_starters": true,
"sandbox_base_container_image": "<string>",
"sandbox_runtime_container_image": "<string>",
"org_version": 0,
"agent_settings": {
"schema_version": 5,
"agent_kind": "openhands",
"agent": "CodeActAgent",
"llm": {
"is_subscription": true,
"model": "gpt-5.5",
"api_key": "<string>",
"auth_type": "api_key",
"subscription_vendor": "<string>",
"base_url": "<string>",
"api_version": "<string>",
"aws_access_key_id": "<string>",
"aws_secret_access_key": "<string>",
"aws_session_token": "<string>",
"aws_region_name": "<string>",
"aws_profile_name": "<string>",
"aws_role_name": "<string>",
"aws_session_name": "<string>",
"aws_bedrock_runtime_endpoint": "<string>",
"openrouter_site_url": "https://docs.all-hands.dev/",
"openrouter_app_name": "OpenHands",
"num_retries": 5,
"retry_multiplier": 8,
"retry_min_wait": 8,
"retry_max_wait": 64,
"timeout": 300,
"max_message_chars": 30000,
"temperature": 1,
"top_p": 0.5,
"top_k": 1,
"max_input_tokens": 2,
"max_output_tokens": 2,
"model_canonical_name": "<string>",
"api_mode": "auto",
"capability_overrides": {},
"extra_headers": {},
"input_cost_per_token": 1,
"output_cost_per_token": 1,
"ollama_base_url": "<string>",
"stream": false,
"drop_params": true,
"modify_params": true,
"disable_vision": true,
"disable_stop_word": false,
"caching_prompt": true,
"log_completions": false,
"log_completions_folder": "logs/completions",
"custom_tokenizer": "<string>",
"native_tool_calling": true,
"force_string_serializer": true,
"inline_image_urls": true,
"reasoning_effort": "high",
"enable_encrypted_reasoning": true,
"prompt_cache_retention": "24h",
"extended_thinking_budget": 200000,
"seed": 123,
"usage_id": "default",
"litellm_extra_body": {}
},
"tools": [
{
"name": "<string>",
"params": {}
}
],
"enable_sub_agents": false,
"enable_switch_llm_tool": true,
"tool_concurrency_limit": 1,
"mcp_config": {},
"agent_context": {
"skills": [
{
"name": "<string>",
"content": "<string>",
"trigger": {
"keywords": [
"<string>"
],
"type": "keyword"
},
"source": "<string>",
"mcp_tools": {},
"inputs": [
{
"name": "<string>",
"description": "<string>"
}
],
"is_agentskills_format": false,
"version": "1.0.0",
"description": "<string>",
"license": "<string>",
"compatibility": "<string>",
"metadata": {},
"allowed_tools": [
"<string>"
],
"disable_model_invocation": false,
"resources": {
"skill_root": "<string>",
"scripts": [
"<string>"
],
"references": [
"<string>"
],
"assets": [
"<string>"
]
}
}
],
"system_message_suffix": "<string>",
"user_message_suffix": "<string>",
"load_user_skills": false,
"load_public_skills": false,
"marketplace_path": "marketplaces/default.json",
"registered_marketplaces": [
{
"name": "<string>",
"source": "<string>",
"ref": "<string>",
"repo_path": "<string>",
"auto_load": false
}
],
"load_project_skills": false,
"load_memory": false,
"disabled_skills": [
"<string>"
],
"secrets": {},
"current_datetime": "2023-11-07T05:31:56Z"
},
"condenser": {
"enabled": true,
"max_size": 240,
"condenser_kind": "llm_summarizing",
"max_tokens": 1,
"keep_first": 2,
"minimum_progress": 0.1,
"hard_context_reset_max_retries": 5,
"hard_context_reset_context_scaling": 0.8
},
"verification": {
"critic_enabled": false,
"critic_mode": "finish_and_message",
"enable_iterative_refinement": false,
"critic_threshold": 0.6,
"max_refinement_iterations": 3,
"critic_server_url": "<string>",
"critic_model_name": "<string>",
"critic_api_key": "<unknown>"
}
},
"conversation_settings": {
"schema_version": 1,
"max_iterations": 500,
"confirmation_mode": false,
"security_analyzer": "llm"
},
"search_api_key": "<string>",
"sandbox_api_key": "<string>",
"max_budget_per_task": 123,
"v1_enabled": true,
"credits": 123,
"is_personal": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Orgs
Get Org
deprecated
Get organization details by ID through the deprecated detail route.
GET
/
api
/
organizations
/
{org_id}
Get Org
curl --request GET \
--url https://api.example.com/api/organizations/{org_id} \
--header 'X-Access-Token: <api-key>'import requests
url = "https://api.example.com/api/organizations/{org_id}"
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/organizations/{org_id}', 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/organizations/{org_id}",
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/organizations/{org_id}"
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/organizations/{org_id}")
.header("X-Access-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/organizations/{org_id}")
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{
"id": "<string>",
"name": "<string>",
"contact_name": "<string>",
"contact_email": "<string>",
"conversation_expiration": 123,
"remote_runtime_resource_factor": 123,
"billing_margin": 123,
"enable_proactive_conversation_starters": true,
"sandbox_base_container_image": "<string>",
"sandbox_runtime_container_image": "<string>",
"org_version": 0,
"agent_settings": {
"schema_version": 5,
"agent_kind": "openhands",
"agent": "CodeActAgent",
"llm": {
"is_subscription": true,
"model": "gpt-5.5",
"api_key": "<string>",
"auth_type": "api_key",
"subscription_vendor": "<string>",
"base_url": "<string>",
"api_version": "<string>",
"aws_access_key_id": "<string>",
"aws_secret_access_key": "<string>",
"aws_session_token": "<string>",
"aws_region_name": "<string>",
"aws_profile_name": "<string>",
"aws_role_name": "<string>",
"aws_session_name": "<string>",
"aws_bedrock_runtime_endpoint": "<string>",
"openrouter_site_url": "https://docs.all-hands.dev/",
"openrouter_app_name": "OpenHands",
"num_retries": 5,
"retry_multiplier": 8,
"retry_min_wait": 8,
"retry_max_wait": 64,
"timeout": 300,
"max_message_chars": 30000,
"temperature": 1,
"top_p": 0.5,
"top_k": 1,
"max_input_tokens": 2,
"max_output_tokens": 2,
"model_canonical_name": "<string>",
"api_mode": "auto",
"capability_overrides": {},
"extra_headers": {},
"input_cost_per_token": 1,
"output_cost_per_token": 1,
"ollama_base_url": "<string>",
"stream": false,
"drop_params": true,
"modify_params": true,
"disable_vision": true,
"disable_stop_word": false,
"caching_prompt": true,
"log_completions": false,
"log_completions_folder": "logs/completions",
"custom_tokenizer": "<string>",
"native_tool_calling": true,
"force_string_serializer": true,
"inline_image_urls": true,
"reasoning_effort": "high",
"enable_encrypted_reasoning": true,
"prompt_cache_retention": "24h",
"extended_thinking_budget": 200000,
"seed": 123,
"usage_id": "default",
"litellm_extra_body": {}
},
"tools": [
{
"name": "<string>",
"params": {}
}
],
"enable_sub_agents": false,
"enable_switch_llm_tool": true,
"tool_concurrency_limit": 1,
"mcp_config": {},
"agent_context": {
"skills": [
{
"name": "<string>",
"content": "<string>",
"trigger": {
"keywords": [
"<string>"
],
"type": "keyword"
},
"source": "<string>",
"mcp_tools": {},
"inputs": [
{
"name": "<string>",
"description": "<string>"
}
],
"is_agentskills_format": false,
"version": "1.0.0",
"description": "<string>",
"license": "<string>",
"compatibility": "<string>",
"metadata": {},
"allowed_tools": [
"<string>"
],
"disable_model_invocation": false,
"resources": {
"skill_root": "<string>",
"scripts": [
"<string>"
],
"references": [
"<string>"
],
"assets": [
"<string>"
]
}
}
],
"system_message_suffix": "<string>",
"user_message_suffix": "<string>",
"load_user_skills": false,
"load_public_skills": false,
"marketplace_path": "marketplaces/default.json",
"registered_marketplaces": [
{
"name": "<string>",
"source": "<string>",
"ref": "<string>",
"repo_path": "<string>",
"auto_load": false
}
],
"load_project_skills": false,
"load_memory": false,
"disabled_skills": [
"<string>"
],
"secrets": {},
"current_datetime": "2023-11-07T05:31:56Z"
},
"condenser": {
"enabled": true,
"max_size": 240,
"condenser_kind": "llm_summarizing",
"max_tokens": 1,
"keep_first": 2,
"minimum_progress": 0.1,
"hard_context_reset_max_retries": 5,
"hard_context_reset_context_scaling": 0.8
},
"verification": {
"critic_enabled": false,
"critic_mode": "finish_and_message",
"enable_iterative_refinement": false,
"critic_threshold": 0.6,
"max_refinement_iterations": 3,
"critic_server_url": "<string>",
"critic_model_name": "<string>",
"critic_api_key": "<unknown>"
}
},
"conversation_settings": {
"schema_version": 1,
"max_iterations": 500,
"confirmation_mode": false,
"security_analyzer": "llm"
},
"search_api_key": "<string>",
"sandbox_api_key": "<string>",
"max_budget_per_task": 123,
"v1_enabled": true,
"credits": 123,
"is_personal": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Headers
Path Parameters
Response
Successful Response
Response model for organization.
Settings for a standard LLM-backed :class:Agent.
This is the long-standing AgentSettings shape; fields here build
the default Agent (LLM + tools + MCP + condenser + critic).
- OpenHandsAgentSettings
- LLMAgentSettings
- ACPAgentSettings
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I

