curl --request GET \
--url https://dev.api.galtea.ai/organizations/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.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://dev.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://dev.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://dev.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://dev.api.galtea.ai/organizations/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.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": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}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://dev.api.galtea.ai/organizations/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.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://dev.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://dev.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://dev.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://dev.api.galtea.ai/organizations/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.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": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}{
"error": "NotFound",
"message": "Product not found"
}Authorizations
API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....
Path Parameters
Organization ID
"org_123"
Response
Organization retrieved successfully
"org_123"
"Example Organization"
1000
500
The credit balance below which members get a low-credit warning, from 0 up to the monthly credits of the plan. Null turns the warning off.
100
"cus_123"
When true, every member of the organization must complete an MFA challenge to sign in. Settable by Owners (via update) and Admins (via create or update).
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"]
Recovers a turn's input from a non-LLM span for every product with no rule of its own. A version rule wins over a product rule, and a product rule over this one. Null clears it.
Show child attributes
Show child attributes
Recovers a turn's output from a non-LLM span for every product with no rule of its own. A version rule wins over a product rule, and a product rule over this one. Null clears it.
Show child attributes
Show child attributes
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"