List model deprecation findings for a project
curl --request GET \
--url https://api.zespan.com/v1/projects/{id}/model-lifecycleimport requests
url = "https://api.zespan.com/v1/projects/{id}/model-lifecycle"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.zespan.com/v1/projects/{id}/model-lifecycle', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zespan.com/v1/projects/{id}/model-lifecycle",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zespan.com/v1/projects/{id}/model-lifecycle"
req, _ := http.NewRequest("GET", url, nil)
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.zespan.com/v1/projects/{id}/model-lifecycle")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zespan.com/v1/projects/{id}/model-lifecycle")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"findings": [
{
"id": "<string>",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environmentId": "<string>",
"environmentSlugs": [
"<string>"
],
"model": "<string>",
"provider": "<string>",
"kind": "deprecation",
"deprecatedAt": "2023-11-07T05:31:56Z",
"retiresAt": "2023-11-07T05:31:56Z",
"daysRemaining": 123,
"band": 90,
"retired": true,
"callVolume30d": 123,
"cost30dUsd": 123,
"affectedAgents": [
"<string>"
],
"affectedPrompts": [
"<string>"
],
"successorModel": "<string>",
"successorCallVolume30d": 123,
"costDeltaPerCallUsd": 123,
"comparisonBasis": "organic_traffic",
"lifecycleSource": "announced",
"lifecycleCheckedAt": "2023-11-07T05:31:56Z",
"status": "open",
"dismissedReason": "<string>",
"dismissedAt": "2023-11-07T05:31:56Z",
"detectedAt": "2023-11-07T05:31:56Z"
}
]
}{
"error": "Unauthorized",
"code": "rate_limit_exceeded"
}List model deprecation findings for a project
Returns findings from the daily deprecation scan for this project, soonest deadline first (an already-retired model, with a negative daysRemaining, sorts to the very top). Backs the Model Lifecycle dashboard page, the Overview widget, and the Models page banner.
Authenticated with a dashboard session (browser cookie), not x-api-key, and requires the dashboard:read permission.
GET
/
v1
/
projects
/
{id}
/
model-lifecycle
List model deprecation findings for a project
curl --request GET \
--url https://api.zespan.com/v1/projects/{id}/model-lifecycleimport requests
url = "https://api.zespan.com/v1/projects/{id}/model-lifecycle"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.zespan.com/v1/projects/{id}/model-lifecycle', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zespan.com/v1/projects/{id}/model-lifecycle",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zespan.com/v1/projects/{id}/model-lifecycle"
req, _ := http.NewRequest("GET", url, nil)
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.zespan.com/v1/projects/{id}/model-lifecycle")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zespan.com/v1/projects/{id}/model-lifecycle")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"findings": [
{
"id": "<string>",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"environmentId": "<string>",
"environmentSlugs": [
"<string>"
],
"model": "<string>",
"provider": "<string>",
"kind": "deprecation",
"deprecatedAt": "2023-11-07T05:31:56Z",
"retiresAt": "2023-11-07T05:31:56Z",
"daysRemaining": 123,
"band": 90,
"retired": true,
"callVolume30d": 123,
"cost30dUsd": 123,
"affectedAgents": [
"<string>"
],
"affectedPrompts": [
"<string>"
],
"successorModel": "<string>",
"successorCallVolume30d": 123,
"costDeltaPerCallUsd": 123,
"comparisonBasis": "organic_traffic",
"lifecycleSource": "announced",
"lifecycleCheckedAt": "2023-11-07T05:31:56Z",
"status": "open",
"dismissedReason": "<string>",
"dismissedAt": "2023-11-07T05:31:56Z",
"detectedAt": "2023-11-07T05:31:56Z"
}
]
}{
"error": "Unauthorized",
"code": "rate_limit_exceeded"
}Was this page helpful?
⌘I

