---
title: "Create filter"
method: POST
path: "/organization/segments/create"
tags: ["Organizations"]
---

# Create filter

`POST /organization/segments/create`

REQUIRED SCOPES <code>['organizations:write']</code><br>Create filter

## Request body

- object
  - `name` string
  - `is_favorite` boolean
  - `filters` object
    - `filtersList` object[]
      - `filters` object[]
        - `key` string
        - `operator` string
        - `value` string

## Response `200`

OK

- object
  - `id` integer
  - `organization_id` integer
  - `name` string
  - `is_favorite` boolean
  - `filters` OrganizationFilter[]
    - unknown

## Other responses

- `404` — Not Found

---

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