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

# Create Route

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

## Request

- Base URL: `https://api.ai21.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ai21.com/studio/v1/assistants/{assistant_id}/routes`
- Auth: none declared

## 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.dev/ai21/apis/ai21-studio-api.md) - [All operations](https://skmtc.dev/ai21/apis/ai21-studio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ai21/apis/ai21-studio-api/revisions/b235ae533c95?raw)
