---
title: "Create Segment"
method: POST
path: "/segments"
---

# Create Segment

`POST /segments`

This endpoint creates a new segment and associates it with the client.

## Request body

- object
  - `name` string, required — The name used to easily identify the bot. Allowed values are between 2 and 255 characters.
  - `status` string, required — The status of the bot. Allowed values are active and inactive.
  - `number_id` integer, required — The Number ID associating the segment with a number.
  - `type` string, required — The type of segment. Allowed values are static and dynamic.
  - `dynamic_body` object — The dynamic body defining the logic for dynamic segments. Required when type is set to dynamic.

## Response `201`

201

- object
  - `data` object
    - `id` integer
    - `name` string
    - `number_id` integer
    - `type` string
    - `dynamic_body` string
    - `status` string

## Other responses

- `422` — 422

---

[API](https://skmtc.net/seebot/apis/seebottext.md) · [All operations](https://skmtc.net/seebot/apis/seebottext/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seebot/seebottext/versions/5deb98e1d8dd/schema)
