Brand Studio docs
Engineering manualAPI route source

/api/query-manifest

Exact current route handler: hosted-app/app/api/query-manifest/route.js

Methods: POST. Input signals: none detected. Literal response-status signals: none detected.

Source: hosted-app/app/api/query-manifest/route.js. Imports: ../../../lib/query-manifest-handler.mjs, next/server. Exact source is shown for inspection; its presence does not prove authentication, validation or live behavior.

All API routes · API and execution contract

// The public HTTP door and MCP call the same zero-provider quote handler.
// Keep NextResponse on this route for existing Next.js consumers.
import { NextResponse } from "next/server";
import { handleQueryManifestRequest } from "../../../lib/query-manifest-handler.mjs";

export const runtime = "nodejs";
export const maxDuration = 30;

export async function POST(request) {
  const response = await handleQueryManifestRequest(request);
  return new NextResponse(response.body, {
    status: response.status,
    statusText: response.statusText,
    headers: response.headers
  });
}