List dynamic routes
curl --request GET \
--url https://api.opper.ai/management/v1/dynamic-routes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.opper.ai/management/v1/dynamic-routes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opper.ai/management/v1/dynamic-routes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"draft_dirty": true,
"invocation_model": "<string>",
"name": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"uuid": [
123
],
"active_version_number": 123,
"active_version_uuid": [
123
],
"deleted_at": "2023-11-07T05:31:56Z",
"latest_version_number": 123
}
],
"meta": {
"total_count": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}{
"allowed_plans": [
"<string>"
],
"current_plan": "<string>",
"error": "<string>",
"required_scope": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}Management
List dynamic routes
Lists every dynamic route in the calling organization with its active and latest version numbers. meta.default_classifier_chain is the model chain a classifier node uses when it does not pin one. Requires the dynamic_routes:read scope.
GET
/
management
/
v1
/
dynamic-routes
List dynamic routes
curl --request GET \
--url https://api.opper.ai/management/v1/dynamic-routes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.opper.ai/management/v1/dynamic-routes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opper.ai/management/v1/dynamic-routes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"created_at": "2023-11-07T05:31:56Z",
"description": "<string>",
"draft_dirty": true,
"invocation_model": "<string>",
"name": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"uuid": [
123
],
"active_version_number": 123,
"active_version_uuid": [
123
],
"deleted_at": "2023-11-07T05:31:56Z",
"latest_version_number": 123
}
],
"meta": {
"total_count": 123
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}{
"allowed_plans": [
"<string>"
],
"current_plan": "<string>",
"error": "<string>",
"required_scope": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}Authorizations
Management API authentication. Pass an op-mak-… management token as a Bearer token. Runtime op-… API keys are rejected with 403 — they belong on the data-plane endpoints. Mint a management key from the platform UI under Settings → API keys.