---
title: "Mount another Frontend at a path"
method: POST
path: "/projects/{id}/frontends/{frontendId}/frontend-routes"
tags: ["Frontends"]
---

# Mount another Frontend at a path

`POST /projects/{id}/frontends/{frontendId}/frontend-routes`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/frontends/{frontendId}/frontend-routes`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Serves `path_prefix` and everything under it on this Frontend's hostnames from another
Frontend in the same Project. The path is forwarded unchanged, so the mounted Frontend must
serve its pages under the prefix (page directories or a matching `basePath`). Its root
`/_next/static` files and `/_next/image` requests are sent to it too. A Frontend may be
mounted at several prefixes. Function and Frontend routes share one path namespace and the
64-route limit; the most specific prefix wins. A mounted Frontend's own routes do not apply
to requests it receives through a route. The route applies to every hostname that resolves
to this Frontend, including generated, custom-domain, and local hostnames. While the mounted
Frontend has no active deployment, its paths answer 502, as its own hostname does.

## Path parameters

- `id` string, uuid, required
- `frontendId` string, uuid, required

## Request body

- CreateFrontendRouteRequest
  - `target_frontend_id` string, uuid, required: The Frontend to mount. It must be another Frontend in the Project.
  - `path_prefix` string, required

## Response `201`

Frontend route created

- FrontendRoute: A path prefix on this Frontend's hostnames served by another Frontend in the Project, the mounted Frontend. Paths are forwarded unchanged, so the mounted Frontend serves its prefix as real pages (page directories or a matching `basePath`).
  - `id` string, uuid, required
  - `project_id` string, uuid, required
  - `frontend_id` string, uuid, required: The Frontend whose hostnames serve the route
  - `target_frontend_id` string, uuid, required: The mounted Frontend
  - `path_prefix` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Invalid path, or the Frontend would mount itself
- `401`: Unauthorized
- `403`: Project not owned by the caller
- `404`: Frontend or mounted Frontend not found in the Project, or, with code `feature_unavailable`, Frontend routes are not available in this environment (see `GET /capabilities`)
- `409`: Path is already routed, the Frontend has reached its 64-route limit, or this Frontend or the mounted Frontend is being deleted
- `500`: Failed to create Frontend route

## Changes

- **2026-10-26** `4b0676e06128`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/frontends/:frontendId/frontend-routes/post.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
