Activate a pending BYO LLM inference credential
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enforce": true
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate"
payload = { "enforce": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enforce: true})
};
fetch('https://api.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate', 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.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'enforce' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate"
payload := strings.NewReader("{\n \"enforce\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://api.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enforce\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enforce\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"config": {
"provider": "anthropic",
"region": "<string>",
"base_url": "<string>",
"credential_transport": "api_key",
"fingerprint": "<string>",
"key_alias": "<string>",
"state": "pending",
"enforced": true,
"justification": "<string>",
"pooled_fallback_enabled": true,
"rotation_count": 1,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"activated_at": "2023-11-07T05:31:56Z",
"rotated_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z"
},
"providers": [
{
"provider": "anthropic",
"label": "<string>",
"description": "<string>",
"requiresBaseUrl": true,
"exampleBaseUrl": "<string>",
"transports": [
"api_key"
]
}
],
"posture": {
"enabled": true,
"enforced": true,
"state": "pending",
"provider": "anthropic",
"region": "<string>",
"base_url": "<string>",
"fingerprint": "<string>",
"pooled_fallback_enabled": true
},
"provisioning_descriptor": {
"provider": "anthropic",
"region": "<string>",
"baseURL": "<string>",
"credentialTransport": "api_key",
"fingerprint": "<string>"
}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Agents
Activate a pending BYO LLM inference credential
Marks a pending credential active. Pass enforce=true to begin routing this tenant’s agent inference through the customer credential — self-serve, with no operator provisioning step. Requires agents:write with the owner or admin role. Writes are audit-logged.
POST
/
api
/
v1
/
agents
/
llm-provider-credential
/
activate
Activate a pending BYO LLM inference credential
curl --request POST \
--url https://api.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"enforce": true
}
'import requests
url = "https://api.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate"
payload = { "enforce": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({enforce: true})
};
fetch('https://api.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate', 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.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'enforce' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate"
payload := strings.NewReader("{\n \"enforce\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.post("https://api.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"enforce\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/agents/llm-provider-credential/activate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enforce\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"config": {
"provider": "anthropic",
"region": "<string>",
"base_url": "<string>",
"credential_transport": "api_key",
"fingerprint": "<string>",
"key_alias": "<string>",
"state": "pending",
"enforced": true,
"justification": "<string>",
"pooled_fallback_enabled": true,
"rotation_count": 1,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"activated_at": "2023-11-07T05:31:56Z",
"rotated_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z"
},
"providers": [
{
"provider": "anthropic",
"label": "<string>",
"description": "<string>",
"requiresBaseUrl": true,
"exampleBaseUrl": "<string>",
"transports": [
"api_key"
]
}
],
"posture": {
"enabled": true,
"enforced": true,
"state": "pending",
"provider": "anthropic",
"region": "<string>",
"base_url": "<string>",
"fingerprint": "<string>",
"pooled_fallback_enabled": true
},
"provisioning_descriptor": {
"provider": "anthropic",
"region": "<string>",
"baseURL": "<string>",
"credentialTransport": "api_key",
"fingerprint": "<string>"
}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Body
application/json
When true, immediately route this tenant's agent inference through the credential.
⌘I