> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.




## OpenAPI

````yaml /openapi-builder.yaml get /v1/releases/{id}/routes
openapi: 3.0.3
info:
  title: Comfy Builder API
  version: 0.1.0
  description: >
    Builder owns builds (editable environment definitions) and cuts immutable,
    deployable releases that Deploy later runs.
servers:
  - url: https://platformapi.comfy.org/builder
    description: Comfy Developer Platform
security:
  - BearerAuth: []
  - ApiKeyAuth: []
paths:
  /v1/releases/{id}/routes:
    get:
      summary: >-
        Read the HTTP routes a release's custom node packs register, for one
        built target
      description: >
        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.
      operationId: getReleaseRoutes
      parameters:
        - $ref: '#/components/parameters/PathID'
        - name: os
          in: query
          required: false
          schema:
            type: string
            enum:
              - linux
              - windows
              - mac
        - name: gpu
          in: query
          required: false
          schema:
            type: string
            enum:
              - nvidia
              - amd
              - cpu
              - mps
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReleaseRoutes'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    PathID:
      name: id
      in: path
      required: true
      schema:
        type: string
  schemas:
    ReleaseRoutes:
      type: object
      required:
        - routes
        - static
      properties:
        routes:
          type: array
          description: The routes the packs registered, sorted by path then method.
          items:
            $ref: '#/components/schemas/PackRoute'
        static:
          type: array
          description: The static folders the packs serve, sorted by prefix.
          items:
            $ref: '#/components/schemas/PackStatic'
    PackRoute:
      type: object
      required:
        - method
        - path
        - pack
      properties:
        method:
          type: string
          description: The HTTP method, or "*" for a route that takes any method.
          example: GET
        path:
          type: string
          description: >-
            The path pattern as the pack registered it, in aiohttp's form, with
            {name} and {name:regex} segments kept.
          example: /rgthree/api/{type}/info
        pack:
          type: string
          description: The pack's folder under custom_nodes.
          example: rgthree-comfy
    PackStatic:
      type: object
      required:
        - prefix
        - pack
      properties:
        prefix:
          type: string
          description: >-
            The URL prefix the folder is served under; every path below it is
            the pack's.
          example: /kjweb_async
        pack:
          type: string
          description: The pack's folder under custom_nodes.
          example: comfyui-kjnodes
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Machine-readable error code.
        message:
          type: string
          description: Human-readable detail.
  responses:
    NotFound:
      description: Not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >
        A workspace-scoped Cloud JWT. A missing or invalid token is 401
        UNAUTHORIZED in the Error body.
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >
        A workspace API key, sent alone. The service checks it on every request
        and acts as the key's user in the key's workspace. A request carrying a
        key and a Bearer token is 400 INVALID_REQUEST, and a value that is not a
        key's shape is 401 UNAUTHORIZED. A refused key answers 401
        (UNAUTHORIZED), 403 (FORBIDDEN), 404 (NOT_FOUND) or 429 (RATE_LIMITED)
        with its message and Retry-After; a 503 (SERVICE_UNAVAILABLE) means the
        key could not be checked right now, so retry. Each refusal answers the
        Error body.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.