---
title: "Create a new contact segment"
method: POST
path: "/api/reach/v1/segmentation/segments"
tags: ["Reach: Segments"]
deprecated: true
---

# Create a new contact segment

`POST /api/reach/v1/segmentation/segments`

> **Deprecated.**

Create a new contact segment.

This endpoint allows creating a new contact segment that can be used to organize contacts.
The segment can be configured with specific criteria like email, name, subscription status, etc.

**Deprecated.** This endpoint cannot target a profile, so it always falls back to
the client's default profile and cannot create segments in any other profile. Use
`POST /api/reach/v1/profiles/{profileUuid}/segmentation/segments` instead.

## Request body

- ReachV1ContactsSegmentsStoreRequest
  - `name` string, required
  - `conditions` object[], required
    - `operator` 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'gte' | 'lte' | 'exists' | 'within_last_days' | 'not_within_last_days' | 'older_than_days' | 'processed' | 'not_processed' | 'delivered' | 'not_delivered' | 'dropped' | 'not_dropped' | 'bounced' | 'not_bounced' | 'soft_bounced' | 'not_soft_bounced' | 'opened' | 'not_opened' | 'clicked' | 'not_clicked' | 'unsubscribed' | 'not_unsubscribed'
    - `value` union
      - string
      - integer
    - `attribute` 'note' | 'comment' | 'domain' | 'integration' | 'source' | 'name' | 'surname' | 'email' | 'subscribed_at' | 'unsubscribed_at' | 'subscription_status' | 'processed' | 'opened' | 'clicked' | 'delivered' | 'bounced' | 'unsubscribed' | 'dropped' | 'tag' | 'campaigns'
  - `logic` 'AND' | 'OR', required

## Response `200`

Success response

- ReachV1ContactsSegmentsSegmentResource
  - `uuid` string
  - `name` string
  - `query` unknown[]
    - unknown
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/74abfea76e36/schema)
