Preview an unsaved filter (count + optional records)
POST/v1/segments/preview
Preview an unsaved filter: how many records match, and optionally a capped sample of them — without creating a segment.
entity_type and filter_config are required. This runs through the same
filter engine the in-product Filter Builder uses, so the count you see here is
the count the saved segment would produce.
Use it to iterate on a filter before committing it. Requires the
segments:read scope.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 429
Successful Response
Error
Error
Error
Error
Validation Error
Error