---
title: "Create Route"
method: POST
path: "/studio/v1/assistants/{assistant_id}/routes"
---

# Create Route

`POST /studio/v1/assistants/{assistant_id}/routes`

## Path parameters

- `assistant_id` string, required

## Request body

- CreateRoutePayload
  - `plan_id` string, required
  - `name` string, required
  - `description` string, required
  - `examples` string[], required

## Response `200`

Successful Response

- AssistantRoute
  - `id` string, required — A unique ID for the request (not the message). Repeated identical requests get different IDs. However, for a streaming response, the ID will be the same for all responses in the stream.
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `plan_id` string, required
  - `name` string, required
  - `description` string, required
  - `examples` string[], required
  - `assistant_id` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/ai21/apis/ai21-studio-api.md) · [All operations](https://skmtc.net/ai21/apis/ai21-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ai21/ai21-studio-api/revisions/e3c4a12d3880/schema)
