curl --request GET \
--url https://platformapi.comfy.org/deploy/v1/deployments \
--header 'Authorization: Bearer <token>'import requests
url = "https://platformapi.comfy.org/deploy/v1/deployments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platformapi.comfy.org/deploy/v1/deployments', 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://platformapi.comfy.org/deploy/v1/deployments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://platformapi.comfy.org/deploy/v1/deployments"
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://platformapi.comfy.org/deploy/v1/deployments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platformapi.comfy.org/deploy/v1/deployments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"deployments": [
{
"id": "<string>",
"status": "queued",
"releaseId": "<string>",
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"projectId": "<string>",
"name": "<string>",
"computeConfig": {
"gpuClass": "<string>",
"region": "<string>",
"min": 1,
"max": 2,
"keepWarmSeconds": 615,
"startupArgs": [
"<string>"
]
},
"endpointUrl": "<string>",
"progress": {
"step": "staging_models",
"attempt": 123,
"startedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"modelsDone": 123,
"modelsTotal": 123,
"bytesDone": 123,
"bytesTotal": 123,
"bytesTotalIsFloor": true,
"currentModel": "<string>",
"bytesPerSecond": 123,
"etaSeconds": 123,
"placingModels": true
},
"waitingForBuild": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"deletedBy": "<string>"
}
],
"total": 123,
"hasMore": true,
"nextCursor": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}List the caller's deployments
Paginated, newest first. Scoped to the caller’s workspace. Deleted deployments are included, carrying deletedAt and deletedBy. A deployment is never removed from this list, which is the point: one that vanished left nobody a record of what had been there or who took it away. A deleted deployment keeps the status its release settled it at, so it reads as stopped alongside the rest.
curl --request GET \
--url https://platformapi.comfy.org/deploy/v1/deployments \
--header 'Authorization: Bearer <token>'import requests
url = "https://platformapi.comfy.org/deploy/v1/deployments"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platformapi.comfy.org/deploy/v1/deployments', 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://platformapi.comfy.org/deploy/v1/deployments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://platformapi.comfy.org/deploy/v1/deployments"
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://platformapi.comfy.org/deploy/v1/deployments")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platformapi.comfy.org/deploy/v1/deployments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"deployments": [
{
"id": "<string>",
"status": "queued",
"releaseId": "<string>",
"createdBy": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"projectId": "<string>",
"name": "<string>",
"computeConfig": {
"gpuClass": "<string>",
"region": "<string>",
"min": 1,
"max": 2,
"keepWarmSeconds": 615,
"startupArgs": [
"<string>"
]
},
"endpointUrl": "<string>",
"progress": {
"step": "staging_models",
"attempt": 123,
"startedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"modelsDone": 123,
"modelsTotal": 123,
"bytesDone": 123,
"bytesTotal": 123,
"bytesTotalIsFloor": true,
"currentModel": "<string>",
"bytesPerSecond": 123,
"etaSeconds": 123,
"placingModels": true
},
"waitingForBuild": "<string>",
"deletedAt": "2023-11-07T05:31:56Z",
"deletedBy": "<string>"
}
],
"total": 123,
"hasMore": true,
"nextCursor": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}쿼리 매개변수
Lifecycle state. unhealthy is a recoverable post-ready state: the deployment was serving but its endpoint degraded or vanished, and the control plane will move it back to ready if it recovers. stop_failed means a stop ran but could not release the compute, so the deployment may still be holding (and billing for) its endpoint; it is not terminal, and stopping it again retries the release. stopped and failed are terminal.
queued, provisioning, starting, ready, unhealthy, stopping, stop_failed, stopped, failed Only the deployments that belong to this project: a project id, or default for the workspace's default project, which holds every deployment created without one. The default project is named only by default: its own id, like any id no deployment records, matches nothing. It narrows the list and grants nothing: every workspace member can list every project's deployments.