Retrieve a Model Version Config
curl --request GET \
--url https://api.scale.com/v2/model_version_configs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scale.com/v2/model_version_configs/{id}"
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/{id}', 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/{id}"
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/{id}")
.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 modelVersionId."
}{
"status_code": 500,
"error": "Internal server error."
}Model Management
Retrieve a Model Version Config
Fetches details of a specific Model Version Config.
GET
/
v2
/
model_version_configs
/
{id}
Retrieve a Model Version Config
curl --request GET \
--url https://api.scale.com/v2/model_version_configs/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.scale.com/v2/model_version_configs/{id}"
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/{id}', 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/{id}"
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/{id}")
.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 modelVersionId."
}{
"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.
Path Parameters
Model Version Config ID
Response
Successfully retrieved model version config details.
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 
