curl --request GET \
--url https://api.galtea.ai/organizations/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.galtea.ai/organizations/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.galtea.ai/organizations/{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.galtea.ai/organizations/{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 => [
"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.galtea.ai/organizations/{id}"
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.galtea.ai/organizations/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.galtea.ai/organizations/{id}")
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_body{
"id": "org_123",
"name": "Example Organization",
"remainingSubscriptionCredits": 1000,
"extraCredits": 500,
"lastWarningAt": "2023-11-07T05:31:56Z",
"warningAt": 100,
"stripeCustomerId": "cus_123",
"samlEntrypointUrl": "<string>",
"samlEntityId": "<string>",
"samlIssuerId": "<string>",
"samlPublicCertificate": "<string>",
"samlSignedResponse": true,
"samlSignedAssertions": true,
"samlForcePasswordAuth": true,
"samlTeamSlug": "<string>",
"enforceMfa": false,
"createdAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"otelProductKey": [
"service.namespace",
"service.name"
],
"otelVersionAttributes": [
"service.version",
"app.agent.model"
],
"otelEndUserAttributes": [
"user.id",
"app.customer.id"
],
"otelInputSourceRule": {
"spanName": "ExecuteActivity:add_user_message",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "user"
}
},
"otelOutputSourceRule": {
"spanName": "ExecuteActivity:save_reply",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "assistant"
}
},
"dataRegion": "GLOBAL"
}{
"error": "Error type",
"message": "Error message description"
}{
"error": "Error type",
"message": "Error message description"
}{
"error": "Error type",
"message": "Error message description"
}Get organization by ID
Get a specific organization by ID. The SAML settings are null unless the caller may update the organization or may read across organizations. See Platform Overview.
curl --request GET \
--url https://api.galtea.ai/organizations/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.galtea.ai/organizations/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.galtea.ai/organizations/{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.galtea.ai/organizations/{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 => [
"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.galtea.ai/organizations/{id}"
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.galtea.ai/organizations/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.galtea.ai/organizations/{id}")
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_body{
"id": "org_123",
"name": "Example Organization",
"remainingSubscriptionCredits": 1000,
"extraCredits": 500,
"lastWarningAt": "2023-11-07T05:31:56Z",
"warningAt": 100,
"stripeCustomerId": "cus_123",
"samlEntrypointUrl": "<string>",
"samlEntityId": "<string>",
"samlIssuerId": "<string>",
"samlPublicCertificate": "<string>",
"samlSignedResponse": true,
"samlSignedAssertions": true,
"samlForcePasswordAuth": true,
"samlTeamSlug": "<string>",
"enforceMfa": false,
"createdAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"otelProductKey": [
"service.namespace",
"service.name"
],
"otelVersionAttributes": [
"service.version",
"app.agent.model"
],
"otelEndUserAttributes": [
"user.id",
"app.customer.id"
],
"otelInputSourceRule": {
"spanName": "ExecuteActivity:add_user_message",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "user"
}
},
"otelOutputSourceRule": {
"spanName": "ExecuteActivity:save_reply",
"attribute": "app.arguments",
"path": "$[0].message.content",
"predicate": {
"path": "$[0].message.role",
"equals": "assistant"
}
},
"dataRegion": "GLOBAL"
}{
"error": "Error type",
"message": "Error message description"
}{
"error": "Error type",
"message": "Error message description"
}{
"error": "Error type",
"message": "Error message description"
}Authorizations
Response
Organization retrieved successfully
The resource attributes that identify a product of this organization, 1 to 10 names. Each product gives its own value for each of them. A name cannot start with "galtea." or be "customer.id". Changing the set of names is refused while a product that uses this key holds values. It cannot be null.
["service.namespace", "service.name"]
The resource attributes whose values make up a version, up to 32 names. A trace that carries no galtea.version.id and no galtea.version.fact.* gets the version built from the listed attributes it carries. Each fact keeps the attribute name as its key. A name cannot start with "galtea." or be "customer.id". An empty list turns this off. A product can replace the list with its own.
["service.version", "app.agent.model"]
Custom span attributes that name the end user of a session and of each of its traces, up to 8 names. Galtea reads them in order, before the end-user attributes it reads for the supported frameworks (user.id, enduser.id, the OpenLLMetry and Langfuse keys). Galtea tries the names in list order: for each name, the earliest span that carries a usable value for that name (a text of 1 to 255 characters) sets the end user. An empty list adds no custom attribute. The framework attributes cannot be turned off. A name cannot start with "galtea." or be "customer.id". A product can replace the list with its own.
["user.id", "app.customer.id"]
The region where Galtea processes the data of this organization: GLOBAL (the default) or EU (EU only). Only a platform admin may change it, and only for an organization with an ENTERPRISE subscription. Read-only for owners and members.
GLOBAL, EU "GLOBAL"