Preview alias routing
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/aliases/{id}/route \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/aliases/{id}/route"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/aliases/{id}/route', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"primary": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"technical_name": "<string>"
},
"fallbacks": [],
"excluded": []
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Models
Preview alias routing
Simulate the routing resolution for this alias as it would happen at request time.
Returns the model that would be selected as primary, the ordered list of fallbacks, and any models currently excluded from routing (e.g. because they are unhealthy).
This is useful for debugging alias configuration and verifying that health checks and priority settings produce the expected routing outcome.
GET
/
api
/
v3
/
aliases
/
{id}
/
route
Preview alias routing
curl --request GET \
--url https://paradigm.lighton.ai/api/v3/aliases/{id}/route \
--header 'Authorization: Bearer <token>'import requests
url = "https://paradigm.lighton.ai/api/v3/aliases/{id}/route"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://paradigm.lighton.ai/api/v3/aliases/{id}/route', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"primary": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"technical_name": "<string>"
},
"fallbacks": [],
"excluded": []
}{
"detail": "System is under maintenance.",
"error": "service_maintenance",
"mode": "full_shutdown",
"reason": "<string>",
"started_at": "2023-11-07T05:31:56Z",
"endpoint_category_names": [
"<string>"
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.