---
title: "Match Segments for Partners"
method: POST
path: "/v2/customer-segments/match"
tags: ["customer-segments"]
---

# Match Segments for Partners

`POST /v2/customer-segments/match`

## Request

- Base URL: `https://api.stuut.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stuut.ai/v2/customer-segments/match`
- Auth: HTTP bearer

Given a list of partner IDs, returns a mapping of partner_id to their
matching customer segment (highest priority). Partners with no matching
segment map to null.

## Request body

- MatchSegmentsInput
  - `partner_ids` string[], required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/stuut/apis/stuut-api.md) - [All operations](https://skmtc.dev/stuut/apis/stuut-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stuut/apis/stuut-api/revisions/3b5ab941f918?raw)
