/api/aliases/{name}Repoint a named alias
Points the alias at another model as a new revision; earlier revisions stay available for rollback. Org admin or the provisioning key.
Authentication: Bearer API key in the Authorization header
Path parameters
namestringrequiredThe named alias, as callers send it in
model.
Request body
org_idstringrequiredmodelstringrequired
Responses
200The alias.
Response
alias_idstringrequirednamestringrequiredorg_idstringrequiredactivebooleanrequiredcurrent_revision_idstring | nullrequiredtarget_model_slugstring | nullrequiredtarget_model_idstring | nullrequired
401Missing, unknown or revoked API key.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
403The key is not a provisioning key (inference keys are refused, reads included), or it is a customer-plan key.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
404Unknown alias or model.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
409The model has no routable deployment yet.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
422The body or query failed validation.
Response
detailarray<object>requireddetail
typestringlocarray<string | integer>msgstring
Request
curl -X PUT 'https://api.experientiallabs.ai/api/aliases/coding' \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"org_id": "3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10",
"model": "gpt-6-astra"
}'Response
{
"alias_id": "named-4f2a9c1e7b3d4e5f8a6c0d2e1b9f7a3c",
"name": "coding",
"org_id": "3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10",
"active": true,
"current_revision_id": "nrev-2b4d6f8a0c1e3a5c7e9b1d3f5a7c9e0b",
"target_model_slug": "gpt-6-astra",
"target_model_id": "4b6d8f0a-2c4e-4a6c-8e0a-2c4e6a8c0e25"
}https://api.experientiallabs.ai/api/aliases/coding