---
title: "Test dynamic segments"
method: POST
path: "/channel/v1/segments/dynamicSegments/matchUser/{userEmail}"
tags: ["SegmentFolders"]
---

# Test dynamic segments

`POST /channel/v1/segments/dynamicSegments/matchUser/{userEmail}`

## Request

- Base URL: `https://marketplace.appdirect.com/api`
- URL: `https://marketplace.appdirect.com/api/channel/v1/segments/dynamicSegments/matchUser/{userEmail}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/appdirect/apis/companies/docs/channel/v1/segments/dynamicSegments/matchUser/:userEmail/post.ts> (a function with typed inputs; its response is checked against the schema)

Determines whether the specified user matches the specified dynamic segment

## Path parameters

- `userEmail` string, required

## Request body

- DynamicSegmentRequest: Data required to create a dynamic segment
  - `name` string, required: Segment name
  - `code` string: Segment code
  - `filters` Filters[], required: Dynamic filter
    - Filter[]: Filters
      - `operator` string, required: Filter operator
      - `conditions` FilterExpression[], required
        - `parameter` string, required: Filter parameter field
        - `operator` string, required: Filter operator
        - `values` string[], required: Values for the parameter field

## Response `200`

OK

- UserMatchResult: Indicates whether the user matches a dynamic segment query
  - `matches` boolean: True if the user matches the dynamic segment query

## Other responses

- `400`: Bad request

## Changes

- **2026-11-06** `1fc240f06971`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/appdirect/apis/companies/changes/channel/v1/segments/dynamicSegments/matchUser/:userEmail/post.md)

---

[API](https://skmtc.dev/appdirect/apis/companies.md) - [All operations](https://skmtc.dev/appdirect/apis/companies/llms.txt) - [OpenAPI document](https://skmtc.dev/appdirect/apis/companies/revisions/1fc240f06971?raw)
