curl --request GET \
--url https://platformapi.comfy.org/builder/v1/releases/{id}/routes \
--header 'Authorization: Bearer <token>'import requests
url = "https://platformapi.comfy.org/builder/v1/releases/{id}/routes"
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/builder/v1/releases/{id}/routes', 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/builder/v1/releases/{id}/routes",
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/builder/v1/releases/{id}/routes"
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/builder/v1/releases/{id}/routes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platformapi.comfy.org/builder/v1/releases/{id}/routes")
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{
"routes": [
{
"method": "GET",
"path": "/rgthree/api/{type}/info",
"pack": "rgthree-comfy"
}
],
"static": [
{
"prefix": "/kjweb_async",
"pack": "comfyui-kjnodes"
}
]
}{
"error": "<string>",
"message": "<string>"
}Read the HTTP routes a release's custom node packs register, for one built target
Returns the routes and static folders the release’s custom node packs registered on ComfyUI’s web server, captured when the build check booted the target’s ComfyUI on CPU. A route is listed when its handler’s code lives under a custom_nodes folder, and a static folder when its directory does, each named by its pack; ComfyUI’s own routes, the /api copy ComfyUI adds for each route a pack registers on its route table (PromptServer.instance.routes), and the folders ComfyUI serves for a pack under /extensions/ and /api/workflow_templates/ are left out. A route a pack adds straight onto the app or onto a sub-application gets no /api copy, so it is listed once, at the path the pack gave it. A pack that failed to import on the CPU-only build check registered nothing there, so its routes are absent. The list is written by the code the build runs, so it is a claim by the build, not a verdict: a caller must not let it override a path the caller serves itself. os and gpu select a target; the default is the first ready one. 404 when no ready target matches, or when the target selected has no captured route list, which includes every release built before the list was captured; another ready target’s list is not tried in its place. The tenant guard is the whole authorization model: a release in another workspace is a 404, not a 403.
curl --request GET \
--url https://platformapi.comfy.org/builder/v1/releases/{id}/routes \
--header 'Authorization: Bearer <token>'import requests
url = "https://platformapi.comfy.org/builder/v1/releases/{id}/routes"
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/builder/v1/releases/{id}/routes', 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/builder/v1/releases/{id}/routes",
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/builder/v1/releases/{id}/routes"
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/builder/v1/releases/{id}/routes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platformapi.comfy.org/builder/v1/releases/{id}/routes")
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{
"routes": [
{
"method": "GET",
"path": "/rgthree/api/{type}/info",
"pack": "rgthree-comfy"
}
],
"static": [
{
"prefix": "/kjweb_async",
"pack": "comfyui-kjnodes"
}
]
}{
"error": "<string>",
"message": "<string>"
}Authorizations
Query Parameters
Was this page helpful?