> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Preview a segment

POST`/workspace/{orgId}/contact-segments/preview`

Who a definition matches, without saving it: {"definition": {...}} answers the count and the first 20 matches, newest seen first. Add "segmentId" when editing a saved segment. Any member.

## Path Parameters

`orgId`

numberrequired

## Response

200

**cURL**

```bash
curl --request POST \
  --url 'https://api.workover.io/workspace/{orgId}/contact-segments/preview'
```

**JavaScript**

```javascript
const options = {
  method: 'POST'
};

fetch('https://api.workover.io/workspace/{orgId}/contact-segments/preview', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/workspace/{orgId}/contact-segments/preview"

response = requests.post(url)

print(response.text)
```
