---
title: "Add targets to a segment"
method: POST
path: "/segments/{id}/addtargets"
tags: ["product:chat"]
---

# Add targets to a segment

`POST /segments/{id}/addtargets`

Add targets to a segment

## Path parameters

- `id` string, required

## Request body

- AddSegmentTargetsRequest, nullable
  - `target_ids` string[], required — Target IDs

## Response `201`

Response

- Response, nullable — Basic response information
  - `duration` string, required — Duration of the request in milliseconds

## Other responses

- `400` — Bad request
- `429` — Too many requests

## Changes

> 89 revisions in range; 2 not diffed.

- **2026-07-29** `d274674f0337` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/getstream/apis/stream-api/changes/segments/:id/addtargets/post.md)

---

[API](https://skmtc.dev/getstream/apis/stream-api.md) · [All operations](https://skmtc.dev/getstream/apis/stream-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getstream/stream-api/revisions/ff38012a3de8/schema)
