Save the Okta SSO configuration
curl --request PUT \
--url https://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config \
--header 'Content-Type: application/json' \
--cookie session= \
--data '
{
"okta_domain": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"default_role": "member",
"group_role_mapping": {},
"enforced": false
}
'import requests
url = "https://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config"
payload = {
"okta_domain": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"default_role": "member",
"group_role_mapping": {},
"enforced": False
}
headers = {
"cookie": "session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
okta_domain: '<string>',
client_id: '<string>',
client_secret: '<string>',
default_role: 'member',
group_role_mapping: {},
enforced: false
})
};
fetch('https://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config', 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://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'okta_domain' => '<string>',
'client_id' => '<string>',
'client_secret' => '<string>',
'default_role' => 'member',
'group_role_mapping' => [
],
'enforced' => false
]),
CURLOPT_COOKIE => "session=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config"
payload := strings.NewReader("{\n \"okta_domain\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"default_role\": \"member\",\n \"group_role_mapping\": {},\n \"enforced\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "session=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config")
.header("cookie", "session=")
.header("Content-Type", "application/json")
.body("{\n \"okta_domain\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"default_role\": \"member\",\n \"group_role_mapping\": {},\n \"enforced\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["cookie"] = 'session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"okta_domain\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"default_role\": \"member\",\n \"group_role_mapping\": {},\n \"enforced\": false\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}Save the Okta SSO configuration
Creates or updates the Okta configuration. The client secret is encrypted at rest and never returned. It’s required the first time; on later saves, omit it to keep the stored secret.
Auth: session. Permission: manage_sso.
PUT
/
orgs
/
{orgId}
/
sso-config
Save the Okta SSO configuration
curl --request PUT \
--url https://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config \
--header 'Content-Type: application/json' \
--cookie session= \
--data '
{
"okta_domain": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"default_role": "member",
"group_role_mapping": {},
"enforced": false
}
'import requests
url = "https://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config"
payload = {
"okta_domain": "<string>",
"client_id": "<string>",
"client_secret": "<string>",
"default_role": "member",
"group_role_mapping": {},
"enforced": False
}
headers = {
"cookie": "session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'session=', 'Content-Type': 'application/json'},
body: JSON.stringify({
okta_domain: '<string>',
client_id: '<string>',
client_secret: '<string>',
default_role: 'member',
group_role_mapping: {},
enforced: false
})
};
fetch('https://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config', 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://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'okta_domain' => '<string>',
'client_id' => '<string>',
'client_secret' => '<string>',
'default_role' => 'member',
'group_role_mapping' => [
],
'enforced' => false
]),
CURLOPT_COOKIE => "session=",
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config"
payload := strings.NewReader("{\n \"okta_domain\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"default_role\": \"member\",\n \"group_role_mapping\": {},\n \"enforced\": false\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("cookie", "session=")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config")
.header("cookie", "session=")
.header("Content-Type", "application/json")
.body("{\n \"okta_domain\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"default_role\": \"member\",\n \"group_role_mapping\": {},\n \"enforced\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pillarforge.corepillar.ai/api/v1/orgs/{orgId}/sso-config")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["cookie"] = 'session='
request["Content-Type"] = 'application/json'
request.body = "{\n \"okta_domain\": \"<string>\",\n \"client_id\": \"<string>\",\n \"client_secret\": \"<string>\",\n \"default_role\": \"member\",\n \"group_role_mapping\": {},\n \"enforced\": false\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {}
}
}Authorizations
The session cookie set when you sign in to AgentHub or ModelHub in a browser. The cookie name shown here is illustrative. There are no API tokens for these endpoints.
Path Parameters
Organization id.
Body
application/json
Your Okta domain, for example yourcompany.okta.com.
Required when no configuration exists yet.
Role for users whose Okta groups match no mapping.
Available options:
admin, member, viewer Okta group name to role.
Show child attributes
Show child attributes
When true, members must sign in through Okta.
Response
Saved.
Show child attributes
Show child attributes