Search Model Version Configs
curl --request GET \
--url https://api.scale.com/v2/model_version_configs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scale.com/v2/model_version_configs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scale.com/v2/model_version_configs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scale.com/v2/model_version_configs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scale.com/v2/model_version_configs")
.header("Authorization", "Bearer <token>")
.asString();[
{
"id": "<string>",
"name": "<string>",
"url": "<string>",
"params": {},
"customerId": "<string>",
"modelEndpoint": "<string>",
"status": "active",
"createdAt": "2023-11-07T05:31:56Z"
}
]{
"status_code": 500,
"error": "Missing or invalid modelId."
}{
"status_code": 500,
"error": "Internal server error."
}Model Management
Search Model Version Configs
Fetches a list of all registered model version configs for a given Model Endpoint.
GET
/
v2
/
model_version_configs
Search Model Version Configs
curl --request GET \
--url https://api.scale.com/v2/model_version_configs \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scale.com/v2/model_version_configs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.scale.com/v2/model_version_configs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.scale.com/v2/model_version_configs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.scale.com/v2/model_version_configs")
.header("Authorization", "Bearer <token>")
.asString();[
{
"id": "<string>",
"name": "<string>",
"url": "<string>",
"params": {},
"customerId": "<string>",
"modelEndpoint": "<string>",
"status": "active",
"createdAt": "2023-11-07T05:31:56Z"
}
]{
"status_code": 500,
"error": "Missing or invalid modelId."
}{
"status_code": 500,
"error": "Internal server error."
}Authorizations
bearerAuthbasicAuth
Your API Key is the Bearer token. See the Authentication section to learn how to access your key.
Query Parameters
Model Endpoint ID
Response
Successfully retrieved model version configs.
Unique identifier for the Model Version Config.
Human-readable name for the Model Version Config.
Model endpoint URL.
Configuration parameters for the model.
Owner of the Model Version Config.
ID of the parent Model Endpoint.
Available options:
active, errored, archived 
