# Contact Filter List

Retrieve a list of all segments and details on their configuration. Segments can be applied on contact lists when you send your campaigns. Segmentation is done based on additional data saved for contacts via /contactmetadata and/or based on contact activity (or lack thereof).

Endpoint: GET /v3/REST/contactfilter
Version: 1.0.0
Security: basicAuth

## Query parameters:

  - `ShowDeleted` (boolean)
    When true, will retrieve all segments, including deleted ones. When false, will exclude deleted segments from the response.

Default value: false

  - `Status` (string)
    Retrieves only segments with the specified status. The status indicates whether a segment is being used for sending or not, or if it was deleted.

Possible values:

- used
- unused
- deleted

## Response 200 fields (application/json):

  - `Count` (integer)
    Indicates the number of objects in the Data array.

  - `Data` (array)
    A JSON array containing a list of objects returned by this endpoint.

  - `Data.ID` (integer)
    Unique numeric ID for this segment.

  - `Data.Status` (string)
    Status of this segment. Indicates whether a segment was used for sending or not, or if it was deleted.

Possible values:

- used
- unused
- deleted

  - `Data.Description` (string)
    A description of the segment you can add for convenience, or to easier understand its functionality.

  - `Data.Expression` (string)
    The rule, based on which the segment is calculated. Refer to our [Segmentation Guide](/docs/email-api/segmentation/segmentation-overview) for detailed information on the syntax.

  - `Data.Name` (string)
    User-selected name for this segment.

  - `Total` (integer)
    Indicates the number of objects in the Data array.


## Response 400 fields

## Response 401 fields

## Response 403 fields

## Response 404 fields

## Response 429 fields

## Response 500 fields
