Get current organization
GET
/
v1
/
identity
/
org
Get current organization
curl --request GET \
--url https://api-sandbox.featherhq.com/v1/identity/org \
--header 'x-api-key: <api-key>'import requests
url = "https://api-sandbox.featherhq.com/v1/identity/org"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api-sandbox.featherhq.com/v1/identity/org', 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-sandbox.featherhq.com/v1/identity/org",
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>"
],
]);
$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-sandbox.featherhq.com/v1/identity/org"
req, _ := http.NewRequest("GET", url, nil)
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-sandbox.featherhq.com/v1/identity/org")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.featherhq.com/v1/identity/org")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clerk_org_id": "<string>",
"name": "<string>",
"slug": "<string>",
"settings": {
"retry": {
"max_retries": 0,
"base_delay_seconds": 1,
"max_delay_seconds": 30,
"jitter": true
},
"kb_pii": {
"enabled": false
},
"kb_role_clearance_map": {},
"kb_role_audience_map": {},
"kb_classification_mode": "auto",
"kb_acl_oversample_factor": 2,
"call_window": {
"enabled": false,
"timezone": "America/Los_Angeles",
"window_start": "09:00:00",
"window_end": "17:00:00",
"days_of_week": [
123
]
},
"call_expiry": {
"enabled": false,
"days": 0,
"hours": 0
},
"holiday_calendar": {
"enabled": true,
"holidays": [
{
"start_date": "2023-12-25",
"name": "<string>",
"end_date": "2023-12-25",
"recurring": false
}
]
},
"voice_entitlements": {
"max_active_calls": 5000,
"outbound_cps": 5000,
"queue_weight": 500,
"priority_class": 1,
"priority_aging_max_wait_seconds": 43200,
"inbound_reserved_calls": 5000
},
"memory": {
"min_user_turns": 1,
"fact_cap": 50,
"retention_days": 2
},
"inline_kb_sources": true,
"current_time": {
"enabled": true,
"timezone": "<string>"
}
},
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"message": "<string>",
"retryable": true,
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"retryable": true,
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"retryable": true,
"retry_after": 123
}Authorizations
Response
Successful Response
Typed schema for Organization.settings JSON column.
Show child attributes
Show child attributes
Was this page helpful?
⌘I
Get current organization
curl --request GET \
--url https://api-sandbox.featherhq.com/v1/identity/org \
--header 'x-api-key: <api-key>'import requests
url = "https://api-sandbox.featherhq.com/v1/identity/org"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api-sandbox.featherhq.com/v1/identity/org', 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-sandbox.featherhq.com/v1/identity/org",
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>"
],
]);
$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-sandbox.featherhq.com/v1/identity/org"
req, _ := http.NewRequest("GET", url, nil)
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-sandbox.featherhq.com/v1/identity/org")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-sandbox.featherhq.com/v1/identity/org")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clerk_org_id": "<string>",
"name": "<string>",
"slug": "<string>",
"settings": {
"retry": {
"max_retries": 0,
"base_delay_seconds": 1,
"max_delay_seconds": 30,
"jitter": true
},
"kb_pii": {
"enabled": false
},
"kb_role_clearance_map": {},
"kb_role_audience_map": {},
"kb_classification_mode": "auto",
"kb_acl_oversample_factor": 2,
"call_window": {
"enabled": false,
"timezone": "America/Los_Angeles",
"window_start": "09:00:00",
"window_end": "17:00:00",
"days_of_week": [
123
]
},
"call_expiry": {
"enabled": false,
"days": 0,
"hours": 0
},
"holiday_calendar": {
"enabled": true,
"holidays": [
{
"start_date": "2023-12-25",
"name": "<string>",
"end_date": "2023-12-25",
"recurring": false
}
]
},
"voice_entitlements": {
"max_active_calls": 5000,
"outbound_cps": 5000,
"queue_weight": 500,
"priority_class": 1,
"priority_aging_max_wait_seconds": 43200,
"inbound_reserved_calls": 5000
},
"memory": {
"min_user_turns": 1,
"fact_cap": 50,
"retention_days": 2
},
"inline_kb_sources": true,
"current_time": {
"enabled": true,
"timezone": "<string>"
}
},
"is_active": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"error": "<string>",
"message": "<string>",
"retryable": true,
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"retryable": true,
"retry_after": 123
}{
"error": "<string>",
"message": "<string>",
"retryable": true,
"retry_after": 123
}