---
title: "Create Segment Copy"
method: POST
path: "/v3/lists/{listId}/segments/{segmentId}"
tags: ["Segments"]
---

# Create Segment Copy

`POST /v3/lists/{listId}/segments/{segmentId}`

This endpoint allows you to create a new segment from an existing segment. You need to provide the unique identifier (listId) of the list where the segment is located to create a copy of the segment.

## Path parameters

- `listId` integer, required
- `segmentId` string, required

## Request body

- string

## Response `201`

Accepted the request to create the segment copy

- SegmentResponse
  - `meta` MetadataDTO
    - `timestamp` integer, required — Transaction's date in timestamp
    - `transactionId` string, required — Id for the current transaction (Endpoint's call)
    - `explain` string — Explain string in case of failure
  - `data` Segment — list of segments
    - `id` string, required — segment id
    - `name` string, required — name of the segmnet
    - `userName` string — owner of the segment
    - `listId` integer, required — list id
    - `queryRule` string — segment condition
    - `total` integer, required — total of contacts in segment

## Other responses

- `400` — Bad request
- `500` — Internal server error

---

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