---
title: route_create
url: "/docs/ai-agents/mcp-tools/routes/route_create/"
canonical_url: https://docs.blossom88.com/docs/ai-agents/mcp-tools/routes/route_create/
markdown_url: https://docs.blossom88.com/docs/ai-agents/mcp-tools/routes/route_create.md
summary: Route a path prefix, such as /api, to a Service of the Environment.
categories:
- mcp
- reference
---

# route_create

Route a path prefix, such as /api, to a Service of the Environment.

| | |
|---|---|
| Access | Changes Blossom |
| Same as | [`blossom route:create`](/docs/reference/cli/route/create/) |

## Arguments

| Argument | Type | Description |
|---|---|---|
| `data` | object | The route. Required. |
| `data.environment_id` | string | Environment id. |
| `data.service_id` | string | Service it sends to. |
| `data.path` | string | Path prefix, such as /api. |

## Example

```json
{"data":{"clone_url":"https://github.com/acme/shop","services":[{"name":"web","command":"web","port":3000,"publicly_exposed":true}]}}
```
