---
title: "Check whether a target exists in a segment"
method: GET
path: "/segments/{id}/target/{target_id}"
tags: ["product:chat"]
---

# Check whether a target exists in a segment

`GET /segments/{id}/target/{target_id}`

Check whether a target exists in a segment. Returns 200 if the target exists, 404 otherwise

## Path parameters

- `id` string, required
- `target_id` string, required

## Response `200`

Response

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

## Other responses

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

---

[API](https://skmtc.net/getstream/apis/stream-api.md) · [All operations](https://skmtc.net/getstream/apis/stream-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getstream/stream-api/versions/509a44ead023/schema)
